aboutsummaryrefslogtreecommitdiff
path: root/tests/fuzz/ssh_client_fuzzer.cpp
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2020-04-28 13:11:08 +0200
committerAndreas Schneider <asn@cryptomilk.org>2020-05-05 14:23:06 +0200
commitae184db913aef07d2cbfa9605f2af66f4d2365e5 (patch)
treefc99c10a90d5b41f864eba77e42294a35e40b0e3 /tests/fuzz/ssh_client_fuzzer.cpp
parentb88aa98550dc4f45a57f0b6d3c9a1263e1fe9b7b (diff)
downloadlibssh-ae184db913aef07d2cbfa9605f2af66f4d2365e5.tar.gz
libssh-ae184db913aef07d2cbfa9605f2af66f4d2365e5.tar.xz
libssh-ae184db913aef07d2cbfa9605f2af66f4d2365e5.zip
fuzz: Use none cipher and MAC
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'tests/fuzz/ssh_client_fuzzer.cpp')
-rw-r--r--tests/fuzz/ssh_client_fuzzer.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/fuzz/ssh_client_fuzzer.cpp b/tests/fuzz/ssh_client_fuzzer.cpp
index 87bfa10b..17ae4774 100644
--- a/tests/fuzz/ssh_client_fuzzer.cpp
+++ b/tests/fuzz/ssh_client_fuzzer.cpp
@@ -117,6 +117,14 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
assert(rc == 0);
rc = ssh_options_set(session, SSH_OPTIONS_USER, "alice");
assert(rc == 0);
+ rc = ssh_options_set(session, SSH_OPTIONS_CIPHERS_C_S, "none");
+ assert(rc == 0);
+ rc = ssh_options_set(session, SSH_OPTIONS_CIPHERS_S_C, "none");
+ assert(rc == 0);
+ rc = ssh_options_set(session, SSH_OPTIONS_HMAC_C_S, "none");
+ assert(rc == 0);
+ rc = ssh_options_set(session, SSH_OPTIONS_HMAC_S_C, "none");
+ assert(rc == 0);
ssh_callbacks_init(&cb);
ssh_set_callbacks(session, &cb);