Encrypt key requirements check

The file wc_encrypt.c offers a function named wc_CryptKey(), which
requires PWDBASED and ASN. Added the check for ASN.
pull/2906/head
John Safranek 2020-04-15 12:54:44 -07:00
parent e84cd1a887
commit 7cbf496329
No known key found for this signature in database
GPG Key ID: 8CE817DE0D3CCB4A
1 changed files with 1 additions and 1 deletions

View File

@ -363,7 +363,7 @@ int wc_BufferKeyEncrypt(EncryptedInfo* info, byte* der, word32 derSz,
#endif /* WOLFSSL_ENCRYPTED_KEYS */
#ifndef NO_PWDBASED
#if !defined(NO_PWDBASED) && !defined(NO_ASN)
#if defined(HAVE_PKCS8) || defined(HAVE_PKCS12)
/* Decrypt/Encrypt input in place from parameters based on id