wolfSSL: Use defines from wolfssl/options.h

Depend on proper wolfSSL configuration instead of trying to define these
build configuration values externally.

Signed-off-by: Sean Parkinson <sean@wolfssl.com>
This commit is contained in:
Sean Parkinson 2018-03-29 14:55:55 +10:00 committed by Jouni Malinen
parent 3122121746
commit 7be462084e
2 changed files with 2 additions and 26 deletions

View file

@ -11,18 +11,8 @@
#include "common.h"
#include "crypto.h"
#define WOLFSSL_AES_DIRECT
#define HAVE_AESGCM
#define HAVE_AES_KEYWRAP
#define WOLFSSL_SHA384
#define WOLFSSL_SHA512
#define WOLFSSL_CMAC
#define HAVE_ECC
#define USE_FAST_MATH
#define WOLFSSL_KEY_GEN
#include <wolfssl/options.h>
/* wolfSSL headers */
#include <wolfssl/options.h>
#include <wolfssl/wolfcrypt/md4.h>
#include <wolfssl/wolfcrypt/md5.h>
#include <wolfssl/wolfcrypt/sha.h>

View file

@ -12,22 +12,8 @@
#include "crypto.h"
#include "tls.h"
#define OPENSSL_EXTRA
#define HAVE_STUNNEL
#define HAVE_SECRET_CALLBACK
#define HAVE_SESSION_TICKET
#define HAVE_OCSP
#define HAVE_CERTIFICATE_STATUS_REQUEST
#define HAVE_CERTIFICATE_STATUS_REQUEST_V2
#ifndef WOLFSSL_DER_LOAD
#define WOLFSSL_DER_LOAD
#endif
#if 0
/* Enable if a debug build of wolfSSL is installed. */
#define DEBUG_WOLFSSL
#endif
/* wolfSSL includes */
#include <wolfssl/options.h>
#include <wolfssl/ssl.h>
#include <wolfssl/error-ssl.h>
#include <wolfssl/wolfcrypt/asn.h>