[openssl] master update

Matt Caswell matt at openssl.org
Fri Mar 15 10:18:14 UTC 2019


The branch master has been updated
       via  4acd79ff46323df526d7778d32a12a0d5b97c11e (commit)
      from  c37e635065a5bcb744dfb282f59e978e41490ce4 (commit)


- Log -----------------------------------------------------------------
commit 4acd79ff46323df526d7778d32a12a0d5b97c11e
Author: Matt Caswell <matt at openssl.org>
Date:   Thu Mar 14 11:14:38 2019 +0000

    Guard some SM2 functions with OPENSSL_NO_SM2
    
    Fixes the no-ec build
    
    Reviewed-by: Richard Levitte <levitte at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/8481)

-----------------------------------------------------------------------

Summary of changes:
 include/openssl/x509.h | 2 ++
 util/libcrypto.num     | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/openssl/x509.h b/include/openssl/x509.h
index ace3fb0..4de88bd 100644
--- a/include/openssl/x509.h
+++ b/include/openssl/x509.h
@@ -566,8 +566,10 @@ void X509_get0_signature(const ASN1_BIT_STRING **psig,
                          const X509_ALGOR **palg, const X509 *x);
 int X509_get_signature_nid(const X509 *x);
 
+# ifndef OPENSSL_NO_SM2
 void X509_set_sm2_id(X509 *x, ASN1_OCTET_STRING *sm2_id);
 ASN1_OCTET_STRING *X509_get0_sm2_id(X509 *x);
+# endif
 
 int X509_trusted(const X509 *x);
 int X509_alias_set1(X509 *x, const unsigned char *name, int len);
diff --git a/util/libcrypto.num b/util/libcrypto.num
index 817c8bb..711ccd9 100644
--- a/util/libcrypto.num
+++ b/util/libcrypto.num
@@ -4788,5 +4788,5 @@ OSSL_PARAM_get_utf8_ptr                 4735	3_0_0	EXIST::FUNCTION:
 OSSL_PARAM_set_utf8_ptr                 4736	3_0_0	EXIST::FUNCTION:
 OSSL_PARAM_get_octet_ptr                4737	3_0_0	EXIST::FUNCTION:
 OSSL_PARAM_set_octet_ptr                4738	3_0_0	EXIST::FUNCTION:
-X509_set_sm2_id                         4739	3_0_0	EXIST::FUNCTION:
-X509_get0_sm2_id                        4740	3_0_0	EXIST::FUNCTION:
+X509_set_sm2_id                         4739	3_0_0	EXIST::FUNCTION:SM2
+X509_get0_sm2_id                        4740	3_0_0	EXIST::FUNCTION:SM2


More information about the openssl-commits mailing list