Andreas Schneider
2197704693
Bump version to 0.7.2
2015-09-15 15:17:35 +02:00
Andreas Schneider
229eb8715d
cmake: Use tar.xz source package generator
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 1f3a9105ff )
2015-09-15 15:17:35 +02:00
Andreas Schneider
1b18a06f8c
kex: Prefer sha2 over sha1
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit b0f22fde62 )
2015-09-15 15:09:21 +02:00
Andreas Schneider
91b513798e
cmake: Handle libssh threas library correctly
...
This should fix the build on Windows and would not install pkg files.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 5b586fdfec )
2015-09-08 17:32:57 +02:00
Michael Wilder
25234e510a
bignum: Fix OpenSSL crash in SAFE_FREE
...
Signed-off-by: Michael Wilder <wilder.michael@cimcor.com >
Reviewed-by: Andreas Schneider <asn@samba.org >
(cherry picked from commit 2f193b5cbb )
2015-09-08 17:32:40 +02:00
Andreas Schneider
d16eac5704
server: Fix return code check of ssh_buffer_pack()
...
Thanks to Andreas Gutschick <andreas.gutschick@mitel.com >
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 36d9b62f1f )
2015-08-18 09:12:47 +02:00
Andreas Schneider
46bff47975
doc: Fix typos in sftp tutorial
...
Thanks to Anthony Baker <AnthonyBaker@fico.com >
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit da4bebbe1e )
2015-08-18 09:05:45 +02:00
Andreas Schneider
f718b50b3f
tests: Add checks for ssh_key_is_private()
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit d54a1ab798 )
2015-08-10 13:58:51 +02:00
Andreas Schneider
58b7d0f5d2
pki: Fix return values of ssh_key_is_(public|private)
...
Thanks to Kevin Haake <khaake@red-cocoa.com >
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit e1081796af )
2015-08-10 13:58:50 +02:00
Tilo Eckert
30d4581be5
sftp: Fix incorrect handling of received length fields
...
Signed-off-by: Tilo Eckert <tilo.eckert@flam.de >
2015-08-01 10:52:48 +03:00
Peter Volpe
83387f957f
auth: Fix return status for ssh_userauth_agent()
...
BUG: https://red.libssh.org/issues/201
Return SSH_AUTH_DENIED instead of SSH_AUTH_ERROR when the provided agent
offers no public keys.
Signed-off-by: Peter Volpe <pvolpe@redhat.com >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit dc9c4d22ab )
2015-07-30 10:52:11 +02:00
Andreas Schneider
f3620bbbad
cmake: Fix zlib include directory
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 728c2fbd01 )
2015-07-03 12:36:53 +02:00
Andreas Schneider
b45933d30d
cmake: Fix OpenSSL detection in non-standard path
...
This should fix the detection on Windows.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 613b71b385 )
2015-07-03 11:40:04 +02:00
Andreas Schneider
1613ed556d
cmake: Fail if can't find OpenSSL aes and des headers
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 70cc11618a )
2015-07-03 10:52:56 +02:00
Andreas Schneider
8f5b7b65eb
include: Add stdarg.h so we can check for va_copy macro
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2015-06-30 09:59:21 +02:00
Andreas Schneider
053f72c671
Bump version to 0.7.1
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
libssh-0.7.1
2015-06-30 09:34:28 +02:00
Tilo Eckert
63a8f333b8
SSH_AUTH_PARTIAL is now correctly passed to the caller of ssh_userauth_publickey_auto().
...
Implicitly fixed unsafe return code handling that could result in use-after-free.
Signed-off-by: Tilo Eckert <tilo.eckert@flam.de >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 0423057424 )
2015-06-29 11:11:26 +02:00
Tilo Eckert
57fd8e3187
available auth_methods must be reset on partial authentication
...
Signed-off-by: Tilo Eckert <tilo.eckert@flam.de >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit cc25d747d4 )
2015-06-29 11:11:25 +02:00
Peter Volpe
03972b16c9
channels: Fix exit-signal data unpacking
...
Signed-off-by: Peter Volpe <pvolpe@redhat.com >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 7637351065 )
2015-06-29 09:50:28 +02:00
Peter Volpe
ac7ed82585
agent: Add ssh_set_agent_socket
...
Allow callers to specify their own socket
for an ssh agent.
Signed-off-by: Peter Volpe <pvolpe@redhat.com >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 7aeba71a92 )
2015-06-29 09:47:35 +02:00
Seb Boving
196c2e9c1f
Don't allocate a new identity list in the new session's options.
...
The previous list is not freed. Since the new session just got
created, an identity list is already allocated and empty.
Signed-off-by: Sebastien Boving <seb@google.com >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit e020dd8d59 )
2015-06-24 18:36:10 +02:00
Douglas Heriot
1accbcb98b
cmake: Do not use CMAKE_(SOURCE|BINARY)_DIR
...
(cherry picked from commit a65af1b3b8 )
2015-06-24 18:36:08 +02:00
Tiamo Laitakari
342ae10f08
pki: Fix allocation of ed25519 public keys
...
Signed-off-by: Tiamo Laitakari <tiamo.laitakari@cs.helsinki.fi >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 5478de1a64 )
2015-06-24 18:36:08 +02:00
Jordy Moos
eb98a780ed
Documentation fix where unsigned is used where signed is expected
...
Signed-off-by: Jordy Moos <jordymoos@gmail.com >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit fa9fbb1d67 )
2015-06-24 18:36:08 +02:00
Andreas Schneider
64233fa3bb
misc: Correctly guard the sys/time.h include
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit ef751a26d0 )
2015-06-24 18:36:08 +02:00
Andreas Schneider
cbf5cf4ac3
include: Add support for older MSVC versions
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 30a7229fc5 )
2015-06-24 16:24:12 +02:00
Andreas Schneider
a3f3f9cb76
kex: Add comments to #if clauses
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 1d69e073af )
2015-06-24 16:24:08 +02:00
Aris Adamantiadis
5aeae08be0
channels: fix exit-status not correctly set
2015-06-03 16:41:19 +02:00
Mike DePaulo
64a658acaa
Comment that ssh_forward_cancel() is deprecated.
...
Signed-off-by: Aris Adamantiadis <aris@badcode.be >
2015-05-29 11:30:32 +02:00
Mike DePaulo
361940a5d7
Reintroduce ssh_forward_listen() ( Fixes : #194 )
...
Signed-off-by: Aris Adamantiadis <aris@badcode.be >
2015-05-29 11:24:27 +02:00
Andreas Schneider
2721cbc8ee
ChangeLog: Set release date for 0.7.0
libssh-0.7.0
2015-05-11 10:42:08 +02:00
Andreas Schneider
5eb7a6ca38
cpack: Use application version.
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2015-05-08 13:54:56 +02:00
Andreas Schneider
3f4b5436e5
Bump version to 0.7.0
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2015-05-06 11:01:33 +02:00
Andreas Schneider
82cf5ea24c
Update ChangeLog
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2015-05-06 11:00:43 +02:00
Andreas Schneider
90e4786523
valgrind: Add suppression for openssl FIPS dlopen leak
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2015-05-06 10:27:09 +02:00
Andreas Schneider
f65f41acc2
valgrind: Ignore valgrind free bug on exit
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2015-05-06 10:23:27 +02:00
Andreas Schneider
8979150745
tests: Migrate torture_keyfiles to testkey functions
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2015-05-06 09:47:37 +02:00
Andreas Schneider
f81d296e54
torture: Move TORTURE_TESTKEY_PASSWORD to header
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2015-05-06 09:47:17 +02:00
Andreas Schneider
57afe78167
tests: Fix memory leak in torture_server_x11 test
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2015-05-06 09:33:51 +02:00
Jon Simons
ee460dc04b
kex: also compare host keys for 'first_kex_packet_follows'
...
Also consider the host key type at hand when computing whether a
'first_kex_packet_follows' packet matches the current server settings.
Without this change libssh may incorrectly believe that guessed
settings which match by kex algorithm alone fully match: the host
key types must also match. Observed when testing with dropbear
clients.
Signed-off-by: Jon Simons <jon@jonsimons.org >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
2015-05-05 22:03:47 +02:00
Jon Simons
f134cb3d57
server: return SSH_OK for ignored SSH_MSG_KEXDH_INIT case
...
Return SSH_OK for the case that an incoming SSH_MSG_KEXDH_INIT should be
ignored. That is, for the case that the initial 'first_kex_packet_follows'
guess is incorrect. Before this change sessions served with libssh can be
observed to error out unexpectedly early when testing with dropbear clients
that send an incompatible guess.
Signed-off-by: Jon Simons <jon@jonsimons.org >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
2015-05-05 22:03:32 +02:00
Andreas Schneider
3eaad77de2
tests: Only link against threading library if available
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2015-05-05 19:09:51 +02:00
Andreas Schneider
9244750a63
cmake: Add missing OpenSSL include directory
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2015-05-05 19:04:49 +02:00
Andreas Schneider
e8720a30e2
cmake: Add --enable-stdcall-fixup for MinGW builds
...
This fixes warnings for getaddrinfo() and freeaddrinfo().
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2015-05-05 18:59:30 +02:00
Andreas Schneider
ad09009201
include: Fix variadic macro issues with MSVC
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2015-05-05 18:45:47 +02:00
Andreas Schneider
e4e3b3052f
tests: Apply umask before calling mkstemp()
...
CID: #978660
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2015-05-05 11:27:09 +02:00
Andreas Schneider
96882cc58c
example: Fix a use after free in the scp example
...
CID: #1032343
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2015-05-05 11:27:09 +02: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
ca501df8c8
sftp: Fix size check
...
CID: #1296588
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2015-05-05 11:26:40 +02:00
Andreas Schneider
a4cecf59d5
external: Fix resetting the state
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2015-05-04 18:10:30 +02:00