Fix no-sm3 (and no-sm2)
[openssl.git] / include / openssl / sm2.h
index a3c055b199fe58fe16ec231dacabf5dc4d9ca85e..24ee7657b843166a1f5642ce8e8fd24320516e3e 100644 (file)
 
 # ifndef OPENSSL_NO_SM2
 
+#  ifdef __cplusplus
+extern "C" {
+#  endif
+
 #  include <openssl/ec.h>
 
 /* The default user id as specified in GM/T 0009-2012 */
@@ -74,5 +78,9 @@ int SM2_decrypt(const EC_KEY *key,
 
 int ERR_load_SM2_strings(void);
 
+#  ifdef __cplusplus
+}
+#  endif
+
 # endif /* OPENSSL_NO_SM2 */
 #endif