mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 10:40:27 +09:00
tests: Do not use internal macros in the fuzzer
It should be buildable without internal headers. Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
@@ -14,8 +14,6 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@@ -23,16 +21,19 @@
|
|||||||
|
|
||||||
#define LIBSSH_STATIC 1
|
#define LIBSSH_STATIC 1
|
||||||
#include <libssh/libssh.h>
|
#include <libssh/libssh.h>
|
||||||
#include <libssh/priv.h>
|
|
||||||
#include <libssh/callbacks.h>
|
#include <libssh/callbacks.h>
|
||||||
|
|
||||||
static int auth_callback(UNUSED_PARAM(const char *prompt),
|
static int auth_callback(const char *prompt,
|
||||||
char *buf,
|
char *buf,
|
||||||
size_t len,
|
size_t len,
|
||||||
UNUSED_PARAM(int echo),
|
int echo,
|
||||||
int verify,
|
int verify,
|
||||||
UNUSED_PARAM(void *userdata))
|
void *userdata)
|
||||||
{
|
{
|
||||||
|
(void)prompt; /* unused */
|
||||||
|
(void)echo; /* unused */
|
||||||
|
(void)userdata; /* unused */
|
||||||
|
|
||||||
snprintf(buf, len, "secret");
|
snprintf(buf, len, "secret");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user