Fabiano Fidêncio
d1d003c232
buffer: use ssh_buffer_get() instead of ssh_buffer_get_begin()
...
This commit is a preparatory stage for removing ssh_buffer_get_begin().
Note that removing ssh_buffer_get_begin() doesn't break API
compatibility, as this functions has never been exposed (it only has the
LIBSSH_API prefix).
Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2016-01-19 11:31:08 +01:00
Andreas Schneider
7c79959e94
example: Check return value of ssh_get_fd()
...
CID: #1199454
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-05-05 11:27:09 +02:00
Andreas Schneider
df81a05505
cmake: Check for unistd.h.
2013-07-23 10:44:51 +02:00
Andreas Schneider
e3b4f27aa9
examples: Remove ssh_log from ssh client example.
2013-07-14 13:35:25 +02:00
Andreas Schneider
59dcebd604
sample: Fix a possible buffer overrun.
2013-06-17 13:27:40 +02:00
Andreas Schneider
87036839f9
example: Simplify auth_callback of the client.
...
Found by Coverity.
2012-10-09 11:09:34 +02:00
Andreas Schneider
2ca0a9cdb2
examples: Make variabes static in client sample.
...
Fixes sparse warnings.
2012-02-19 13:26:03 +01:00
Aris Adamantiadis
7f5206b8ac
sample: fix ssh_channel_read
2011-09-02 11:43:11 +03:00
Oliver Stöneberg
a73459171b
examples: Removed unnecessary \n from ssh_log() calls in samplessh.
2011-05-01 19:33:26 +02:00
Oliver Stöneberg
c3849a3cfd
examples: Fixed memory leak in samplessh when using commands.
2011-05-01 19:33:09 +02:00
Andreas Schneider
f3685f0f73
examples: Use ssh_getpass().
2011-01-24 13:55:05 +01:00
Aris Adamantiadis
b23b3f1d99
Sanitize libssh namespace + legacy wrappers
2010-05-14 00:51:08 +02:00
Aris Adamantiadis
74c9c1afa9
Added code to test proxycommand
...
Conflicts:
examples/sample.c
2010-05-10 22:44:06 +02:00
Aris Adamantiadis
7d32ec5d28
Fix warnings found with clang analyzer
2010-04-28 19:36:39 +02:00
Aris Adamantiadis
fa294e8603
Fix select loop in sample
2010-04-24 23:22:00 +02:00
Aris Adamantiadis
6cdbc01208
Fixes infinite loops
...
Thanks to Xi Wang for the patches
2010-04-24 22:46:19 +02:00
Andreas Schneider
32ac1e04ec
Fixed build warnings of the ssh client example.
2010-03-29 22:44:20 +02:00
Aris Adamantiadis
56cfb8036f
Build the pcap code into example in all cases
2009-11-27 18:08:53 +01:00
Aris Adamantiadis
ae11589205
Pcap: more cleanup and minimalist API
2009-11-16 23:20:16 +01:00
Aris Adamantiadis
02aecc1278
Improved pcap dumping support
2009-11-16 22:36:31 +01:00
Aris Adamantiadis
10f27457d3
Add an other (simplier ?) polling method to sample
2009-11-08 20:00:23 +01:00
Aris Adamantiadis
af1f431364
change buffer size in sample.c
2009-11-07 17:35:24 +01:00
Aris Adamantiadis
272a4d1e45
Refactorize sample.c
2009-11-07 17:23:06 +01:00
Aris Adamantiadis
3a95ecfe74
move authentication out of sampe.c
2009-11-07 03:45:27 +01:00
Aris Adamantiadis
14ae9a7f0c
Moved sftp parts into a new example
2009-11-06 19:21:18 +01:00
Aris Adamantiadis
e74305c5eb
updated the sftp subsystem to follow the type conv
2009-10-10 20:55:17 +02:00
Aris Adamantiadis
399041180f
resolve callback crash
2009-10-10 16:25:40 +02:00
Aris Adamantiadis
37a4a65d60
Add ssh_free at the end
2009-10-10 12:04:16 +02:00
Andreas Schneider
ccd886feb4
Added auth callback function to sample to test callback stuff.
2009-10-10 11:55:42 +02:00
Aris Adamantiadis
58294442d3
Moved samples into examples directory
2009-10-09 21:44:05 +02:00