summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_vfy.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/x509/x509_vfy.h')
-rw-r--r--src/lib/libcrypto/x509/x509_vfy.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/libcrypto/x509/x509_vfy.h b/src/lib/libcrypto/x509/x509_vfy.h
index a02ef94e2b..c50624a603 100644
--- a/src/lib/libcrypto/x509/x509_vfy.h
+++ b/src/lib/libcrypto/x509/x509_vfy.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_vfy.h,v 1.48 2022/01/05 20:18:19 tb Exp $ */ 1/* $OpenBSD: x509_vfy.h,v 1.49 2022/01/14 07:49:49 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -297,11 +297,9 @@ int X509_STORE_set_trust(X509_STORE *ctx, int trust);
297int X509_STORE_set1_param(X509_STORE *ctx, X509_VERIFY_PARAM *pm); 297int X509_STORE_set1_param(X509_STORE *ctx, X509_VERIFY_PARAM *pm);
298X509_VERIFY_PARAM *X509_STORE_get0_param(X509_STORE *ctx); 298X509_VERIFY_PARAM *X509_STORE_get0_param(X509_STORE *ctx);
299 299
300#if defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_CRYPTO_INTERNAL)
301typedef int (*X509_STORE_CTX_verify_cb)(int, X509_STORE_CTX *); 300typedef int (*X509_STORE_CTX_verify_cb)(int, X509_STORE_CTX *);
302 301
303X509_STORE_CTX_verify_cb X509_STORE_get_verify_cb(X509_STORE *); 302X509_STORE_CTX_verify_cb X509_STORE_get_verify_cb(X509_STORE *);
304#endif
305 303
306void X509_STORE_set_verify_cb(X509_STORE *ctx, 304void X509_STORE_set_verify_cb(X509_STORE *ctx,
307 int (*verify_cb)(int, X509_STORE_CTX *)); 305 int (*verify_cb)(int, X509_STORE_CTX *));
@@ -398,12 +396,10 @@ int (*X509_STORE_CTX_get_verify_cb(X509_STORE_CTX *ctx))(int, X509_STORE_CTX *);
398void X509_STORE_CTX_set_verify_cb(X509_STORE_CTX *ctx, 396void X509_STORE_CTX_set_verify_cb(X509_STORE_CTX *ctx,
399 int (*verify_cb)(int, X509_STORE_CTX *)); 397 int (*verify_cb)(int, X509_STORE_CTX *));
400 398
401#if defined(LIBRESSL_NEXT_API) || defined(LIBRESSL_CRYPTO_INTERNAL)
402typedef int (*X509_STORE_CTX_verify_fn)(X509_STORE_CTX *); 399typedef int (*X509_STORE_CTX_verify_fn)(X509_STORE_CTX *);
403 400
404void X509_STORE_set_verify(X509_STORE *ctx, X509_STORE_CTX_verify_fn verify); 401void X509_STORE_set_verify(X509_STORE *ctx, X509_STORE_CTX_verify_fn verify);
405X509_STORE_CTX_verify_fn X509_STORE_get_verify(X509_STORE *ctx); 402X509_STORE_CTX_verify_fn X509_STORE_get_verify(X509_STORE *ctx);
406#endif
407#define X509_STORE_set_verify_func(ctx, func) \ 403#define X509_STORE_set_verify_func(ctx, func) \
408 X509_STORE_set_verify((ctx), (func)) 404 X509_STORE_set_verify((ctx), (func))
409 405