Update from review

This commit is contained in:
Eric Blankenhorn
2020-04-10 08:29:31 -05:00
parent c3e0575914
commit 8644fdca7d

View File

@@ -10564,7 +10564,8 @@ int PemToDer(const unsigned char* buff, long longSz, int type,
else { else {
if (passwordSz == 0) { if (passwordSz == 0) {
/* The key is encrypted but does not have a password */ /* The key is encrypted but does not have a password */
ret = ASN_PARSE_E; WOLFSSL_MSG("No password for encrypted key");
ret = NO_PASSWORD;
} }
else { else {
ret = wc_BufferKeyDecrypt(info, der->buffer, der->length, ret = wc_BufferKeyDecrypt(info, der->buffer, der->length,