Fix DecodePrivateKey to return NOT_COMPILED_IN with PKCS#11

This commit is contained in:
Sean Parkinson
2019-02-26 08:48:12 +10:00
parent cb830a088f
commit a2f8747652
2 changed files with 5 additions and 1 deletions

View File

@ -17016,6 +17016,8 @@ int DecodePrivateKey(WOLFSSL *ssl, word16* length)
/* Return the maximum signature length. */
*length = (word16)wc_ecc_sig_size_calc(ssl->buffers.keySz);
}
#else
ret = NOT_COMPILED_IN;
#endif
}
else if (ssl->buffers.keyType == ecc_dsa_sa_algo) {
@ -17032,6 +17034,8 @@ int DecodePrivateKey(WOLFSSL *ssl, word16* length)
/* Return the maximum signature length. */
*length = (word16)wc_ecc_sig_size_calc(ssl->buffers.keySz);
}
#else
ret = NOT_COMPILED_IN;
#endif
}
goto exit_dpk;