From 4384a8a94d2b015d9d9f07873eea7ee9fde77be9 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 9 Jul 2019 09:31:12 +0200 Subject: tests: Do not use internal macros in the fuzzer It should be buildable without internal headers. Signed-off-by: Andreas Schneider --- tests/fuzz/ssh_client_fuzzer.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/fuzz/ssh_client_fuzzer.cpp b/tests/fuzz/ssh_client_fuzzer.cpp index eabe294c..6f96c30e 100644 --- a/tests/fuzz/ssh_client_fuzzer.cpp +++ b/tests/fuzz/ssh_client_fuzzer.cpp @@ -14,8 +14,6 @@ * limitations under the License. */ -#include "config.h" - #include #include #include @@ -23,16 +21,19 @@ #define LIBSSH_STATIC 1 #include -#include #include -static int auth_callback(UNUSED_PARAM(const char *prompt), +static int auth_callback(const char *prompt, char *buf, size_t len, - UNUSED_PARAM(int echo), + int echo, int verify, - UNUSED_PARAM(void *userdata)) + void *userdata) { + (void)prompt; /* unused */ + (void)echo; /* unused */ + (void)userdata; /* unused */ + snprintf(buf, len, "secret"); return 0; -- cgit v1.2.3