summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_vfy.h
diff options
context:
space:
mode:
authortb <>2021-11-01 08:14:36 +0000
committertb <>2021-11-01 08:14:36 +0000
commit9e4ccc5228dcbfa0dfefbcb77f4fbc4409e63949 (patch)
tree09eaa986df5bec5fc37f0dad91370c7d06c3f62e /src/lib/libcrypto/x509/x509_vfy.h
parent24b324d6b70a17a56bae163dd5417bf00331ec48 (diff)
downloadopenbsd-9e4ccc5228dcbfa0dfefbcb77f4fbc4409e63949.tar.gz
openbsd-9e4ccc5228dcbfa0dfefbcb77f4fbc4409e63949.tar.bz2
openbsd-9e4ccc5228dcbfa0dfefbcb77f4fbc4409e63949.zip
Unifdef LIBRESSL_NEW_API. Now that the library is bumped, this is
no longer needed. ok jsing
Diffstat (limited to 'src/lib/libcrypto/x509/x509_vfy.h')
-rw-r--r--src/lib/libcrypto/x509/x509_vfy.h18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/lib/libcrypto/x509/x509_vfy.h b/src/lib/libcrypto/x509/x509_vfy.h
index 676145cca7..61ea11b71a 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.44 2021/10/31 16:51:16 tb Exp $ */ 1/* $OpenBSD: x509_vfy.h,v 1.45 2021/11/01 08:14:36 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 *
@@ -201,10 +201,6 @@ struct x509_store_st {
201 201
202int X509_STORE_set_depth(X509_STORE *store, int depth); 202int X509_STORE_set_depth(X509_STORE *store, int depth);
203 203
204#if !defined(LIBRESSL_NEW_API)
205#define X509_STORE_set_verify_func(ctx,func) ((ctx)->verify=(func))
206#endif
207
208#if defined(LIBRESSL_CRYPTO_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509) 204#if defined(LIBRESSL_CRYPTO_INTERNAL) || !defined(LIBRESSL_OPAQUE_X509)
209/* This is the functions plus an instance of the local variables. */ 205/* This is the functions plus an instance of the local variables. */
210struct x509_lookup_st { 206struct x509_lookup_st {
@@ -425,10 +421,8 @@ void X509_STORE_CTX_set_depth(X509_STORE_CTX *ctx, int depth);
425 | X509_V_FLAG_INHIBIT_ANY \ 421 | X509_V_FLAG_INHIBIT_ANY \
426 | X509_V_FLAG_INHIBIT_MAP) 422 | X509_V_FLAG_INHIBIT_MAP)
427 423
428#if defined(LIBRESSL_NEW_API)
429X509_OBJECT *X509_OBJECT_new(void); 424X509_OBJECT *X509_OBJECT_new(void);
430void X509_OBJECT_free(X509_OBJECT *a); 425void X509_OBJECT_free(X509_OBJECT *a);
431#endif
432int X509_OBJECT_idx_by_subject(STACK_OF(X509_OBJECT) *h, X509_LOOKUP_TYPE type, 426int X509_OBJECT_idx_by_subject(STACK_OF(X509_OBJECT) *h, X509_LOOKUP_TYPE type,
433 X509_NAME *name); 427 X509_NAME *name);
434X509_OBJECT *X509_OBJECT_retrieve_by_subject(STACK_OF(X509_OBJECT) *h, 428X509_OBJECT *X509_OBJECT_retrieve_by_subject(STACK_OF(X509_OBJECT) *h,
@@ -492,10 +486,8 @@ int X509_STORE_add_crl(X509_STORE *ctx, X509_CRL *x);
492int X509_STORE_CTX_get_by_subject(X509_STORE_CTX *vs, X509_LOOKUP_TYPE type, 486int X509_STORE_CTX_get_by_subject(X509_STORE_CTX *vs, X509_LOOKUP_TYPE type,
493 X509_NAME *name, X509_OBJECT *ret); 487 X509_NAME *name, X509_OBJECT *ret);
494#define X509_STORE_get_by_subject X509_STORE_CTX_get_by_subject 488#define X509_STORE_get_by_subject X509_STORE_CTX_get_by_subject
495#if defined(LIBRESSL_NEW_API)
496X509_OBJECT *X509_STORE_CTX_get_obj_by_subject(X509_STORE_CTX *vs, 489X509_OBJECT *X509_STORE_CTX_get_obj_by_subject(X509_STORE_CTX *vs,
497 X509_LOOKUP_TYPE type, X509_NAME *name); 490 X509_LOOKUP_TYPE type, X509_NAME *name);
498#endif
499 491
500int X509_LOOKUP_ctrl(X509_LOOKUP *ctx, int cmd, const char *argc, 492int X509_LOOKUP_ctrl(X509_LOOKUP *ctx, int cmd, const char *argc,
501 long argl, char **ret); 493 long argl, char **ret);
@@ -530,13 +522,9 @@ void * X509_STORE_CTX_get_ex_data(X509_STORE_CTX *ctx,int idx);
530int X509_STORE_CTX_get_error(X509_STORE_CTX *ctx); 522int X509_STORE_CTX_get_error(X509_STORE_CTX *ctx);
531void X509_STORE_CTX_set_error(X509_STORE_CTX *ctx,int s); 523void X509_STORE_CTX_set_error(X509_STORE_CTX *ctx,int s);
532int X509_STORE_CTX_get_error_depth(X509_STORE_CTX *ctx); 524int X509_STORE_CTX_get_error_depth(X509_STORE_CTX *ctx);
533#if defined(LIBRESSL_NEW_API)
534void X509_STORE_CTX_set_error_depth(X509_STORE_CTX *ctx, int depth); 525void X509_STORE_CTX_set_error_depth(X509_STORE_CTX *ctx, int depth);
535#endif
536X509 * X509_STORE_CTX_get_current_cert(X509_STORE_CTX *ctx); 526X509 * X509_STORE_CTX_get_current_cert(X509_STORE_CTX *ctx);
537#if defined(LIBRESSL_NEW_API)
538void X509_STORE_CTX_set_current_cert(X509_STORE_CTX *ctx, X509 *x); 527void X509_STORE_CTX_set_current_cert(X509_STORE_CTX *ctx, X509 *x);
539#endif
540X509 *X509_STORE_CTX_get0_current_issuer(X509_STORE_CTX *ctx); 528X509 *X509_STORE_CTX_get0_current_issuer(X509_STORE_CTX *ctx);
541X509_CRL *X509_STORE_CTX_get0_current_crl(X509_STORE_CTX *ctx); 529X509_CRL *X509_STORE_CTX_get0_current_crl(X509_STORE_CTX *ctx);
542X509_STORE_CTX *X509_STORE_CTX_get0_parent_ctx(X509_STORE_CTX *ctx); 530X509_STORE_CTX *X509_STORE_CTX_get0_parent_ctx(X509_STORE_CTX *ctx);
@@ -552,7 +540,6 @@ int X509_STORE_CTX_purpose_inherit(X509_STORE_CTX *ctx, int def_purpose,
552void X509_STORE_CTX_set_flags(X509_STORE_CTX *ctx, unsigned long flags); 540void X509_STORE_CTX_set_flags(X509_STORE_CTX *ctx, unsigned long flags);
553void X509_STORE_CTX_set_time(X509_STORE_CTX *ctx, unsigned long flags, 541void X509_STORE_CTX_set_time(X509_STORE_CTX *ctx, unsigned long flags,
554 time_t t); 542 time_t t);
555#if defined(LIBRESSL_NEW_API)
556void X509_STORE_CTX_set0_verified_chain(X509_STORE_CTX *ctx, STACK_OF(X509) *sk); 543void X509_STORE_CTX_set0_verified_chain(X509_STORE_CTX *ctx, STACK_OF(X509) *sk);
557int (*X509_STORE_CTX_get_verify(X509_STORE_CTX *ctx))(X509_STORE_CTX *); 544int (*X509_STORE_CTX_get_verify(X509_STORE_CTX *ctx))(X509_STORE_CTX *);
558void X509_STORE_CTX_set_verify(X509_STORE_CTX *ctx, 545void X509_STORE_CTX_set_verify(X509_STORE_CTX *ctx,
@@ -560,15 +547,12 @@ void X509_STORE_CTX_set_verify(X509_STORE_CTX *ctx,
560#define X509_STORE_set_verify_func(ctx, func) \ 547#define X509_STORE_set_verify_func(ctx, func) \
561 X509_STORE_set_verify((ctx), (func)) 548 X509_STORE_set_verify((ctx), (func))
562int (*X509_STORE_CTX_get_verify_cb(X509_STORE_CTX *ctx))(int, X509_STORE_CTX *); 549int (*X509_STORE_CTX_get_verify_cb(X509_STORE_CTX *ctx))(int, X509_STORE_CTX *);
563#endif
564void X509_STORE_CTX_set_verify_cb(X509_STORE_CTX *ctx, 550void X509_STORE_CTX_set_verify_cb(X509_STORE_CTX *ctx,
565 int (*verify_cb)(int, X509_STORE_CTX *)); 551 int (*verify_cb)(int, X509_STORE_CTX *));
566 552
567X509_POLICY_TREE *X509_STORE_CTX_get0_policy_tree(X509_STORE_CTX *ctx); 553X509_POLICY_TREE *X509_STORE_CTX_get0_policy_tree(X509_STORE_CTX *ctx);
568int X509_STORE_CTX_get_explicit_policy(X509_STORE_CTX *ctx); 554int X509_STORE_CTX_get_explicit_policy(X509_STORE_CTX *ctx);
569#if defined(LIBRESSL_NEW_API)
570int X509_STORE_CTX_get_num_untrusted(X509_STORE_CTX *ctx); 555int X509_STORE_CTX_get_num_untrusted(X509_STORE_CTX *ctx);
571#endif
572 556
573X509_VERIFY_PARAM *X509_STORE_CTX_get0_param(X509_STORE_CTX *ctx); 557X509_VERIFY_PARAM *X509_STORE_CTX_get0_param(X509_STORE_CTX *ctx);
574void X509_STORE_CTX_set0_param(X509_STORE_CTX *ctx, X509_VERIFY_PARAM *param); 558void X509_STORE_CTX_set0_param(X509_STORE_CTX *ctx, X509_VERIFY_PARAM *param);