fix leanpsk build with keep cert / session cert

This commit is contained in:
toddouska
2013-05-09 15:29:25 -07:00
parent 83b96d748e
commit 8f0b695249
2 changed files with 7 additions and 1 deletions

View File

@@ -1913,7 +1913,9 @@ CYASSL_LOCAL word32 LowResTimer(void);
CYASSL_LOCAL void InitX509(CYASSL_X509*, int); CYASSL_LOCAL void InitX509(CYASSL_X509*, int);
CYASSL_LOCAL void FreeX509(CYASSL_X509*); CYASSL_LOCAL void FreeX509(CYASSL_X509*);
#ifndef NO_CERTS
CYASSL_LOCAL int CopyDecodedToX509(CYASSL_X509*, DecodedCert*); CYASSL_LOCAL int CopyDecodedToX509(CYASSL_X509*, DecodedCert*);
#endif
#ifdef __cplusplus #ifdef __cplusplus

View File

@@ -1182,6 +1182,8 @@ void InitSuites(Suites* suites, ProtocolVersion pv, byte haveRSA, byte havePSK,
} }
#ifndef NO_CERTS
/* Initialize CyaSSL X509 type */ /* Initialize CyaSSL X509 type */
void InitX509(CYASSL_X509* x509, int dynamicFlag) void InitX509(CYASSL_X509* x509, int dynamicFlag)
{ {
@@ -1205,6 +1207,8 @@ void FreeX509(CYASSL_X509* x509)
XFREE(x509, NULL, DYNAMIC_TYPE_X509); XFREE(x509, NULL, DYNAMIC_TYPE_X509);
} }
#endif /* NO_CERTS */
/* init everything to 0, NULL, default values before calling anything that may /* init everything to 0, NULL, default values before calling anything that may
fail so that desctructor has a "good" state to cleanup */ fail so that desctructor has a "good" state to cleanup */