From fe41d9853c38b578d601e27a7508e69f70b91005 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Thu, 23 Apr 2009 16:25:00 +0000 Subject: [PATCH] Make no-ec work --- Configure | 5 +++++ apps/ec.c | 6 ++++++ apps/ecparam.c | 6 ++++++ crypto/evp/pmeth_lib.c | 2 ++ 4 files changed, 19 insertions(+) diff --git a/Configure b/Configure index b2a5d33b0..c3ebcda3f 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 771e15f35..31194b48d 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 4e1fc837e..e9aa0a184 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 9a85f6073..51f0b6ad6 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, };