summaryrefslogtreecommitdiffstats
path: root/crypto/x509/x509_lcl.h
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2017-04-21 16:56:34 +0200
committerDr. Stephen Henson <steve@openssl.org>2017-04-25 23:12:34 +0200
commit786dd2c22c71081492e209d93beee3ff4fe66357 (patch)
treee51ecaa26605856fe4b3bc49fbae576f85566855 /crypto/x509/x509_lcl.h
parentTapify libtestutil a bit better (diff)
downloadopenssl-786dd2c22c71081492e209d93beee3ff4fe66357.tar.xz
openssl-786dd2c22c71081492e209d93beee3ff4fe66357.zip
Add support for custom signature parameters
Many signature types define the digest and public key type by a single OID such as ecdsa_with_sha256. Some types (RSA-PSS for example) use a single OID to indicate the signature scheme and additional parameters are encoded in the AlgorithmIdentifier. Add an X509_SIG_INFO structure to contain details about the signature type: specifically the digest algorithm, public key algorithm, security bits and various flags. This supports both existing algorithms and more complex types. Add accessors for the structure and a special case that retrieves signature information from a certificate. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3301)
Diffstat (limited to 'crypto/x509/x509_lcl.h')
-rw-r--r--crypto/x509/x509_lcl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/x509/x509_lcl.h b/crypto/x509/x509_lcl.h
index 34e413530a..401f2e9f55 100644
--- a/crypto/x509/x509_lcl.h
+++ b/crypto/x509/x509_lcl.h
@@ -142,3 +142,6 @@ DEFINE_STACK_OF(BY_DIR_HASH)
DEFINE_STACK_OF(BY_DIR_ENTRY)
typedef STACK_OF(X509_NAME_ENTRY) STACK_OF_X509_NAME_ENTRY;
DEFINE_STACK_OF(STACK_OF_X509_NAME_ENTRY)
+
+void x509_set_signature_info(X509_SIG_INFO *siginf, const X509_ALGOR *alg,
+ const ASN1_STRING *sig);