summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2018-03-20 15:26:22 +0000
committerjsing <jsing@openbsd.org>2018-03-20 15:26:22 +0000
commitfdc170b0826af04eb539a696ba59ca370662576d (patch)
tree0940a082f401187ee821257244cf35cef9986144
parentpretty_print_option() returns a pointer to a 0 length string, not (diff)
downloadwireguard-openbsd-fdc170b0826af04eb539a696ba59ca370662576d.tar.xz
wireguard-openbsd-fdc170b0826af04eb539a696ba59ca370662576d.zip
Provide X509_STORE_get_ex_new_index macro.
-rw-r--r--lib/libcrypto/x509/x509_vfy.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libcrypto/x509/x509_vfy.h b/lib/libcrypto/x509/x509_vfy.h
index ad729d84ed9..9e0730b0147 100644
--- a/lib/libcrypto/x509/x509_vfy.h
+++ b/lib/libcrypto/x509/x509_vfy.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: x509_vfy.h,v 1.26 2018/03/17 15:43:32 tb Exp $ */
+/* $OpenBSD: x509_vfy.h,v 1.27 2018/03/20 15:26:22 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -439,6 +439,10 @@ STACK_OF(X509_OBJECT) *X509_STORE_get0_objects(X509_STORE *xs);
void *X509_STORE_get_ex_data(X509_STORE *xs, int idx);
int X509_STORE_set_ex_data(X509_STORE *xs, int idx, void *data);
+#define X509_STORE_get_ex_new_index(l, p, newf, dupf, freef) \
+ CRYPTO_get_ex_new_index(CRYPTO_EX_INDEX_X509_STORE, (l), (p), \
+ (newf), (dupf), (freef))
+
int X509_STORE_set_flags(X509_STORE *ctx, unsigned long flags);
int X509_STORE_set_purpose(X509_STORE *ctx, int purpose);
int X509_STORE_set_trust(X509_STORE *ctx, int trust);