From 8644fdca7d40c3ff25237f477265ac64574055ed Mon Sep 17 00:00:00 2001 From: Eric Blankenhorn Date: Fri, 10 Apr 2020 08:29:31 -0500 Subject: [PATCH] Update from review --- wolfcrypt/src/asn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index d6e9b7768..6a1f954d0 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -10564,7 +10564,8 @@ int PemToDer(const unsigned char* buff, long longSz, int type, else { if (passwordSz == 0) { /* 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 { ret = wc_BufferKeyDecrypt(info, der->buffer, der->length,