Andreas Schneider
c1211a4e1a
doc: Update doxygen documentation
...
This fixes some issues with the new docs and uses a new modern style.
https://github.com/jl-wynen/that_style
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 5334cb9d55 )
2018-08-29 11:13:03 +02:00
Andreas Schneider
95d34b5937
doc: Remove obsolete Doxyfile.in
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 9a73fa885a )
2018-08-29 11:13:01 +02:00
Alex Hermann
6dc3f666c5
misc: Set default port to 22 in ssh_path_expand_escape()
...
Fixes, among others, ProxyCommand with %p when no port is used on
commandline or config file, thus using the default port.
Fixes T94
Signed-off-by: Alex Hermann <alex@hexla.nl >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 23f60a56f3 )
2018-08-28 15:45:07 +02:00
Andreas Schneider
8e4491a532
cmake: Fix doxygen generation
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 648f5cf400 )
2018-08-27 16:47:02 +02:00
Anderson Toshiyuki Sasaki
492095b2a7
cmake: Fix FindABIMap targets
...
Fix the targets and output files handling to make the symbols to be
updated correctly when a symbol is added or removed.
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit f49bb1b6a3 )
2018-08-27 16:46:59 +02:00
Jakub Jelen
d516642980
doc: There is no hostbased authentication implemented
...
Signed-off-by: Jakub Jelen <jjelen@redhat.com >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit f0a4c1e888 )
2018-08-27 12:25:12 +02:00
Andreas Schneider
193845ecdd
auth: Reset errors on successful authentication
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit a0fec81221 )
2018-08-27 12:25:10 +02:00
Andreas Schneider
598d04d5d9
error: Add ssh_reset_error() function
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 0aad4de5f4 )
2018-08-27 12:25:09 +02:00
Andreas Schneider
06c5dd9c84
auth: Also log the current auth method
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 280519af29 )
2018-08-27 12:25:07 +02:00
Andreas Schneider
6632659907
auth: Fix the pending_call_state of ssh_userauth_password()
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 0ae376f133 )
2018-08-27 12:25:05 +02:00
Andreas Schneider
86bf835d50
session: Group auth variables in a struct
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 73c9d60e5a )
2018-08-27 12:25:03 +02:00
Jakub Jelen
c9d0362a6b
sftp: Avoid race condition reading incomplete data messages
...
This changes amends f561e6bcb3 which
introduces same check in one place, but miss it in other two places.
We encountered this issue with qemu using SFTP to transfer large
data chunks and in some cases, the file transfer was interrupted
without any reason. From the debug messages, it showed up that
last part of data message/packet was not handled in the time
of the sftp_read() call, therefore the ssh_channel_read() returned
zero (there was no more data to read yet), which made the whole
transfer fail hard instead of retrying later.
The proposed change is reusing the code from previously referenced
commit also in the other places.
Signed-off-by: Jakub Jelen <jjelen@redhat.com >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit ae3825dfb2 )
2018-08-27 09:30:14 +02:00
Andreas Schneider
d2989f28db
auth: Fix possible NULL pointer dereference
...
explicit_bzero() doesn't handle NULL.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 8f1e995cec )
2018-08-27 09:30:12 +02:00
Andreas Schneider
0bab6013d0
cmake: Check if the linker supports version scripts
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 4de8ed684b )
2018-08-27 09:30:10 +02:00
Anderson Toshiyuki Sasaki
361d93586c
docs: Update threading documentation
...
Updated threading documentation mentioning changes in the requirements
to use libssh in multithread scenarios.
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com >
Reviewed-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit d0f3cdfa10 )
2018-08-24 14:59:12 +02:00
Andreas Schneider
0db13661b4
cmake: Improve compiler flag detection
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit a97e227a9d )
2018-08-24 07:53:20 +02:00
Andreas Schneider
c866592d7d
options: Fix size types
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 119a457357 )
2018-08-24 07:53:18 +02:00
Andreas Schneider
eb90325bed
cmake: Allow zero for variadic macro argument
...
This is also needed for clang.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 4ae7e35d9c )
2018-08-23 22:41:25 +02:00
Andreas Schneider
c878545977
cmake: Add header to AddCCompilerFlag.cmake
...
(cherry picked from commit 47bf099c36 )
2018-08-23 22:41:23 +02:00
Andreas Schneider
741021513b
options: Fix integer types
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 9a43298b3a )
2018-08-23 22:41:21 +02:00
Andreas Schneider
97e8aba080
options: Reformat ssh_options_getopt()
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 3f17154367 )
2018-08-23 22:41:19 +02:00
Andreas Schneider
802d46d040
cmake: Disable include_guard as oss-fuzz's cmake version is too old
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit f8435e261c )
2018-08-22 12:12:27 +02:00
Andreas Schneider
96718df15e
gitlab-ci: Add target to build the docs
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 6162b63d5e )
2018-08-22 09:09:13 +02:00
Andreas Schneider
89bd779e78
cmake: Remove obsolete UseDoxygen.cmake
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 19e081aedb )
2018-08-22 09:09:12 +02:00
Andreas Schneider
b5af3e74d7
cmake: Use FindDoxygen package provided by cmake
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit a154bd9f22 )
2018-08-22 09:09:10 +02:00
Andreas Schneider
2d3932d988
doc: Update Doxyfile.in
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit e618298bda )
2018-08-22 09:09:08 +02:00
Andreas Schneider
d0c1583ad2
knownhosts: Add knownhosts to libssh_session group
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 7e1b67754c )
2018-08-22 09:09:06 +02:00
Andreas Schneider
59ff4064ba
libssh: Document ssh_known_hosts_e
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 868623f9a8 )
2018-08-22 09:09:04 +02:00
Andreas Schneider
00a68c985f
libsshpp: Match documentation with the code
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 49f92cf5cd )
2018-08-22 09:09:02 +02:00
Andreas Schneider
e862ea556c
channels: Fix timeout variable to match documentation
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit c2fc9ac956 )
2018-08-22 09:09:00 +02:00
Andreas Schneider
a4704cba0b
cmake: Remove obsolete DefineCompilerFlags.cmake
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 9820a35a9e )
2018-08-22 09:08:20 +02:00
Andreas Schneider
455b3a7865
cmake: Set -D_FORTIFY_SOURCE=2 if possible
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 5e9435924c )
2018-08-22 09:08:19 +02:00
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