Merge pull request #952 from JacobBarthelmeh/Testing

sanity check on build with ECC or RSA
This commit is contained in:
toddouska
2017-06-12 10:47:53 -07:00
committed by GitHub

View File

@ -9000,16 +9000,24 @@ static int SignCert(int requestSz, int sType, byte* buffer, word32 buffSz,
/* locate ctx */ /* locate ctx */
if (rsaKey) { if (rsaKey) {
#ifndef NO_RSA
#ifdef WOLFSSL_ASYNC_CRYPT #ifdef WOLFSSL_ASYNC_CRYPT
certSignCtx = &rsaKey->certSignCtx; certSignCtx = &rsaKey->certSignCtx;
#endif #endif
heap = rsaKey->heap; heap = rsaKey->heap;
#else
return NOT_COMPILED_IN;
#endif /* NO_RSA */
} }
else if (eccKey) { else if (eccKey) {
#ifdef HAVE_ECC
#ifdef WOLFSSL_ASYNC_CRYPT #ifdef WOLFSSL_ASYNC_CRYPT
certSignCtx = &eccKey->certSignCtx; certSignCtx = &eccKey->certSignCtx;
#endif #endif
heap = eccKey->heap; heap = eccKey->heap;
#else
return NOT_COMPILED_IN;
#endif /* HAVE_ECC */
} }
#ifdef WOLFSSL_ASYNC_CRYPT #ifdef WOLFSSL_ASYNC_CRYPT