summaryrefslogtreecommitdiffstats
path: root/include/crypto
diff options
context:
space:
mode:
authorShane Lontis <shane.lontis@oracle.com>2021-03-05 08:22:56 +1000
committerTomas Mraz <tomas@openssl.org>2021-03-22 15:40:04 +0100
commite72dbd8e13cbf5a16faaa6c911af5507593dd836 (patch)
treeec450d9fef6ba2223cfc36ee1865512254f9dd23 /include/crypto
parentc781eb1c63c243cb64dbe3066a43dc172aaab3b8 (diff)
Fix usages of const EVP_MD.
Partially fixes #13837 Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14474)
Diffstat (limited to 'include/crypto')
-rw-r--r--include/crypto/x509.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/crypto/x509.h b/include/crypto/x509.h
index 09b1fb15e3..3ff903541f 100644
--- a/include/crypto/x509.h
+++ b/include/crypto/x509.h
@@ -81,6 +81,8 @@ struct X509_req_st {
/* Set on live certificates for authentication purposes */
ASN1_OCTET_STRING *distinguishing_id;
+ OSSL_LIB_CTX *libctx;
+ char *propq;
};
struct X509_crl_info_st {
@@ -314,6 +316,8 @@ int ossl_x509_init_sig_info(X509 *x);
int ossl_x509_set0_libctx(X509 *x, OSSL_LIB_CTX *libctx, const char *propq);
int ossl_x509_crl_set0_libctx(X509_CRL *x, OSSL_LIB_CTX *libctx,
const char *propq);
+int ossl_x509_req_set0_libctx(X509_REQ *x, OSSL_LIB_CTX *libctx,
+ const char *propq);
int ossl_asn1_item_digest_ex(const ASN1_ITEM *it, const EVP_MD *type,
void *data, unsigned char *md, unsigned int *len,
OSSL_LIB_CTX *libctx, const char *propq);