summaryrefslogtreecommitdiffstats
path: root/crypto/ec/ec_curve.c
diff options
context:
space:
mode:
authorTodd Short <tshort@akamai.com>2018-03-19 18:21:13 +0100
committerMatt Caswell <matt@openssl.org>2018-03-19 19:49:19 +0100
commit98020023a46e4c32a468bf16e826da09e5547d37 (patch)
tree525cf777a030ccf5b82d9ef72a3c12953eee9ac0 /crypto/ec/ec_curve.c
parentDon't generate buildtest_*err.c (diff)
downloadopenssl-98020023a46e4c32a468bf16e826da09e5547d37.tar.xz
openssl-98020023a46e4c32a468bf16e826da09e5547d37.zip
Fix no-sm3 (and no-sm2)
Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/5677)
Diffstat (limited to 'crypto/ec/ec_curve.c')
-rw-r--r--crypto/ec/ec_curve.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/ec/ec_curve.c b/crypto/ec/ec_curve.c
index 01d56543db..46cbe22e05 100644
--- a/crypto/ec/ec_curve.c
+++ b/crypto/ec/ec_curve.c
@@ -2997,8 +2997,10 @@ static const ec_list_element curve_list[] = {
"RFC 5639 curve over a 512 bit prime field"},
{NID_brainpoolP512t1, &_EC_brainpoolP512t1.h, 0,
"RFC 5639 curve over a 512 bit prime field"},
+#ifndef OPENSSL_NO_SM2
{NID_sm2, &_EC_sm2p256v1.h, 0,
"SM2 curve over a 256 bit prime field"},
+#endif
};
#define curve_list_length OSSL_NELEM(curve_list)