No booleans and import config

This commit is contained in:
Philippe Antoine 2019-07-10 14:26:31 +02:00
parent a82fdd4763
commit 42a2ce8255
5 changed files with 6 additions and 8 deletions

View file

@ -5,12 +5,11 @@
#include "common.h"
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdint.h>
#ifdef MBEDTLS_SSL_CLI_C
static bool initialized = 0;
static int initialized = 0;
#if defined(MBEDTLS_X509_CRT_PARSE_C) && defined(MBEDTLS_PEM_PARSE_C)
static mbedtls_x509_crt cacert;
#endif

View file

@ -1,6 +1,5 @@
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdint.h>
#include "common.h"
#include "mbedtls/ssl.h"
@ -12,7 +11,7 @@
#ifdef MBEDTLS_SSL_CLI_C
static bool initialized = 0;
static int initialized = 0;
#if defined(MBEDTLS_X509_CRT_PARSE_C) && defined(MBEDTLS_PEM_PARSE_C)
static mbedtls_x509_crt cacert;
#endif

View file

@ -1,6 +1,5 @@
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdint.h>
#include "common.h"
#include "mbedtls/ssl.h"
@ -15,7 +14,7 @@
#ifdef MBEDTLS_SSL_SRV_C
const char *pers = "fuzz_dtlsserver";
const unsigned char client_ip[4] = {0x7F, 0, 0, 1};
static bool initialized = 0;
static int initialized = 0;
#if defined(MBEDTLS_X509_CRT_PARSE_C) && defined(MBEDTLS_PEM_PARSE_C)
static mbedtls_x509_crt srvcert;
static mbedtls_pk_context pkey;

View file

@ -6,13 +6,12 @@
#include "common.h"
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdint.h>
#ifdef MBEDTLS_SSL_SRV_C
const char *pers = "fuzz_server";
static bool initialized = 0;
static int initialized = 0;
#if defined(MBEDTLS_X509_CRT_PARSE_C) && defined(MBEDTLS_PEM_PARSE_C)
static mbedtls_x509_crt srvcert;
static mbedtls_pk_context pkey;

View file

@ -1,6 +1,8 @@
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
// Get platform-specific definition
#include "mbedtls/config.h"
int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size);