summaryrefslogtreecommitdiffstats
path: root/crypto/include/internal
diff options
context:
space:
mode:
authorPaul Yang <yang.yang@baishancloud.com>2019-06-05 14:46:48 +0800
committerPaul Yang <yang.yang@baishancloud.com>2019-06-28 18:58:19 +0800
commitbc42bd6298702a1abf70aa6383d36886dd5af4b3 (patch)
treef75b4cdda42ccc9ebeb01cf9d1d4bc5c0c05764e /crypto/include/internal
parent53a11c6da09988efba93eccfdd10bf7edf1d53b2 (diff)
Support SM2 certificate signing
SM2 certificate signing request can be created and signed by OpenSSL now, both in library and apps. Documentation and test cases are added. Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/9085)
Diffstat (limited to 'crypto/include/internal')
-rw-r--r--crypto/include/internal/x509_int.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/include/internal/x509_int.h b/crypto/include/internal/x509_int.h
index 7c40b159cc..f6897e1421 100644
--- a/crypto/include/internal/x509_int.h
+++ b/crypto/include/internal/x509_int.h
@@ -71,6 +71,9 @@ struct X509_req_st {
ASN1_BIT_STRING *signature; /* signature */
CRYPTO_REF_COUNT references;
CRYPTO_RWLOCK *lock;
+# ifndef OPENSSL_NO_SM2
+ ASN1_OCTET_STRING *sm2_id;
+# endif
};
struct X509_crl_info_st {