1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2026-10-24 03:48:55 +03:00

tests: Add differential fuzzer for libssh and openssh

Signed-off-by: Nikhil V <nikhilgreyshines@gmail.com>
Reviewed-by: Norbert Pocs <norbertpocs0@gmail.com>
Reviewed-by: Pavol Žáčik <pzacik@redhat.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Merge-Request: <https://gitlab.com/libssh/libssh-mirror/-/merge_requests/810>
This commit is contained in:
Nikhil V
2026-01-12 23:15:18 +05:30
committed by Jakub Jelen
parent cb61e8225f
commit 29d2c20e54
10 changed files with 1098 additions and 0 deletions

View File

@@ -259,6 +259,7 @@ message(STATUS "Blowfish cipher support: ${HAVE_BLOWFISH}")
message(STATUS "PKCS #11 URI support: ${WITH_PKCS11_URI}")
message(STATUS "With PKCS #11 provider support: ${WITH_PKCS11_PROVIDER}")
message(STATUS "With FIDO2/U2F support: ${WITH_FIDO2}")
message(STATUS "Continuous fuzzing in Differential Configuration fuzzer: ${FUZZ_CONTINUOUS_MODE}")
if (WITH_FIDO2)
message(STATUS "With libfido2 (internal usb-hid support): ${HAVE_LIBFIDO2}")
endif (WITH_FIDO2)

View File

@@ -42,6 +42,10 @@ option(
FUZZ_TESTING
"Build with fuzzer for the server and client (automatically enables none cipher!)"
OFF)
option(
FUZZ_CONTINUOUS_MODE
"Continuous fuzzing in Differential Configuration fuzzer"
OFF)
option(PICKY_DEVELOPER "Build with picky developer flags" OFF)
option(WITH_HERMETIC_USR "Build with support for hermetic /usr/" OFF)

View File

@@ -309,6 +309,10 @@
/* Define to 1 if you want to enable FIDO2/U2F support */
#cmakedefine WITH_FIDO2 1
/* Define to 1 if you want to enable continuous fuzzing by logging divergences to a 'bugs' directory
* instead of crashing immediately. Note: This is only applicable to the differential fuzzer. */
#cmakedefine FUZZ_CONTINUOUS_MODE 1
/*************************** ENDIAN *****************************/
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most

View File

@@ -58,6 +58,7 @@ fuzzer(ssh_privkey_fuzzer)
fuzzer(ssh_pubkey_fuzzer)
fuzzer(ssh_sftp_attr_fuzzer)
fuzzer(ssh_sshsig_fuzzer)
fuzzer(ssh_config_diff_fuzzer)
if (WITH_SERVER)
fuzzer(ssh_scp_fuzzer)
fuzzer(ssh_server_fuzzer)

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,2 @@
Host my_host
AddressFamily inet6

View File

@@ -0,0 +1,2 @@
Host my_host
KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256

View File

@@ -0,0 +1,2 @@
Host my_host
MACs hmac-sha2-256,hmac-sha2-512

View File

@@ -0,0 +1,3 @@
Host my_host
ServerAliveCountMax 5
ServerAliveInterval 300

View File

@@ -0,0 +1,2 @@
Host my_host
StrictHostKeyChecking accept-new