mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-03 20:54:41 +02:00
Update from review
This commit is contained in:
@@ -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,
|
||||||
|
Reference in New Issue
Block a user