Andreas Schneider
e949e135b6
Bump version to 0.8.1
libssh-0.8.1
2018-08-13 22:19:33 +02:00
Andreas Schneider
1510b63d20
cmake: Bump library version for release
...
(cherry picked from commit a3475c2e4b )
2018-08-13 22:19:25 +02:00
Andreas Schneider
0db4d9bd46
init: Add a library constructor and destructor for VC
...
If we compile with Visual Studio, we need a DllMain() for running init
and finialize which is the same as a constructor and destructor.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 4d87256ca7 )
2018-08-13 22:12:22 +02:00
Andreas Schneider
1e17e084bf
cmake: Only set -Werror on UNIX
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 6aa9392699 )
2018-08-13 22:12:21 +02:00
Andreas Schneider
a2c14c5ec5
cmake: Improve NSIS detection on Windows
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 0656f8a43d )
2018-08-13 22:12:19 +02:00
Anderson Toshiyuki Sasaki
b99849c831
init: ignore init counter if destructor calls finalize
...
If the destructor calls finalize, ignore the init counter and finalize
the library anyway.
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 66a3bc0332 )
2018-08-13 15:27:51 +02:00
Andreas Schneider
c7d4286ca1
cmake: Fix PACKAGE and VERSION in config.h
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit dbce0e5228 )
2018-08-13 13:49:30 +02:00
Andreas Schneider
434e2b7212
cmake: Fix pkg-config file
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 8ef35a005c )
2018-08-13 13:49:28 +02:00
Andreas Schneider
acf0f0fa6e
cmake: Remove obsolete libssh_threads.pc.cmake
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 8425dce7b2 )
2018-08-13 13:49:26 +02:00
Anderson Toshiyuki Sasaki
220e6b66e8
threads: use static error check mutex initializer if available
...
This changes the condition to use the static error check mutex
initializer. If it is not available, use the default static mutex
initializer.
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 0be1ae0e3b )
2018-08-13 13:49:24 +02:00
Andreas Schneider
c4d4731ddf
cmake: Only install static lib if built WITH_STATIC_LIB
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 83898f3f6c )
2018-08-13 13:49:21 +02:00
Andreas Schneider
139ccaa78c
include: Fix version number
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-08-13 11:01:27 +02:00
Andreas Schneider
c42410b560
init: Only use constructor attribute if available
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit f2b6899298 )
2018-08-13 11:00:52 +02:00
Andreas Schneider
120f11812d
cmake: Detect constructor and destructor attributes
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 4c058aefd9 )
2018-08-13 11:00:50 +02:00
Andreas Schneider
500486d501
cmake: Fix fallthrough attribute detection
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 8c2ad7bdd3 )
2018-08-13 11:00:48 +02:00
Andreas Schneider
6708debd4c
cmake: Fix check for bounded attribute
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit e04a8b3abd )
2018-08-13 11:00:47 +02:00
Andreas Schneider
852a8b4875
cmake: Set the PACKAGE_VERSION correctly
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 15ab612592 )
2018-08-13 11:00:45 +02:00
Andreas Schneider
9c6b4ecb48
cpack: Fix ignore files
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-08-10 14:24:02 +02:00
Andreas Schneider
d66ea0b3b1
Update ChangeLog entries for 0.8.0
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
libssh-0.8.0
2018-08-10 12:20:57 +02:00
Andreas Schneider
1d93b94086
cmake: Remove DESCRIPTION from project
...
This is only available with cmake >= 3.9.0. It should fix oss-fuzz.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-08-10 12:20:57 +02:00
Anderson Toshiyuki Sasaki
efc427fdce
cmake: Introduce symbol versioning
...
This adds a cmake module, FindABIMap, which looks for abimap and
provides functions to generate a symbol version linker script.
The module can be included using find_package(ABIMap).
This also adds the option to compile with symbol versioning. The symbol
list is obtained from the header files by filtering those marked with
the LIBSSH_API modifier.
Such symbols are used as input to generate the version script used by
the linker. The version script is automatically updated as new symbols
marked with LIBSSH_API are added to the header files.
If any symbol is removed, the build will fail due to break in the ABI.
Symbol versioning is enabled by default if abimap has been found. It is
disabled in non-UNIX platforms. It can be disabled by passing
"-DWITH_SYMBOL_VERSIONING=OFF" option to cmake.
Pair-Programmed-With: Andreas Schneider <asn@cryptomilk.org >
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com >
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-08-08 20:58:23 +02:00
Andreas Schneider
0f64bc78a8
ABI: Add map file for library version 4.5.0
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-08-08 20:58:23 +02:00
Andreas Schneider
2dbb7ff091
cmake: Update cmake and cpack config
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-08-08 20:58:23 +02:00
Andreas Schneider
b77fa93551
gitlab-ci: Point openSUSE to its krb5-config
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-08-08 20:58:23 +02:00
Andreas Schneider
8ce4004260
tests: Free memory of tmp_file in torture_knownhosts_parsing
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-08-08 15:04:59 +02:00
Andreas Schneider
8c11367410
tests: Fix memory leak in torture_knownhosts_read_file()
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-08-08 15:04:59 +02:00
Andreas Schneider
460026459b
tests: Do not leak memory when freeing ed25519 keys
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-08-08 15:04:59 +02:00
Andreas Schneider
6c87316a9c
session: Fix memory leak of global_knownhosts
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-08-08 15:04:59 +02:00
Andreas Schneider
96476f74af
kownhosts: Fix a memory leak in ssh_session_has_known_hosts_entry()
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-08-08 15:04:59 +02:00
Andreas Schneider
52b57077de
knownhosts: Fix a memory leak in ssh_session_get_known_hosts_entry()
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-08-08 15:04:59 +02:00
Andreas Schneider
2839d48cb8
tests: Fix a typo in torture.c
...
Thanks Nikos for spotting it.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-08-07 15:41:45 +02:00
Marcin Szalowicz
5ea81166bf
include: Fix segfault in getIssueBanner, add missing wrappers in libsshpp
...
Also make some private properties protected
Signed-off-by: Marcin Szalowicz <marcin.szalowicz@oracle.com >
2018-08-07 14:31:55 +02:00
Andreas Schneider
a86d1d335b
torture: Increase wait time for sshd startup
...
It is much slower when started with valgrind.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-08-06 15:23:43 +02:00
Anderson Toshiyuki Sasaki
18dd902307
gssapi: set error state when GSSAPI auth fails
...
When errors occurred, the session auth state was not being updated,
leading to failures due to the wrong state in following authentication
methods.
Fixes T56
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
2018-08-06 10:48:16 +02:00
Anderson Toshiyuki Sasaki
d85827f646
auth: Some code style fixes
...
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
2018-08-06 10:26:19 +02:00
Anderson Toshiyuki Sasaki
6e74c6c1dc
auth: Improve pending call error messages
...
This can help when debugging in the future
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
2018-08-06 10:26:00 +02:00
Andreas Schneider
ec6df9896a
tests: Add missing check for valid fd
...
CID 1032753
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-08-06 09:52:14 +02:00
Andreas Schneider
ab7c5c448c
tests: Add additional NULL checks
...
CID 1393894
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-08-06 09:43:51 +02:00
Andreas Schneider
5871d604cd
tests: Use fstat instead of lstat
...
CID 1393878
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-08-06 09:38:59 +02:00
Andreas Schneider
f6fe7488e3
tests: Add some null checks
...
CID 1393898
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-08-06 09:36:50 +02:00
Andreas Schneider
24aef4fbf1
sftp: Add missing size checks
...
CID 1238630
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-08-06 09:36:50 +02:00
Andreas Schneider
fbfe002460
tests: Check for memory allocation error in torture_pki_ed25519_sign()
...
CID 1393899
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-08-06 09:36:47 +02:00
Andreas Schneider
c7525c056c
tests: Improve torture_connect_socket()
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-08-06 08:58:27 +02:00
Andreas Schneider
1509693cce
tests: null terminate buffer in torture_read_one_line()
...
CID 1393902
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-08-06 08:52:42 +02:00
Andreas Schneider
67ef808a95
tests: Add additional NULL check in torture_pki_rsa_write_privkey()
...
CID 1393904
CID 1393903
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-08-06 08:50:11 +02:00
Andreas Schneider
aeefcd8199
tests: Initialize readfds in torture_channel_select()
...
CID 1393905
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-08-06 08:46:37 +02:00
Andreas Schneider
9bc050d07d
tests: Check return code of ssh_pki_import_privkey_base64
...
CID 1393906
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-08-06 08:44:28 +02:00
Andreas Schneider
c2776f70c1
tests: Improve test checks
...
CID 1394620
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-08-06 08:32:07 +02:00
Andreas Schneider
e6020f94bf
server: Fix echo access in ssh_message_auth_interactive_request()
...
Fixes T94
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2018-08-03 19:08:57 +02:00
Anderson Toshiyuki Sasaki
9305762fcd
Remove internal calls to ssh_init
...
Since the call is made automatically when the library is loaded, these
calls are no longer required (if the library is not linked statically).
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
2018-08-03 16:43:03 +02:00