add back in haveTrustPeer variable and put macro guard on WC_RNG typedef

This commit is contained in:
Jacob Barthelmeh 2017-04-18 16:53:02 -06:00
parent 5b82c2f6ec
commit a8115d51fa
2 changed files with 8 additions and 1 deletions

View File

@ -6763,6 +6763,10 @@ static int DoCertificate(WOLFSSL* ssl, byte* input, word32* inOutIdx,
DoCertArgs args[1];
#endif
#ifdef WOLFSSL_TRUST_PEER_CERT
byte haveTrustPeer = 0; /* was cert verified by loaded trusted peer cert */
#endif
WOLFSSL_ENTER("DoCertificate");
#ifdef WOLFSSL_ASYNC_CRYPT

View File

@ -33,7 +33,10 @@
/* Opaque keys. Only key pointers are used for arguments */
typedef struct ecc_key ecc_key;
typedef struct RsaKey RsaKey;
typedef struct WC_RNG WC_RNG;
#ifndef WC_RNG_TYPE_DEFINED /* guard on redeclaration */
typedef struct WC_RNG WC_RNG;
#define WC_RNG_TYPE_DEFINED
#endif
/* Certificate file Type */
enum CertType {