Andreas Schneider
fabaab1540
gssapi: Fix size types
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 64a354159f )
2018-08-22 09:08:17 +02:00
Andreas Schneider
8ac49ff181
options: Fix size types
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 0a46690eca )
2018-08-22 09:08:15 +02:00
Andreas Schneider
cdf55a18d2
kex: Fix size types
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 26263aabd4 )
2018-08-22 09:08:13 +02:00
Andreas Schneider
d158ca7101
tests: Check return code of setuid()
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 6867a35004 )
2018-08-22 09:08:12 +02:00
Andreas Schneider
664b7ebfa1
known_hosts: Update documentation of deprecated knwon_hosts functions
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 7946104566 )
2018-08-21 11:40:48 +02:00
Andreas Schneider
163c488e30
gitlab-ci: Add two builds with optimizations turned on
...
This enables the optimizer and will give use additional compiler
warnings and errors.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 140ddf5109 )
2018-08-20 18:43:25 +02:00
Andreas Schneider
4b5bfa7a9d
gitlab-ci: Enable PICKY_DEVELOPER
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 887908107a )
2018-08-20 18:43:23 +02:00
Andreas Schneider
decbadda45
cmake: Add support for picky developer flags
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 8855a140cf )
2018-08-20 18:43:22 +02:00
Andreas Schneider
f00d780c16
cmake: Improve compiler flag detection
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit a9a99fb31f )
2018-08-20 18:43:20 +02:00
Andreas Schneider
1daa2e4609
cmake: Check for -Werror in ConfigureChecks.cmake
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 26a4097742 )
2018-08-20 18:43:19 +02:00
Andreas Schneider
d84bc3ad8e
cmake: Respect CMAKE_REQUIRED_* variables in CHECK_C_COMPILER_FLAG_SSP
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 99a9cf0fcb )
2018-08-20 18:43:18 +02:00
Andreas Schneider
a9350e3205
tests: Make sure pointer are initialized in torture_pki_ed25519
...
Fixes compiler warnings.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit fd157befae )
2018-08-20 18:43:16 +02:00
Andreas Schneider
95e3a7e7a3
tests: Make sure pointer are initialized in torture_pki_ecdsa
...
Fixes compiler warnings.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 6f6840a88a )
2018-08-20 18:43:15 +02:00
Andreas Schneider
e4cecee7d3
tests: Make sure pointer are initialized in torture_pki_dsa
...
Fixes compiler warnings.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 562e579675 )
2018-08-20 18:43:14 +02:00
Andreas Schneider
8b867b41d3
tests: Make sure pointer are initialized in torture_pki_rsa
...
Fixes compiler warnings.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 1e89896d05 )
2018-08-20 18:43:12 +02:00
Andreas Schneider
c6bd2fe734
tests: Use ZERO_STRUCT for readfds
...
This fixes a compiler warning on FreeBSD.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 3b896750b8 )
2018-08-20 18:43:11 +02:00
Andreas Schneider
d7e52b99bd
tests: Fix function declaration in pkd_hello
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit f433949dcd )
2018-08-20 18:43:09 +02:00
Andreas Schneider
a640d9472a
tests: Fix function declaration in torture_packet
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 8e418ea020 )
2018-08-20 18:43:08 +02:00
Andreas Schneider
b15103ef4e
log: Make sure the buffer for date is big enough
...
src/log.c:71:32: error: '%06ld' directive output may be truncated
writing between 6 and 20 bytes into a region of size between 0 and 63
[-Werror=format-truncation=]
snprintf(buf, len, "%s.%06ld", tbuf, (long)tv.tv_usec);
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 6766b0a860 )
2018-08-20 18:43:06 +02:00
Andreas Schneider
95071cd1fe
agent: Fix type of the buffer
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit ce45de9ea2 )
2018-08-20 18:43:05 +02:00
Andreas Schneider
18a888f9fb
mbedtls: Use getter for ssh_mbedtls_ctr_drbg
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 85d2c0371a )
2018-08-20 18:43:04 +02:00
Andreas Schneider
bbfc41948a
examples: Fix function declaration in sshnetcat
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 1d9f548204 )
2018-08-20 18:43:02 +02:00
Andreas Schneider
c29a8cc084
include: Fix shadow variables in libsshpp
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit dad456a1ee )
2018-08-20 18:43:00 +02:00
Jakub Jelen
54e7af83e6
sftp: Fix the debug message in sftp_enqueue()
...
This fixes the assignment of variables to comments and makes
the output symmetric with sftp_dequeue().
Signed-off-by: Jakub Jelen <jjelen@redhat.com >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit a0214dfc9a )
2018-08-18 10:01:47 +02:00
Jakub Jelen
3483d6327d
tests: Unsupported and unknown configuration options do not crash
...
Signed-off-by: Jakub Jelen <jjelen@redhat.com >
(cherry picked from commit c004b43fde )
2018-08-16 18:18:17 +02:00
Jakub Jelen
5869345899
config: Do not access negative indexes of seen array
...
Signed-off-by: Jakub Jelen <jjelen@redhat.com >
(cherry picked from commit 6848c23d84 )
2018-08-16 18:18:15 +02:00
Andreas Schneider
0cad2778b4
cmake: Correctly detect support for __bounded__ attribute
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 4104d2fb91 )
2018-08-16 17:47:14 +02:00
Andreas Schneider
24de1fbde8
init: Fix DllMain
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 86d00f438c )
2018-08-16 09:22:12 +02:00
Andreas Schneider
131728a680
cmake: Fix optional ABIMap detection
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
Reviewed-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com >
(cherry picked from commit f65882cca6 )
2018-08-14 15:55:15 +02:00
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