Refactor x509v3_cache_extensions
authorjob <job@openbsd.org>
Fri, 20 Jan 2023 22:00:47 +0000 (22:00 +0000)
committerjob <job@openbsd.org>
Fri, 20 Jan 2023 22:00:47 +0000 (22:00 +0000)
commit0051318f98cfabe165df2f20c313f5b5d53f748a
treebcd24dcc877fe26e73788653b9b1066ae3b64894
parent009dd187d54193e7f98e87ccd11c616924278c5e
Refactor x509v3_cache_extensions

Simplify x509v3_cache_extensions() by using a wrapper to avoid
duplication of code for locking and checking the EXFLAG_INVALID flag.

OK tb@
lib/libcrypto/x509/x509_internal.h
lib/libcrypto/x509/x509_purp.c
lib/libcrypto/x509/x509_verify.c