pem_read_bio_key has additional exceptions in openssl1.1.1 than openssl3 #18228
Labels
branch: 1.1.1
Merge to OpenSSL_1_1_1-stable branch
branch: 3.0
Merge to openssl-3.0 branch
triaged: question
The issue contains a question
This is an issue at nodejs/node#42793.
In openssl3, exceptions generated by
pem_read_bio_key_decoder
are cleaned up internally.But in openssl1.1.1 it will be preserved.
Use
ERR_peek_last_error
in nodejs to determine whetherPEM_read_bio_PrivateKey
is successful.Is this an openssl1.1.1 bug or the wrong way to use it?
openssl3:
openssl/crypto/pem/pem_pkey.c
Lines 232 to 243 in 5cffc49
c++ Example:
js Example:
The text was updated successfully, but these errors were encountered: