summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/x509/x509.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509/x509.h b/src/lib/libcrypto/x509/x509.h
index e8383d717c..84288de5de 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.80 2021/10/23 11:41:50 tb Exp $ */ 1/* $OpenBSD: x509.h,v 1.81 2021/10/23 11:56:10 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 *
@@ -596,6 +596,10 @@ extern "C" {
596int X509_CRL_up_ref(X509_CRL *x); 596int X509_CRL_up_ref(X509_CRL *x);
597int X509_CRL_get_signature_nid(const X509_CRL *crl); 597int X509_CRL_get_signature_nid(const X509_CRL *crl);
598 598
599#if defined(LIBRESSL_NEW_API)
600int i2d_re_X509_CRL_tbs(X509_CRL *req, unsigned char **pp);
601#endif
602
599const STACK_OF(X509_EXTENSION) *X509_CRL_get0_extensions(const X509_CRL *crl); 603const STACK_OF(X509_EXTENSION) *X509_CRL_get0_extensions(const X509_CRL *crl);
600long X509_CRL_get_version(const X509_CRL *crl); 604long X509_CRL_get_version(const X509_CRL *crl);
601const ASN1_TIME *X509_CRL_get0_lastUpdate(const X509_CRL *crl); 605const ASN1_TIME *X509_CRL_get0_lastUpdate(const X509_CRL *crl);
@@ -906,6 +910,11 @@ int X509_set_ex_data(X509 *r, int idx, void *arg);
906void *X509_get_ex_data(X509 *r, int idx); 910void *X509_get_ex_data(X509 *r, int idx);
907int i2d_X509_AUX(X509 *a,unsigned char **pp); 911int i2d_X509_AUX(X509 *a,unsigned char **pp);
908X509 * d2i_X509_AUX(X509 **a,const unsigned char **pp,long length); 912X509 * d2i_X509_AUX(X509 **a,const unsigned char **pp,long length);
913
914#if defined(LIBRESSL_NEW_API)
915int i2d_re_X509_tbs(X509 *x, unsigned char **pp);
916#endif
917
909void X509_get0_signature(const ASN1_BIT_STRING **psig, 918void X509_get0_signature(const ASN1_BIT_STRING **psig,
910 const X509_ALGOR **palg, const X509 *x); 919 const X509_ALGOR **palg, const X509 *x);
911int X509_get_signature_nid(const X509 *x); 920int X509_get_signature_nid(const X509 *x);
@@ -1019,6 +1028,7 @@ X509_NAME *X509_REQ_get_subject_name(const X509_REQ *x);
1019int X509_REQ_set_pubkey(X509_REQ *x, EVP_PKEY *pkey); 1028int X509_REQ_set_pubkey(X509_REQ *x, EVP_PKEY *pkey);
1020EVP_PKEY * X509_REQ_get_pubkey(X509_REQ *req); 1029EVP_PKEY * X509_REQ_get_pubkey(X509_REQ *req);
1021#if defined(LIBRESSL_NEW_API) 1030#if defined(LIBRESSL_NEW_API)
1031int i2d_re_X509_REQ_tbs(X509_REQ *req, unsigned char **pp);
1022EVP_PKEY * X509_REQ_get0_pubkey(X509_REQ *req); 1032EVP_PKEY * X509_REQ_get0_pubkey(X509_REQ *req);
1023#endif 1033#endif
1024int X509_REQ_extension_nid(int nid); 1034int X509_REQ_extension_nid(int nid);