Refactor X509_STORE_get1_certs()
authortb <tb@openbsd.org>
Sat, 6 Nov 2021 07:18:18 +0000 (07:18 +0000)
committertb <tb@openbsd.org>
Sat, 6 Nov 2021 07:18:18 +0000 (07:18 +0000)
commitc82d3592504d19b7081f343a7beae7eac4a39cf3
treec27bb364910d5cd8d1ee5d94c6cafbe5923ccea5
parentd0fd4be49d14ebcc7e4146a2ad4009619095c86f
Refactor X509_STORE_get1_certs()

Split the retrieval of the certs in the store's cache that match the
desired subject into a separate function. This greatly simplifies
locking, error handling and the flow of the function.

with/ok jsing
lib/libcrypto/x509/x509_lu.c