aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2018-06-27ecdh: fix SSH_MSG_KEXDH_REPLY for mbedTLSJon Simons1-3/+13
Ensure to provide the `ssh_string` pubkey blob to the buffer packing routine when computing the SSH_MSG_KEXDH_REPLY message, rather than the new `ssh_key` type. Introduced with 16217454d576511f37f39c3169963629f9d5082f. Testing done: with this change, the `pkd_hello` test is passing on a mbedTLS build for me. Previously it would segfault during pubkey exchange with "ecdh-sha2-nistp256". Signed-off-by: Jon Simons <jon@jonsimons.org> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-27ecdh: fix SSH_MSG_KEXDH_REPLY for libgcryptJon Simons1-1/+10
Ensure to provide the `ssh_string` pubkey blob to the buffer packing routine when computing the SSH_MSG_KEXDH_REPLY message, rather than the new `ssh_key` type. Introduced with 16217454d576511f37f39c3169963629f9d5082f. Testing done: with this change, the `pkd_hello` test is passing on a libgcrypt build for me. Previously it would segfault during pubkey exchange with "ecdh-sha2-nistp256". Signed-off-by: Jon Simons <jon@jonsimons.org> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-27ecdh: fix SSH_MSG_KEXDH_REPLY for libcryptoJon Simons1-1/+10
Ensure to provide the `ssh_string` pubkey blob to the buffer packing routine when computing the SSH_MSG_KEXDH_REPLY message, rather than the new `ssh_key` type. Introduced with 16217454d576511f37f39c3169963629f9d5082f. Testing done: with this change, `pkd_hello` test is passing on an OpenSSL 1.1.0 build for me. Previously it would segfault during pubkey exchange with "ecdh-sha2-nistp256". Signed-off-by: Jon Simons <jon@jonsimons.org> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-27gitlab: Use wine to run tests built for WindowsAnderson Toshiyuki Sasaki2-5/+19
When building in a cross-compiling environment, use wine to run the tests. Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-27cmake: Added executable exension on test binariesAnderson Toshiyuki Sasaki1-1/+1
This is necessary when building the tests for Windows. Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-27gitlab: Add build with mbedtlsAndreas Schneider1-0/+16
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-27gitlab: Enable build with libgcryptAndreas Schneider1-4/+2
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-27torture: Don't exclude filter mechanism on WindowsAndreas Schneider1-2/+2
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-27torture: Don't include sys/socket.h on WindowsAndreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-27gitlab: Don't error out if obj existsAndreas Schneider1-13/+13
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-27gitlab: Added builds for Windows using MinGWAnderson Toshiyuki Sasaki1-0/+39
Only the unit tests are run. Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-27gitlab: Use obj dir for buildingAndreas Schneider1-11/+11
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-27tests: Call ssh_session_is_known_server()Andreas Schneider3-3/+3
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-27dh: Fix reference to ssh_session_update_known_hosts()Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-27include: Fix reference to ssh_session_update_known_hostsAndreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-27doc: Updated guided tour for knownhosts changesAndreas Schneider1-68/+84
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-27torture: Fix building on WindowsAndreas Schneider1-34/+36
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-25knownhosts: Fix windows build failureAlberto Aguirre1-0/+3
Signed-off-by: Alberto Aguirre <albaguirre@gmail.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-21include: Declare ge25519_base as externAndreas Schneider1-1/+1
Thanks to Tilo Eckart. The global variable "ge25519_base" is referenced in the module "src/external/ed25519.c" and initialized in "src/external/ge25519.c". The lack of the extern keyword in the header results in different instances being compiled into both translation units with some compilers. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-06knownhosts: Do not double free memoryAndreas Schneider1-1/+0
CID 1393236 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-05tests: Add missing newline to KNOWN_HOST_ENTRY_ED25519Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-05tests: Allow knownhosts verify test to validate ed25519 and ecdsaAndreas Schneider1-2/+9
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-05knownhosts: Fix resource leak in ssh_known_hosts_parse_line()Andreas Schneider1-2/+4
CID 1391444 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-05knownhosts: Fix a memory leak on errorAndreas Schneider1-0/+1
CID 1391446 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-05knownhosts: Fix possible null pointer dereferenceAndreas Schneider1-4/+6
CID 1391447 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-05knownhosts: Fix resource leak in ssh_session_update_known_hosts()Andreas Schneider1-1/+3
CID 1391448 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-05knownhosts: Fix resource leak in ssh_known_hosts_read_entries()Andreas Schneider1-0/+3
CID 1391449 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-04buffer: Add ssh_buffer_allocate() functionAris Adamantiadis2-0/+39
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-04packet: Add more debuggingAris Adamantiadis1-1/+17
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-04cmake: add WITH_PACKET_DEBUG optionAris Adamantiadis3-0/+8
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-04examples: Use new known hosts functionsAndreas Schneider1-8/+8
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-04libsshpp: Use new known hosts functionsAndreas Schneider1-3/+3
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-04known_hosts: Mark ssh_is_server_known as deprecatedAndreas Schneider1-25/+3
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-04kwonhosts: Add functions to check if servers public key is knownAndreas Schneider3-1/+181
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-04knownhosts: Add ssh_session_update_known_hosts()Andreas Schneider2-0/+76
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-04knownhosts: Add ssh_session_export_known_hosts_entry()Andreas Schneider4-0/+214
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-04knownhosts: Add ssh_session_has_known_hosts_entry()Andreas Schneider3-0/+127
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-04misc: Add ssh_list_count()Andreas Schneider3-0/+26
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-04knownhosts: Add ssh_known_hosts_read_entries()Andreas Schneider2-0/+117
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-04knownhosts: Introduce new known hosts managing functionsAndreas Schneider5-0/+538
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-04tortrue: Add ed25519 hostkey to sshdAndreas Schneider1-0/+18
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-04threads: Fix compiler warningAndreas Schneider1-1/+4
Use a protype for libcrypto_lock_callback(). Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-06-04tests: Fix size for bob_ssh_certAndreas Schneider1-1/+1
Fixes a gcc8 warning. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-05-30Add builds for opensuse tumbleweedJim McDonough1-0/+53
Signed-off-by: Jim McDonough <jmcdonough@suse.com>
2018-05-14wrapper: Fix memory leak when freeing server_pubkeyAndreas Schneider1-1/+1
Thanks to John McVann. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-05-07torture: Increase wait time for process termination to 10msAndreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-05-07connector: Add missing check for POLLHUP to detect EOFAndreas Schneider1-1/+2
Thanks to Chris Townsend. Fixes T81 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-05-07auth: Handle SSH_AUTH_PARTIAL in agent auth correctlyAndreas Schneider1-2/+4
Thanks to Orion Poplawski. Fixes T82 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-05-07server: Fix segfault in dh_handshake_server()Andreas Schneider1-1/+11
Thanks to Felix Jones Fixes T91 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2018-05-07tests: We should only init and finalize libssh onceAndreas Schneider1-4/+4
This should fix a segfault with gcrypt. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>