Merge pull request #866 from JacobBarthelmeh/Testing

add back in haveTrustPeer variable and put macro guard on WC_RNG typedef
This commit is contained in:
toddouska
2017-04-19 11:57:56 -07:00
committed by GitHub
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 {