diff options
author | tb <> | 2023-04-16 08:30:21 +0000 |
---|---|---|
committer | tb <> | 2023-04-16 08:30:21 +0000 |
commit | bf613b30d54cf44f466a8bbcadeac93dbe63512f (patch) | |
tree | 1a6f82b024ec538bd602323e462b30de63a97335 /src/lib/libcrypto/x509/x509_vfy.h | |
parent | 5155e77c7b0c5d2688974520972a5bae814d3d03 (diff) | |
download | openbsd-bf613b30d54cf44f466a8bbcadeac93dbe63512f.tar.gz openbsd-bf613b30d54cf44f466a8bbcadeac93dbe63512f.tar.bz2 openbsd-bf613b30d54cf44f466a8bbcadeac93dbe63512f.zip |
Prepare addition of X509_STORE_CTX_get1_{certs,crls}(3)
X509_STORE_get1_{certs,crls}(3) was added to the OpenSSL 1.1 API with the
usual care. At some point later it was noticed that they didn't deal with
an X509_STORE at all, but rather with an X509_STORE_CTX, so were misnamed.
The fact that X509_STORE_CTX and X509_STORE have their roles reversed when
compared to other FOO vs FOO_CTX in this API may or may not be related.
Anyway, the X509_STORE versions will be demoted to compat defines and the
X509_STORE_CTX will be added to match OpenSSL 1.1 API more closely. This
was pointed out by schwarze a long time ago and missed in a few bumps.
Hopefully we'll manage to do it this time around.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/x509/x509_vfy.h')
-rw-r--r-- | src/lib/libcrypto/x509/x509_vfy.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509/x509_vfy.h b/src/lib/libcrypto/x509/x509_vfy.h index f5b103a0e7..3eb92b0f7f 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.59 2023/04/16 08:21:12 tb Exp $ */ | 1 | /* $OpenBSD: x509_vfy.h,v 1.60 2023/04/16 08:30:21 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 | * |
@@ -285,8 +285,15 @@ X509_CRL *X509_OBJECT_get0_X509_CRL(X509_OBJECT *xo); | |||
285 | X509_STORE *X509_STORE_new(void); | 285 | X509_STORE *X509_STORE_new(void); |
286 | void X509_STORE_free(X509_STORE *v); | 286 | void X509_STORE_free(X509_STORE *v); |
287 | int X509_STORE_up_ref(X509_STORE *x); | 287 | int X509_STORE_up_ref(X509_STORE *x); |
288 | #if defined(LIBRESSL_NEXT_API) | ||
289 | #define X509_STORE_get1_certs X509_STORE_CTX_get1_certs | ||
290 | #define X509_STORE_get1_crls X509_STORE_CTX_get1_crls | ||
291 | STACK_OF(X509) *X509_STORE_CTX_get1_certs(X509_STORE_CTX *st, X509_NAME *nm); | ||
292 | STACK_OF(X509_CRL) *X509_STORE_CTX_get1_crls(X509_STORE_CTX *st, X509_NAME *nm); | ||
293 | #else | ||
288 | STACK_OF(X509) *X509_STORE_get1_certs(X509_STORE_CTX *st, X509_NAME *nm); | 294 | STACK_OF(X509) *X509_STORE_get1_certs(X509_STORE_CTX *st, X509_NAME *nm); |
289 | STACK_OF(X509_CRL) *X509_STORE_get1_crls(X509_STORE_CTX *st, X509_NAME *nm); | 295 | STACK_OF(X509_CRL) *X509_STORE_get1_crls(X509_STORE_CTX *st, X509_NAME *nm); |
296 | #endif | ||
290 | STACK_OF(X509_OBJECT) *X509_STORE_get0_objects(X509_STORE *xs); | 297 | STACK_OF(X509_OBJECT) *X509_STORE_get0_objects(X509_STORE *xs); |
291 | void *X509_STORE_get_ex_data(X509_STORE *xs, int idx); | 298 | void *X509_STORE_get_ex_data(X509_STORE *xs, int idx); |
292 | int X509_STORE_set_ex_data(X509_STORE *xs, int idx, void *data); | 299 | int X509_STORE_set_ex_data(X509_STORE *xs, int idx, void *data); |