milo
7d2064c289
[socket] fix a segfault at disconnect
...
(cherry picked from commit 56394917b15e41603c641c22a4e29c33b096d673)
2011-05-02 17:02:25 +02:00
milo
eb5fedb685
[event] don't use sessions in event anymore
...
(cherry picked from commit 89d0fdbbde4cf48e783a8ee7c5907c51a83e207b)
2011-05-02 17:01:59 +02:00
milo
1979c14aac
[messages] don't queue messages if callback present
...
(cherry picked from commit 99d0f6d7c77e064b7fd0f0f46c40988de1996f3b)
2011-05-02 16:59:52 +02:00
milo
8092541603
[poll] avoid infinite loop in ssh_poll_ctx_free()
...
(cherry picked from commit eace59d3eaad413fd846d1c8b4c926285f6cd5ab)
2011-05-02 16:58:40 +02:00
milo
7ba0938846
[channels] Added ssh_channel_window_size() and avoided reentrancy in channel_write_common()
...
(cherry picked from commit 27313334578f4acb7ccf0687bba7f76b2febd569)
2011-05-02 16:58:27 +02:00
Oliver Stöneberg
3ae01ff9f5
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:42:50 +02:00
Oliver Stöneberg
040a543f57
socket: Fixed poll input event.
2011-05-01 19:42:38 +02: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
milo
91c9d86d45
[keyfiles] Fix two memory leaks
2011-04-18 17:49:54 +02:00
milo
6e58342abc
[pki] remove unused functions
2011-04-18 17:40:27 +02:00
Andreas Schneider
8b95328b1b
poll: Fix poll input events.
...
bug#38
2011-04-15 19:14:15 +02:00
Andreas Schneider
644145a88c
examples: Fix some memory leaks.
2011-04-15 19:05:53 +02:00
Andreas Schneider
ef658b4bef
Fix assertion with Visual Studio because of %zu.
2011-04-15 19:02:21 +02:00
Andreas Schneider
a6c53d51de
scp: More correct fix for snprintf 64-bit format.
2011-04-15 18:56:52 +02:00
Mark Riordan
e7e4f261a6
scp: Fix snprintf format for 64-bit size on SCP push.
...
Signed-off-by: Mark Riordan <mriordan@ipswitch.com>
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2011-04-15 16:18:26 +02:00
Mark Riordan
96d5f13813
scp: Support huge files by changing size to 64-bit type.
...
Signed-off-by: Mark Riordan <mriordan@ipswitch.com>
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2011-04-15 16:18:26 +02:00
Aris Adamantiadis
3a77f2aebe
[pki] Fix buffer overflow in pki
2011-04-15 09:11:09 +02:00
Mark Riordan
5939cfe78a
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>
2011-04-14 14:18:45 +02:00
Andreas Schneider
3e7d4534ce
examples: Call correct functions on exit.
2011-04-14 14:16:58 +02:00
milo
cee8ca339b
Use const for x11_auth_* strings
2011-04-14 14:05:44 +02:00
milo
7cc4471168
Implemented X11 server side
2011-04-14 14:05:44 +02:00
milo
3046a50614
Skip \r when reading private keys
2011-04-14 14:05:44 +02:00
milo
23aa58e442
Added some tortures for pki
2011-04-14 14:05:44 +02:00
milo
f8c7ad9c7a
[pki] Added ssh_userauth_pki_pubkey() function
2011-04-14 14:05:44 +02:00
milo
72b53aa11e
Fix error message in privatekey_from_base64()
2011-04-14 14:05:44 +02:00
milo
c96314971c
[pki] Add documentation and check for NULLs
2011-04-14 14:05:44 +02:00
milo
82e3068cb7
Set freed pointers to NULL in ssh_key struct
2011-04-14 14:05:44 +02:00
milo
b308bb9d52
[pki] added ssh_pki_do_sign() function
2011-04-14 14:05:44 +02:00
milo
c1f65492f7
[pki] Added conversion functions to migrate seemlessly to ssh_key
2011-04-14 14:05:44 +02:00
milo
c5db7674ec
[pki] check for NULL and small cosmetic changes
2011-04-14 14:05:44 +02:00
milo
2694853979
[pki] Added ssh_pki_publickey_from_privatekey() function
2011-04-14 14:05:44 +02:00
milo
69d2457762
[pki] Added ssh_pki_import_privkey_base64()
2011-04-14 14:05:44 +02:00
milo
c1d385f6da
[pki] remove non existing function prototype
2011-04-14 14:05:44 +02:00
milo
c20afa75a2
[pki] Fixed a probable bug in privatekey_file_to_buffer()
2011-04-14 14:05:44 +02:00
milo
df3e497dbd
[pki] Added privatekey_from_base64() function...
...
and wrapped it with privatekey_from_file()
2011-04-14 14:05:44 +02:00
milo
9a21093ab8
[pki] Added b64decode_dsa_privatekey() function
2011-04-14 14:05:44 +02:00
milo
5f54eff0be
[pki] Added b64decode_rsa_privatekey() function
2011-04-14 14:05:43 +02:00
milo
43ebdbfe46
[pki] Added privatekey_string_to_buffer() function
2011-04-14 14:05:43 +02:00
milo
2be42922c8
[pki] Make ssh_key_new and ssh_key_free public
2011-04-14 14:05:43 +02:00
milo
a0a3ceeaa0
Semantic fix on malloc
2011-04-14 13:46:40 +02:00
milo
42315772b2
Fix a memleak on event poll contexts
2011-04-14 13:31:24 +02:00
milo
23b28a573c
Fix a 0 bytes malloc in server kbdint implementation
2011-04-14 13:31:11 +02:00
Aris Adamantiadis
934252d6ca
Fixed missing CRYPTO_cleanup_all_ex_data() in ssh_finalize
2011-04-14 13:09:09 +02:00
Andreas Schneider
94e7d345a7
wrapper: Fixed a possible NULL pointer dereference.
2011-04-14 10:17:44 +02:00
Andreas Schneider
7e4916cefc
server: Fixed a possible NULL pointer dereference.
2011-04-14 10:10:19 +02:00
milo
e04d30e083
Bug fix in ssh_poll_ctx_remove()
2011-04-14 00:09:35 +02:00
Oliver Stöneberg
166ee451c5
build: Fixed some VS2010 problems.
2011-04-11 11:18:57 +02:00
Oliver Stöneberg
46475dfa2f
keys: Fixed issues reported by cppcheck.
2011-04-11 11:06:32 +02:00
Andreas Schneider
7150cabafa
cmake: Fixed a typo.
2011-04-08 11:02:25 +02:00