summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2019-07-09 09:31:12 +0200
committerAndreas Schneider <asn@cryptomilk.org>2019-07-09 09:31:12 +0200
commita5cad4e7004269aef8a03b6b763b9b91cb9febb4 (patch)
tree6f89e191b4be479b47e69ac643317ada5b5f3ac5
parent8ce6a889aa4fd6f17174423e74933687e5340a65 (diff)
downloadlibssh-a5cad4e7004269aef8a03b6b763b9b91cb9febb4.tar.gz
libssh-a5cad4e7004269aef8a03b6b763b9b91cb9febb4.tar.xz
libssh-a5cad4e7004269aef8a03b6b763b9b91cb9febb4.zip
tests: Do not use internal macros in the fuzzerHEADmaster
It should be buildable without internal headers. Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
-rw-r--r--tests/fuzz/ssh_client_fuzzer.cpp13
1 files 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 <assert.h>
#include <stdio.h>
#include <stdlib.h>
@@ -23,16 +21,19 @@
#define LIBSSH_STATIC 1
#include <libssh/libssh.h>
-#include <libssh/priv.h>
#include <libssh/callbacks.h>
-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;