summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/x509/x509.h')
-rw-r--r--src/lib/libcrypto/x509/x509.h15
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" {
594int X509_CRL_up_ref(X509_CRL *x); 594int X509_CRL_up_ref(X509_CRL *x);
595int X509_CRL_get_signature_nid(const X509_CRL *crl); 595int X509_CRL_get_signature_nid(const X509_CRL *crl);
596 596
597#if defined(LIBRESSL_NEW_API)
598int i2d_re_X509_CRL_tbs(X509_CRL *req, unsigned char **pp); 597int i2d_re_X509_CRL_tbs(X509_CRL *req, unsigned char **pp);
599#endif
600 598
601const STACK_OF(X509_EXTENSION) *X509_CRL_get0_extensions(const X509_CRL *crl); 599const STACK_OF(X509_EXTENSION) *X509_CRL_get0_extensions(const X509_CRL *crl);
602long X509_CRL_get_version(const X509_CRL *crl); 600long X509_CRL_get_version(const X509_CRL *crl);
@@ -626,12 +624,7 @@ void X509_CRL_METHOD_free(X509_CRL_METHOD *m);
626void X509_CRL_set_meth_data(X509_CRL *crl, void *dat); 624void X509_CRL_set_meth_data(X509_CRL *crl, void *dat);
627void *X509_CRL_get_meth_data(X509_CRL *crl); 625void *X509_CRL_get_meth_data(X509_CRL *crl);
628 626
629#if defined(LIBRESSL_NEW_API)
630X509_PUBKEY *X509_get_X509_PUBKEY(const X509 *x); 627X509_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
636const char *X509_verify_cert_error_string(long n); 629const char *X509_verify_cert_error_string(long n);
637 630
@@ -831,12 +824,10 @@ void X509_SIG_free(X509_SIG *a);
831X509_SIG *d2i_X509_SIG(X509_SIG **a, const unsigned char **in, long len); 824X509_SIG *d2i_X509_SIG(X509_SIG **a, const unsigned char **in, long len);
832int i2d_X509_SIG(X509_SIG *a, unsigned char **out); 825int i2d_X509_SIG(X509_SIG *a, unsigned char **out);
833extern const ASN1_ITEM X509_SIG_it; 826extern const ASN1_ITEM X509_SIG_it;
834#if defined(LIBRESSL_NEW_API)
835void X509_SIG_get0(const X509_SIG *sig, const X509_ALGOR **palg, 827void X509_SIG_get0(const X509_SIG *sig, const X509_ALGOR **palg,
836 const ASN1_OCTET_STRING **pdigest); 828 const ASN1_OCTET_STRING **pdigest);
837void X509_SIG_getm(X509_SIG *sig, X509_ALGOR **palg, 829void X509_SIG_getm(X509_SIG *sig, X509_ALGOR **palg,
838 ASN1_OCTET_STRING **pdigest); 830 ASN1_OCTET_STRING **pdigest);
839#endif
840 831
841X509_REQ_INFO *X509_REQ_INFO_new(void); 832X509_REQ_INFO *X509_REQ_INFO_new(void);
842void X509_REQ_INFO_free(X509_REQ_INFO *a); 833void X509_REQ_INFO_free(X509_REQ_INFO *a);
@@ -903,9 +894,7 @@ void *X509_get_ex_data(X509 *r, int idx);
903int i2d_X509_AUX(X509 *a,unsigned char **pp); 894int i2d_X509_AUX(X509 *a,unsigned char **pp);
904X509 * d2i_X509_AUX(X509 **a,const unsigned char **pp,long length); 895X509 * d2i_X509_AUX(X509 **a,const unsigned char **pp,long length);
905 896
906#if defined(LIBRESSL_NEW_API)
907int i2d_re_X509_tbs(X509 *x, unsigned char **pp); 897int i2d_re_X509_tbs(X509 *x, unsigned char **pp);
908#endif
909 898
910void X509_get0_signature(const ASN1_BIT_STRING **psig, 899void 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);
1019X509_NAME *X509_REQ_get_subject_name(const X509_REQ *x); 1008X509_NAME *X509_REQ_get_subject_name(const X509_REQ *x);
1020int X509_REQ_set_pubkey(X509_REQ *x, EVP_PKEY *pkey); 1009int X509_REQ_set_pubkey(X509_REQ *x, EVP_PKEY *pkey);
1021EVP_PKEY * X509_REQ_get_pubkey(X509_REQ *req); 1010EVP_PKEY * X509_REQ_get_pubkey(X509_REQ *req);
1022#if defined(LIBRESSL_NEW_API)
1023int i2d_re_X509_REQ_tbs(X509_REQ *req, unsigned char **pp); 1011int i2d_re_X509_REQ_tbs(X509_REQ *req, unsigned char **pp);
1024EVP_PKEY * X509_REQ_get0_pubkey(X509_REQ *req); 1012EVP_PKEY * X509_REQ_get0_pubkey(X509_REQ *req);
1025#endif
1026int X509_REQ_extension_nid(int nid); 1013int X509_REQ_extension_nid(int nid);
1027int * X509_REQ_get_extension_nids(void); 1014int * X509_REQ_get_extension_nids(void);
1028void X509_REQ_set_extension_nids(int *nids); 1015void X509_REQ_set_extension_nids(int *nids);