From: Dr. Stephen Henson Date: Thu, 23 Apr 2009 16:25:00 +0000 (+0000) Subject: Make no-ec work X-Git-Tag: OpenSSL_1_0_0-beta3~125 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fe41d9853c38b578d601e27a7508e69f70b91005;p=oweals%2Fopenssl.git Make no-ec work --- diff --git a/Configure b/Configure index b2a5d33b00..c3ebcda3f4 100755 --- a/Configure +++ b/Configure @@ -918,6 +918,11 @@ if (defined($disabled{"tls1"})) $disabled{"tlsext"} = "forced"; } +if (defined($disabled{"ec"})) + { + $disabled{"gost"} = "forced"; + } + if ($target eq "TABLE") { foreach $target (sort keys %table) { print_table_entry($target); diff --git a/apps/ec.c b/apps/ec.c index 771e15f357..31194b48df 100644 --- a/apps/ec.c +++ b/apps/ec.c @@ -400,4 +400,10 @@ end: apps_shutdown(); OPENSSL_EXIT(ret); } +#else /* !OPENSSL_NO_EC */ + +# if PEDANTIC +static void *dummy=&dummy; +# endif + #endif diff --git a/apps/ecparam.c b/apps/ecparam.c index 4e1fc837ed..e9aa0a184a 100644 --- a/apps/ecparam.c +++ b/apps/ecparam.c @@ -725,4 +725,10 @@ static int ecparam_print_var(BIO *out, BIGNUM *in, const char *var, BIO_printf(out, "\n\t};\n\n"); return 1; } +#else /* !OPENSSL_NO_EC */ + +# if PEDANTIC +static void *dummy=&dummy; +# endif + #endif diff --git a/crypto/evp/pmeth_lib.c b/crypto/evp/pmeth_lib.c index 9a85f60737..51f0b6ad63 100644 --- a/crypto/evp/pmeth_lib.c +++ b/crypto/evp/pmeth_lib.c @@ -80,7 +80,9 @@ static const EVP_PKEY_METHOD *standard_methods[] = &rsa_pkey_meth, &dh_pkey_meth, &dsa_pkey_meth, +#ifndef OPENSSL_NO_EC &ec_pkey_meth, +#endif &hmac_pkey_meth, };