Merge pull request #1888 from MJSPollard/nidFIX

Fixed compilation issues with Asio, Websocket++, and HAProxy
This commit is contained in:
Chris Conlon
2018-10-22 10:19:05 -06:00
committed by GitHub

View File

@@ -40,6 +40,10 @@
#include <wolfssl/openssl/crypto.h>
#endif
#if defined(WOLFSSL_ASIO) || defined(WOLFSSL_HAPROXY)
#include <wolfssl/wolfcrypt/asn.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
@@ -913,8 +917,9 @@ typedef WOLFSSL_ASN1_BIT_STRING ASN1_BIT_STRING;
#define X509_NAME_ENTRY_get_object wolfSSL_X509_NAME_ENTRY_get_object
#define SSL_get_SSL_CTX wolfSSL_get_SSL_CTX
#define ERR_peek_last_error wolfSSL_ERR_peek_last_error
#ifndef WOLFSSL_HAPROXY
#define X509_get_version wolfSSL_X509_get_version
#endif
#define ERR_NUM_ERRORS 16
#define EVP_PKEY_RSA 6