Fix no-sm3/no-sm2 (with strict-warnings)
authorTodd Short <tshort@akamai.com>
Mon, 19 Mar 2018 18:22:56 +0000 (14:22 -0400)
committerMatt Caswell <matt@openssl.org>
Mon, 19 Mar 2018 18:49:19 +0000 (18:49 +0000)
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5677)

crypto/ec/ec_curve.c

index 46cbe22e0593acc4e61d793885206821d42c9c35..851e6a49812cc81cad04fe1655c7837f87caa850 100644 (file)
@@ -2751,6 +2751,7 @@ static const struct {
     }
 };
 
+#ifndef OPENSSL_NO_SM2
 static const struct {
     EC_CURVE_DATA h;
     unsigned char data[0 + 32 * 6];
@@ -2787,6 +2788,7 @@ static const struct {
         0x53, 0xbb, 0xf4, 0x09, 0x39, 0xd5, 0x41, 0x23,
     }
 };
+#endif /* OPENSSL_NO_SM2 */
 
 typedef struct _ec_list_element_st {
     int nid;