diff options
Diffstat (limited to 'src/lib/libcrypto/x509')
| -rw-r--r-- | src/lib/libcrypto/x509/x509_lu.c | 20 | ||||
| -rw-r--r-- | src/lib/libcrypto/x509/x509_vfy.h | 5 |
2 files changed, 23 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_lu.c b/src/lib/libcrypto/x509/x509_lu.c index 3a28c06d20..9276a0e2d5 100644 --- a/src/lib/libcrypto/x509/x509_lu.c +++ b/src/lib/libcrypto/x509/x509_lu.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509_lu.c,v 1.25 2018/02/22 17:17:09 jsing Exp $ */ | 1 | /* $OpenBSD: x509_lu.c,v 1.26 2018/02/22 17:19:31 jsing 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 | * |
| @@ -748,6 +748,24 @@ X509_STORE_CTX_get1_issuer(X509 **issuer, X509_STORE_CTX *ctx, X509 *x) | |||
| 748 | return ret; | 748 | return ret; |
| 749 | } | 749 | } |
| 750 | 750 | ||
| 751 | STACK_OF(X509_OBJECT) * | ||
| 752 | X509_STORE_get0_objects(X509_STORE *xs) | ||
| 753 | { | ||
| 754 | return xs->objs; | ||
| 755 | } | ||
| 756 | |||
| 757 | void * | ||
| 758 | X509_STORE_get_ex_data(X509_STORE *xs, int idx) | ||
| 759 | { | ||
| 760 | return CRYPTO_get_ex_data(&xs->ex_data, idx); | ||
| 761 | } | ||
| 762 | |||
| 763 | int | ||
| 764 | X509_STORE_set_ex_data(X509_STORE *xs, int idx, void *data) | ||
| 765 | { | ||
| 766 | return CRYPTO_set_ex_data(&xs->ex_data, idx, data); | ||
| 767 | } | ||
| 768 | |||
| 751 | int | 769 | int |
| 752 | X509_STORE_set_flags(X509_STORE *ctx, unsigned long flags) | 770 | X509_STORE_set_flags(X509_STORE *ctx, unsigned long flags) |
| 753 | { | 771 | { |
diff --git a/src/lib/libcrypto/x509/x509_vfy.h b/src/lib/libcrypto/x509/x509_vfy.h index a62f89a64e..f9b215ee65 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.23 2018/02/22 17:17:09 jsing Exp $ */ | 1 | /* $OpenBSD: x509_vfy.h,v 1.24 2018/02/22 17:19:31 jsing 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 | * |
| @@ -434,6 +434,9 @@ void X509_STORE_free(X509_STORE *v); | |||
| 434 | int X509_STORE_up_ref(X509_STORE *x); | 434 | int X509_STORE_up_ref(X509_STORE *x); |
| 435 | STACK_OF(X509)* X509_STORE_get1_certs(X509_STORE_CTX *st, X509_NAME *nm); | 435 | STACK_OF(X509)* X509_STORE_get1_certs(X509_STORE_CTX *st, X509_NAME *nm); |
| 436 | STACK_OF(X509_CRL)* X509_STORE_get1_crls(X509_STORE_CTX *st, X509_NAME *nm); | 436 | STACK_OF(X509_CRL)* X509_STORE_get1_crls(X509_STORE_CTX *st, X509_NAME *nm); |
| 437 | STACK_OF(X509_OBJECT) *X509_STORE_get0_objects(X509_STORE *xs); | ||
| 438 | void *X509_STORE_get_ex_data(X509_STORE *xs, int idx); | ||
| 439 | int X509_STORE_set_ex_data(X509_STORE *xs, int idx, void *data); | ||
| 437 | 440 | ||
| 438 | int X509_STORE_set_flags(X509_STORE *ctx, unsigned long flags); | 441 | int X509_STORE_set_flags(X509_STORE *ctx, unsigned long flags); |
| 439 | int X509_STORE_set_purpose(X509_STORE *ctx, int purpose); | 442 | int X509_STORE_set_purpose(X509_STORE *ctx, int purpose); |
