Oliver Stöneberg
da8356b477
Use BIO* in _privatekey_from_file [Oliver Stöneberg]
...
_privatekey_from_file: moved FILE* into HAVE_LIBGCRYPT code / added missing #ifdef's to default case of switch [Oliver Stöneberg]
2011-05-17 20:57:58 +02:00
Oliver Stöneberg
e5fb20c17b
socket: Fixed use-after-free.
...
When s->callbacks->exception() was called in ssh_socket_pollcallback()
we had a use after free bug.
(cherry picked from commit 9866763789 )
2011-05-17 20:57:38 +02:00
Oliver Stöneberg
c472bd7437
keyfiles: Fixed compilation without defines.
...
This fixes cppcheck issues.
(cherry picked from commit 7f0761885c )
2011-05-17 20:57:38 +02:00
Oliver Stöneberg
8796756ae5
tests: Fixed some cppcheck warnings.
...
(cherry picked from commit e3311d03db )
2011-05-17 20:57:38 +02:00
Oliver Stöneberg
9c8f285a98
examples: Use the right cleanup functions.
...
(cherry picked from commit 525324b2f9 )
2011-05-17 20:57:38 +02:00
Oliver Stöneberg
8154e24027
channel: Fixed potential use-after-free in ssh_channel_get_exit_status().
...
If ssh_channel_get_exit_status() is called more than once and the
connection closed.
(cherry picked from commit 4e153aed8a )
2011-05-17 20:57:38 +02:00
Oliver Stöneberg
629cfbccc4
connect: Set timeout on connect
...
This also fixes error handling in ssh_poll_ctx_dopoll() and
ssh_handle_packets(), so it won't loop forever on an actual timeout.
(cherry picked from commit 671a982739 )
2011-05-17 20:57:38 +02:00
Oliver Stöneberg
c5990791db
poll: Removed WSAPoll() support.
...
It was causing too many issues and the poll emulation is quite stable.
(cherry picked from commit f4f4ce37f0 )
2011-05-17 20:57:38 +02:00
Oliver Stöneberg
16241938af
doc: Small update to auth.c documentation.
...
(cherry picked from commit 12b61a6266 )
2011-05-17 20:57:38 +02:00
Andreas Schneider
6a8cb38dd3
channel: Improve the request signal documentation.
...
(cherry picked from commit 32cd45612b )
2011-05-15 13:44:11 +02:00
Oliver Stöneberg
bac2227ee2
Updated privatekey_from_file() to use BIO* as well [Oliver Stöneberg]
2011-05-02 19:46:54 +02:00
Oliver Stöneberg
dcb50cc0c8
Use BIO* in _privatekey_from_file [Oliver Stöneberg]
...
_privatekey_from_file: moved FILE* into HAVE_LIBGCRYPT code / added missing #ifdef's to default case of switch [Oliver Stöneberg]
2011-05-02 19:17:38 +02:00
milo
f503c4a3e1
Delay the check for kbdint->answers in kbdint_send()
...
(cherry picked from commit 32ba5204b7 )
2011-05-02 18:04:56 +02:00
milo
a56c925da9
Fix segfault when ssh_userauth_kbdint_setanswer() has not been called
...
(cherry picked from commit b6e712e934 )
2011-05-02 17:47:00 +02:00
milo
833cc00014
[socket] fix a segfault at disconnect
...
(cherry picked from commit 7d2064c289 )
2011-05-02 17:41:51 +02:00
milo
09e8cf33d7
[messages] don't queue messages if callback present
...
(cherry picked from commit 1979c14aac )
2011-05-02 17:40:05 +02:00
milo
a03bb2fbf7
[poll] avoid infinite loop in ssh_poll_ctx_free()
...
(cherry picked from commit 8092541603 )
2011-05-02 17:39:28 +02:00
milo
bb784ec6be
[channels] Added ssh_channel_window_size() and avoided reentrancy in channel_write_common()
...
(cherry picked from commit 7ba0938846 )
2011-05-02 17:35:34 +02:00
Andreas Schneider
996c00c81c
keyfiles: Fixed the build.
2011-05-01 21:04:55 +02:00
Oliver Stöneberg
30bdca07e9
init: Some initialization fixes.
...
- Check result of ssh_init() in privatekey_from_base64()
- Moved code from ssh_finalize() to appropriate subroutines
- Only initialize sockets once (caused mismatch of WSAStartup() and
WSACleanup() calls and potential usage of bsd_poll when win_poll
should be used)
2011-05-01 19:43:57 +02:00
Oliver Stöneberg
b4b49cf3f6
socket: Fixed poll input event.
...
(cherry picked from commit 040a543f57 )
2011-05-01 19:43:01 +02:00
Oliver Stöneberg
189796e94f
examples: Removed unnecessary \n from ssh_log() calls in samplessh.
...
(cherry picked from commit a73459171b )
2011-05-01 19:42:13 +02:00
Oliver Stöneberg
2431c7d925
examples: Fixed memory leak in samplessh when using commands.
...
(cherry picked from commit c3849a3cfd )
2011-05-01 19:42:01 +02:00
Andreas Schneider
fc9c61714f
poll: Fix poll input events.
...
bug#38
2011-04-15 19:17:40 +02:00
Andreas Schneider
e096658df3
examples: Fix some memory leaks.
...
(cherry picked from commit 644145a88c )
2011-04-15 19:06:24 +02:00
Andreas Schneider
b1d58c5454
Fix assertion with Visual Studio because of %zu.
...
(cherry picked from commit ef658b4bef )
2011-04-15 19:03:02 +02:00
Mark Riordan
ced66eb11f
scp: Fix potential infinite loop in ssh_scp_close
...
Signed-off-by: Mark Riordan <mriordan@ipswitch.com >
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 5939cfe78a )
2011-04-14 14:19:15 +02:00
Andreas Schneider
1b44daddf6
examples: Call correct functions on exit.
...
(cherry picked from commit 3e7d4534ce )
2011-04-14 14:19:08 +02:00
Aris Adamantiadis
a309c1b38e
Fixed missing CRYPTO_cleanup_all_ex_data() in ssh_finalize
...
(cherry picked from commit 934252d6ca )
2011-04-14 13:40:42 +02:00
Andreas Schneider
e56aaf5f44
wrapper: Fixed a possible NULL pointer dereference.
...
(cherry picked from commit 94e7d345a7 )
2011-04-14 10:18:37 +02:00
Andreas Schneider
632cee4426
server: Fixed a possible NULL pointer dereference.
...
(cherry picked from commit 7e4916cefc )
2011-04-14 10:18:34 +02:00
Oliver Stöneberg
af25fc35d1
build: Fixed some VS2010 problems.
...
(cherry picked from commit 166ee451c5 )
2011-04-11 11:19:26 +02:00
Oliver Stöneberg
db49b84a44
keys: Fixed issues reported by cppcheck.
...
(cherry picked from commit 46475dfa2f )
2011-04-11 11:19:18 +02:00
Andreas Schneider
c5f4b8c1c7
cmake: Fixed a typo.
...
(cherry picked from commit 7150cabafa )
2011-04-08 11:06:16 +02:00
Mark Riordan
6a0daddd8f
sftp: Fixed double-free in sftp_unlink().
...
(cherry picked from commit 29bb718a93 )
2011-04-08 11:00:04 +02:00
Aris Adamantiadis
af997b221d
Fixed doc of ssh_userauth_list()
...
(cherry picked from commit 1c062b22bf )
2011-03-28 13:36:51 +02:00
Aris Adamantiadis
9d6855702e
Change session state after receiving a Disconnect
...
(cherry picked from commit 4bc9c96e4e )
2011-03-28 13:36:44 +02:00
Andreas Schneider
daf256e15f
cpack: Raise version number.
2011-03-23 08:51:06 +01:00
Aris Adamantiadis
0eddcb4424
Fix the ssh_message_retrieve problem by anihilation
2011-03-23 08:49:34 +01:00
Aris Adamantiadis
b7f6794e03
Implement ssh_blocking_flush()
...
Based on code from Jan Willamowius
(cherry picked from commit dff4e4e6d3 )
2011-03-23 08:49:26 +01:00
Andreas Schneider
cd9fc88151
doc: Improve the doc of ssh_bind_set_callbacks.
...
(cherry picked from commit 7daa81f3aa )
2011-03-09 18:33:49 +01:00
Andreas Schneider
fbe0f37e1b
doc: Improved documentation for server options.
...
(cherry picked from commit 6754c34711 )
2011-03-09 18:33:42 +01:00
Andreas Schneider
c496194614
messages: Added missing config.h include.
2011-03-01 14:08:01 +01:00
Andreas Schneider
ca639ceb63
legacy: Added missing channel_write_stderr.
2011-02-23 12:39:25 +01:00
Andreas Schneider
e85537aac4
legacy: Fixed the symbol export.
2011-02-23 12:32:02 +01:00
milo
e839c9cae6
Reverse commit 076dfb82 for the server side
...
(cherry picked from commit 32e23a25da )
2011-02-19 10:38:15 +01:00
Andreas Schneider
100e94c18e
channel: Fixed uninitialized use of session.
2011-02-19 10:24:57 +01:00
Andreas Schneider
e7f7b4e499
server: Fixed logging function name.
...
(cherry picked from commit ac8276c70e )
2011-02-18 20:57:37 +01:00
Bernhard R. Link
eca8b53868
channel: Improve ssh_channel_open_reverse_forward documentation.
...
(cherry picked from commit 23b3c46fd6 )
2011-02-18 18:01:45 +01:00
Andreas Schneider
b8767be373
channels: set error for new NULL pointer checks
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 8a83990c16 )
2011-02-18 18:01:45 +01:00