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.h30
1 files changed, 16 insertions, 14 deletions
diff --git a/src/lib/libcrypto/x509/x509_vfy.h b/src/lib/libcrypto/x509/x509_vfy.h
index ee6b9a614b..b78c857cdb 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.40 2021/10/31 16:17:14 tb Exp $ */ 1/* $OpenBSD: x509_vfy.h,v 1.41 2021/10/31 16:20:37 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 *
@@ -437,12 +437,13 @@ void X509_STORE_CTX_set_depth(X509_STORE_CTX *ctx, int depth);
437X509_OBJECT *X509_OBJECT_new(void); 437X509_OBJECT *X509_OBJECT_new(void);
438void X509_OBJECT_free(X509_OBJECT *a); 438void X509_OBJECT_free(X509_OBJECT *a);
439#endif 439#endif
440int X509_OBJECT_idx_by_subject(STACK_OF(X509_OBJECT) *h, int type, 440int X509_OBJECT_idx_by_subject(STACK_OF(X509_OBJECT) *h, X509_LOOKUP_TYPE type,
441 X509_NAME *name); 441 X509_NAME *name);
442X509_OBJECT *X509_OBJECT_retrieve_by_subject(STACK_OF(X509_OBJECT) *h,int type,X509_NAME *name); 442X509_OBJECT *X509_OBJECT_retrieve_by_subject(STACK_OF(X509_OBJECT) *h,
443 X509_LOOKUP_TYPE type, X509_NAME *name);
443X509_OBJECT *X509_OBJECT_retrieve_match(STACK_OF(X509_OBJECT) *h, X509_OBJECT *x); 444X509_OBJECT *X509_OBJECT_retrieve_match(STACK_OF(X509_OBJECT) *h, X509_OBJECT *x);
444int X509_OBJECT_up_ref_count(X509_OBJECT *a); 445int X509_OBJECT_up_ref_count(X509_OBJECT *a);
445int X509_OBJECT_get_type(const X509_OBJECT *a); 446X509_LOOKUP_TYPE X509_OBJECT_get_type(const X509_OBJECT *a);
446void X509_OBJECT_free_contents(X509_OBJECT *a); 447void X509_OBJECT_free_contents(X509_OBJECT *a);
447X509 *X509_OBJECT_get0_X509(const X509_OBJECT *xo); 448X509 *X509_OBJECT_get0_X509(const X509_OBJECT *xo);
448X509_CRL *X509_OBJECT_get0_X509_CRL(X509_OBJECT *xo); 449X509_CRL *X509_OBJECT_get0_X509_CRL(X509_OBJECT *xo);
@@ -496,8 +497,9 @@ X509_LOOKUP_METHOD *X509_LOOKUP_mem(void);
496int X509_STORE_add_cert(X509_STORE *ctx, X509 *x); 497int X509_STORE_add_cert(X509_STORE *ctx, X509 *x);
497int X509_STORE_add_crl(X509_STORE *ctx, X509_CRL *x); 498int X509_STORE_add_crl(X509_STORE *ctx, X509_CRL *x);
498 499
499int X509_STORE_get_by_subject(X509_STORE_CTX *vs,int type,X509_NAME *name, 500int X509_STORE_CTX_get_by_subject(X509_STORE_CTX *vs, X509_LOOKUP_TYPE type,
500 X509_OBJECT *ret); 501 X509_NAME *name, X509_OBJECT *ret);
502#define X509_STORE_get_by_subject X509_STORE_CTX_get_by_subject
501 503
502int X509_LOOKUP_ctrl(X509_LOOKUP *ctx, int cmd, const char *argc, 504int X509_LOOKUP_ctrl(X509_LOOKUP *ctx, int cmd, const char *argc,
503 long argl, char **ret); 505 long argl, char **ret);
@@ -510,14 +512,14 @@ int X509_load_cert_crl_file(X509_LOOKUP *ctx, const char *file, int type);
510X509_LOOKUP *X509_LOOKUP_new(X509_LOOKUP_METHOD *method); 512X509_LOOKUP *X509_LOOKUP_new(X509_LOOKUP_METHOD *method);
511void X509_LOOKUP_free(X509_LOOKUP *ctx); 513void X509_LOOKUP_free(X509_LOOKUP *ctx);
512int X509_LOOKUP_init(X509_LOOKUP *ctx); 514int X509_LOOKUP_init(X509_LOOKUP *ctx);
513int X509_LOOKUP_by_subject(X509_LOOKUP *ctx, int type, X509_NAME *name, 515int X509_LOOKUP_by_subject(X509_LOOKUP *ctx, X509_LOOKUP_TYPE type,
514 X509_OBJECT *ret); 516 X509_NAME *name, X509_OBJECT *ret);
515int X509_LOOKUP_by_issuer_serial(X509_LOOKUP *ctx, int type, X509_NAME *name, 517int X509_LOOKUP_by_issuer_serial(X509_LOOKUP *ctx, X509_LOOKUP_TYPE type,
516 ASN1_INTEGER *serial, X509_OBJECT *ret); 518 X509_NAME *name, ASN1_INTEGER *serial, X509_OBJECT *ret);
517int X509_LOOKUP_by_fingerprint(X509_LOOKUP *ctx, int type, 519int X509_LOOKUP_by_fingerprint(X509_LOOKUP *ctx, X509_LOOKUP_TYPE type,
518 const unsigned char *bytes, int len, X509_OBJECT *ret); 520 const unsigned char *bytes, int len, X509_OBJECT *ret);
519int X509_LOOKUP_by_alias(X509_LOOKUP *ctx, int type, const char *str, 521int X509_LOOKUP_by_alias(X509_LOOKUP *ctx, X509_LOOKUP_TYPE type,
520 int len, X509_OBJECT *ret); 522 const char *str, int len, X509_OBJECT *ret);
521int X509_LOOKUP_shutdown(X509_LOOKUP *ctx); 523int X509_LOOKUP_shutdown(X509_LOOKUP *ctx);
522 524
523int X509_STORE_load_locations (X509_STORE *ctx, 525int X509_STORE_load_locations (X509_STORE *ctx,