diff options
Diffstat (limited to 'src/lib/libcrypto/x509/x509.h')
-rw-r--r-- | src/lib/libcrypto/x509/x509.h | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/lib/libcrypto/x509/x509.h b/src/lib/libcrypto/x509/x509.h index 43b2307c8f..9a44bf30aa 100644 --- a/src/lib/libcrypto/x509/x509.h +++ b/src/lib/libcrypto/x509/x509.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509.h,v 1.85 2021/10/31 16:51:16 tb Exp $ */ | 1 | /* $OpenBSD: x509.h,v 1.86 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 | * |
@@ -594,9 +594,7 @@ extern "C" { | |||
594 | int X509_CRL_up_ref(X509_CRL *x); | 594 | int X509_CRL_up_ref(X509_CRL *x); |
595 | int X509_CRL_get_signature_nid(const X509_CRL *crl); | 595 | int X509_CRL_get_signature_nid(const X509_CRL *crl); |
596 | 596 | ||
597 | #if defined(LIBRESSL_NEW_API) | ||
598 | int i2d_re_X509_CRL_tbs(X509_CRL *req, unsigned char **pp); | 597 | int i2d_re_X509_CRL_tbs(X509_CRL *req, unsigned char **pp); |
599 | #endif | ||
600 | 598 | ||
601 | const STACK_OF(X509_EXTENSION) *X509_CRL_get0_extensions(const X509_CRL *crl); | 599 | const STACK_OF(X509_EXTENSION) *X509_CRL_get0_extensions(const X509_CRL *crl); |
602 | long X509_CRL_get_version(const X509_CRL *crl); | 600 | long X509_CRL_get_version(const X509_CRL *crl); |
@@ -626,12 +624,7 @@ void X509_CRL_METHOD_free(X509_CRL_METHOD *m); | |||
626 | void X509_CRL_set_meth_data(X509_CRL *crl, void *dat); | 624 | void X509_CRL_set_meth_data(X509_CRL *crl, void *dat); |
627 | void *X509_CRL_get_meth_data(X509_CRL *crl); | 625 | void *X509_CRL_get_meth_data(X509_CRL *crl); |
628 | 626 | ||
629 | #if defined(LIBRESSL_NEW_API) | ||
630 | X509_PUBKEY *X509_get_X509_PUBKEY(const X509 *x); | 627 | X509_PUBKEY *X509_get_X509_PUBKEY(const X509 *x); |
631 | #else | ||
632 | #define X509_get_X509_PUBKEY(x) (x)->cert_info->key | ||
633 | #endif | ||
634 | |||
635 | 628 | ||
636 | const char *X509_verify_cert_error_string(long n); | 629 | const char *X509_verify_cert_error_string(long n); |
637 | 630 | ||
@@ -831,12 +824,10 @@ void X509_SIG_free(X509_SIG *a); | |||
831 | X509_SIG *d2i_X509_SIG(X509_SIG **a, const unsigned char **in, long len); | 824 | X509_SIG *d2i_X509_SIG(X509_SIG **a, const unsigned char **in, long len); |
832 | int i2d_X509_SIG(X509_SIG *a, unsigned char **out); | 825 | int i2d_X509_SIG(X509_SIG *a, unsigned char **out); |
833 | extern const ASN1_ITEM X509_SIG_it; | 826 | extern const ASN1_ITEM X509_SIG_it; |
834 | #if defined(LIBRESSL_NEW_API) | ||
835 | void X509_SIG_get0(const X509_SIG *sig, const X509_ALGOR **palg, | 827 | void X509_SIG_get0(const X509_SIG *sig, const X509_ALGOR **palg, |
836 | const ASN1_OCTET_STRING **pdigest); | 828 | const ASN1_OCTET_STRING **pdigest); |
837 | void X509_SIG_getm(X509_SIG *sig, X509_ALGOR **palg, | 829 | void X509_SIG_getm(X509_SIG *sig, X509_ALGOR **palg, |
838 | ASN1_OCTET_STRING **pdigest); | 830 | ASN1_OCTET_STRING **pdigest); |
839 | #endif | ||
840 | 831 | ||
841 | X509_REQ_INFO *X509_REQ_INFO_new(void); | 832 | X509_REQ_INFO *X509_REQ_INFO_new(void); |
842 | void X509_REQ_INFO_free(X509_REQ_INFO *a); | 833 | void X509_REQ_INFO_free(X509_REQ_INFO *a); |
@@ -903,9 +894,7 @@ void *X509_get_ex_data(X509 *r, int idx); | |||
903 | int i2d_X509_AUX(X509 *a,unsigned char **pp); | 894 | int i2d_X509_AUX(X509 *a,unsigned char **pp); |
904 | X509 * d2i_X509_AUX(X509 **a,const unsigned char **pp,long length); | 895 | X509 * d2i_X509_AUX(X509 **a,const unsigned char **pp,long length); |
905 | 896 | ||
906 | #if defined(LIBRESSL_NEW_API) | ||
907 | int i2d_re_X509_tbs(X509 *x, unsigned char **pp); | 897 | int i2d_re_X509_tbs(X509 *x, unsigned char **pp); |
908 | #endif | ||
909 | 898 | ||
910 | void X509_get0_signature(const ASN1_BIT_STRING **psig, | 899 | void X509_get0_signature(const ASN1_BIT_STRING **psig, |
911 | const X509_ALGOR **palg, const X509 *x); | 900 | const X509_ALGOR **palg, const X509 *x); |
@@ -1019,10 +1008,8 @@ int X509_REQ_set_subject_name(X509_REQ *req, X509_NAME *name); | |||
1019 | X509_NAME *X509_REQ_get_subject_name(const X509_REQ *x); | 1008 | X509_NAME *X509_REQ_get_subject_name(const X509_REQ *x); |
1020 | int X509_REQ_set_pubkey(X509_REQ *x, EVP_PKEY *pkey); | 1009 | int X509_REQ_set_pubkey(X509_REQ *x, EVP_PKEY *pkey); |
1021 | EVP_PKEY * X509_REQ_get_pubkey(X509_REQ *req); | 1010 | EVP_PKEY * X509_REQ_get_pubkey(X509_REQ *req); |
1022 | #if defined(LIBRESSL_NEW_API) | ||
1023 | int i2d_re_X509_REQ_tbs(X509_REQ *req, unsigned char **pp); | 1011 | int i2d_re_X509_REQ_tbs(X509_REQ *req, unsigned char **pp); |
1024 | EVP_PKEY * X509_REQ_get0_pubkey(X509_REQ *req); | 1012 | EVP_PKEY * X509_REQ_get0_pubkey(X509_REQ *req); |
1025 | #endif | ||
1026 | int X509_REQ_extension_nid(int nid); | 1013 | int X509_REQ_extension_nid(int nid); |
1027 | int * X509_REQ_get_extension_nids(void); | 1014 | int * X509_REQ_get_extension_nids(void); |
1028 | void X509_REQ_set_extension_nids(int *nids); | 1015 | void X509_REQ_set_extension_nids(int *nids); |