mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
try_pkcs12(): cleanse passphrase so it is not left on the stack
Reviewed-by: Ben Kaduk <kaduk@mit.edu> (Merged from https://github.com/openssl/openssl/pull/17320)
This commit is contained in:
parent
1dfef929e4
commit
da7db7ae6d
@ -619,9 +619,10 @@ static int try_pkcs12(struct extracted_param_data_st *data, OSSL_STORE_INFO **v,
|
||||
}
|
||||
ctx->cached_info = infos;
|
||||
}
|
||||
p12_end:
|
||||
OPENSSL_cleanse(tpass, sizeof(tpass));
|
||||
PKCS12_free(p12);
|
||||
}
|
||||
p12_end:
|
||||
PKCS12_free(p12);
|
||||
*v = sk_OSSL_STORE_INFO_shift(ctx->cached_info);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user