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 */
if (rsaKey) {
#ifndef NO_RSA
#ifdef WOLFSSL_ASYNC_CRYPT
certSignCtx = &rsaKey->certSignCtx;
#endif
heap = rsaKey->heap;
#else
return NOT_COMPILED_IN;
#endif /* NO_RSA */
}
else if (eccKey) {
#ifdef HAVE_ECC
#ifdef WOLFSSL_ASYNC_CRYPT
certSignCtx = &eccKey->certSignCtx;
#endif
heap = eccKey->heap;
#else
return NOT_COMPILED_IN;
#endif /* HAVE_ECC */
}
#ifdef WOLFSSL_ASYNC_CRYPT