summaryrefslogtreecommitdiff
path: root/lib/libcrypto/x509/x509_internal.h
diff options
context:
space:
mode:
authorJob Snijders <job@cvs.openbsd.org>2023-01-20 22:00:48 +0000
committerJob Snijders <job@cvs.openbsd.org>2023-01-20 22:00:48 +0000
commit11d4cc884e34057b7fdc08817433b38b2726de58 (patch)
tree135c45273e0b096c6b96e4eec05726b613bce72a /lib/libcrypto/x509/x509_internal.h
parenta7429b6364ad98b28ffb9ba37be8fa0ab2c2b732 (diff)
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@
Diffstat (limited to 'lib/libcrypto/x509/x509_internal.h')
-rw-r--r--lib/libcrypto/x509/x509_internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/x509/x509_internal.h b/lib/libcrypto/x509/x509_internal.h
index 4ce6cd1e85f..cb80005075a 100644
--- a/lib/libcrypto/x509/x509_internal.h
+++ b/lib/libcrypto/x509/x509_internal.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: x509_internal.h,v 1.23 2022/11/26 16:08:54 tb Exp $ */
+/* $OpenBSD: x509_internal.h,v 1.24 2023/01/20 22:00:47 job Exp $ */
/*
* Copyright (c) 2020 Bob Beck <beck@openbsd.org>
*
@@ -94,7 +94,7 @@ int x509_vfy_check_policy(X509_STORE_CTX *ctx);
int x509_vfy_check_trust(X509_STORE_CTX *ctx);
int x509_vfy_check_chain_extensions(X509_STORE_CTX *ctx);
int x509_vfy_callback_indicate_completion(X509_STORE_CTX *ctx);
-void x509v3_cache_extensions(X509 *x);
+int x509v3_cache_extensions(X509 *x);
X509 *x509_vfy_lookup_cert_match(X509_STORE_CTX *ctx, X509 *x);
time_t x509_verify_asn1_time_to_time_t(const ASN1_TIME *atime, int notafter);