Guard some SM2 functions with OPENSSL_NO_SM2
[openssl.git] / include / openssl / x509.h
index ace3fb05a7dee08046be37a305d345b968854535..4de88bd57beb0f8fd7de12a940246c08a497c3fc 100644 (file)
@@ -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);