diff options
| author | tb <> | 2024-03-02 10:43:52 +0000 |
|---|---|---|
| committer | tb <> | 2024-03-02 10:43:52 +0000 |
| commit | 83f478fb201e647181d2250ce31e9359bdca5065 (patch) | |
| tree | 0684f67dc601717847c2d02c7724962469b28dc0 /src/lib/libcrypto/x509/x509v3.h | |
| parent | 7335ca820d86b24a2402fd908472acb741916a8c (diff) | |
| download | openbsd-83f478fb201e647181d2250ce31e9359bdca5065.tar.gz openbsd-83f478fb201e647181d2250ce31e9359bdca5065.tar.bz2 openbsd-83f478fb201e647181d2250ce31e9359bdca5065.zip | |
const correct X509_PURPOSE_get0{,_{,s}name}()
Unfortunately, PHP and rust-openssl still need this API. At least we
can make the table read-only now since we disabled its extensibility.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/x509/x509v3.h')
| -rw-r--r-- | src/lib/libcrypto/x509/x509v3.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/libcrypto/x509/x509v3.h b/src/lib/libcrypto/x509/x509v3.h index 6b7dc80bf3..1004f6f15b 100644 --- a/src/lib/libcrypto/x509/x509v3.h +++ b/src/lib/libcrypto/x509/x509v3.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509v3.h,v 1.28 2024/03/02 10:41:46 tb Exp $ */ | 1 | /* $OpenBSD: x509v3.h,v 1.29 2024/03/02 10:43:52 tb Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 1999. | 3 | * project 1999. |
| 4 | */ | 4 | */ |
| @@ -713,11 +713,12 @@ int X509_check_purpose(X509 *x, int id, int ca); | |||
| 713 | int X509_supported_extension(X509_EXTENSION *ex); | 713 | int X509_supported_extension(X509_EXTENSION *ex); |
| 714 | int X509_check_issued(X509 *issuer, X509 *subject); | 714 | int X509_check_issued(X509 *issuer, X509 *subject); |
| 715 | int X509_check_akid(X509 *issuer, AUTHORITY_KEYID *akid); | 715 | int X509_check_akid(X509 *issuer, AUTHORITY_KEYID *akid); |
| 716 | |||
| 716 | int X509_PURPOSE_get_count(void); | 717 | int X509_PURPOSE_get_count(void); |
| 717 | X509_PURPOSE *X509_PURPOSE_get0(int idx); | 718 | const X509_PURPOSE *X509_PURPOSE_get0(int idx); |
| 718 | int X509_PURPOSE_get_by_sname(const char *sname); | 719 | int X509_PURPOSE_get_by_sname(const char *sname); |
| 719 | char *X509_PURPOSE_get0_name(const X509_PURPOSE *xp); | 720 | const char *X509_PURPOSE_get0_name(const X509_PURPOSE *xp); |
| 720 | char *X509_PURPOSE_get0_sname(const X509_PURPOSE *xp); | 721 | const char *X509_PURPOSE_get0_sname(const X509_PURPOSE *xp); |
| 721 | int X509_PURPOSE_get_id(const X509_PURPOSE *); | 722 | int X509_PURPOSE_get_id(const X509_PURPOSE *); |
| 722 | uint32_t X509_get_extension_flags(X509 *x); | 723 | uint32_t X509_get_extension_flags(X509 *x); |
| 723 | uint32_t X509_get_key_usage(X509 *x); | 724 | uint32_t X509_get_key_usage(X509 *x); |
