mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-05-03 13:09:38 +00:00
PEM: Have pem_read_bio_key() set the OSSL_STORE expected type
Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/13248)
This commit is contained in:
parent
35426b2f9c
commit
8d8fee6400
@ -67,6 +67,9 @@ static EVP_PKEY *pem_read_bio_key(BIO *bp, EVP_PKEY **x,
|
||||
# endif
|
||||
#endif
|
||||
|
||||
if (!OSSL_STORE_expect(ctx, expected_store_info_type))
|
||||
goto err;
|
||||
|
||||
while (!OSSL_STORE_eof(ctx)
|
||||
&& (info = OSSL_STORE_load(ctx)) != NULL) {
|
||||
if (OSSL_STORE_INFO_get_type(info) == expected_store_info_type) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user