From ad5b71be73f0450a9eb51c8b845796fe4183601f Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Thu, 6 Feb 2020 15:17:28 +0000 Subject: Fix no-ec Recent SM2 related changes were not properly guarded with OPENSSL_NO_EC Reviewed-by: Bernd Edlinger (Merged from https://github.com/openssl/openssl/pull/11029) --- crypto/x509/x_all.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crypto/x509/x_all.c') diff --git a/crypto/x509/x_all.c b/crypto/x509/x_all.c index 5a5f098558..89940a0cc9 100644 --- a/crypto/x509/x_all.c +++ b/crypto/x509/x_all.c @@ -44,12 +44,14 @@ static EVP_MD_CTX *make_id_ctx(EVP_PKEY *r, ASN1_OCTET_STRING *id) goto error; } +#ifndef OPENSSL_NO_EC if (id != NULL) { if (EVP_PKEY_CTX_set1_id(pctx, id->data, id->length) <= 0) { X509err(0, ERR_R_MALLOC_FAILURE); goto error; } } +#endif EVP_MD_CTX_set_pkey_ctx(ctx, pctx); -- cgit v1.2.3