summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>2021-06-15 13:00:38 +0200
committerMatt Caswell <matt@openssl.org>2021-06-16 14:30:35 +0100
commiteefdb8e013fa9d0881566b41291c5725a77b332a (patch)
tree0e70fb71ad1bc367d5a13e57f0209e1ad895a1e5 /include
parent6882652e65d39310c98ba506ceb55a87c702d419 (diff)
downloadopenssl-new-eefdb8e013fa9d0881566b41291c5725a77b332a.tar.gz
X509_digest_sig(): Improve default hash for EdDSA and allow to return the chosen default
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15762)
Diffstat (limited to 'include')
-rw-r--r--include/openssl/x509.h.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/openssl/x509.h.in b/include/openssl/x509.h.in
index 39aae063f6..b4efbb55dd 100644
--- a/include/openssl/x509.h.in
+++ b/include/openssl/x509.h.in
@@ -346,7 +346,8 @@ int X509_pubkey_digest(const X509 *data, const EVP_MD *type,
unsigned char *md, unsigned int *len);
int X509_digest(const X509 *data, const EVP_MD *type,
unsigned char *md, unsigned int *len);
-ASN1_OCTET_STRING *X509_digest_sig(const X509 *cert);
+ASN1_OCTET_STRING *X509_digest_sig(const X509 *cert,
+ EVP_MD **md_used, int *md_is_fallback);
int X509_CRL_digest(const X509_CRL *data, const EVP_MD *type,
unsigned char *md, unsigned int *len);
int X509_REQ_digest(const X509_REQ *data, const EVP_MD *type,