From: Nils Larsch Date: Fri, 24 Feb 2006 17:58:35 +0000 (+0000) Subject: fix no-dh configure option; patch supplied by Peter Meerwald X-Git-Tag: OpenSSL_0_9_8b~19 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=41d4d6721ccaac17337b940c4de1d13b96af8c0b;p=oweals%2Fopenssl.git fix no-dh configure option; patch supplied by Peter Meerwald --- diff --git a/ssl/ssl_cert.c b/ssl/ssl_cert.c index 7908dcccdb..452a0822d9 100644 --- a/ssl/ssl_cert.c +++ b/ssl/ssl_cert.c @@ -296,7 +296,7 @@ CERT *ssl_cert_dup(CERT *cert) return(ret); -#ifndef OPENSSL_NO_DH /* avoid 'unreferenced label' warning if OPENSSL_NO_DH is defined */ +#if !defined(OPENSSL_NO_DH) || !defined(OPENSSL_NO_ECDH) err: #endif #ifndef OPENSSL_NO_RSA diff --git a/ssl/ssltest.c b/ssl/ssltest.c index 137b68b857..517657c024 100644 --- a/ssl/ssltest.c +++ b/ssl/ssltest.c @@ -2234,6 +2234,7 @@ static DH *get_dh1024dsa() dh->length = 160; return(dh); } +#endif static int do_test_cipherlist(void) { @@ -2291,4 +2292,3 @@ static int do_test_cipherlist(void) return 1; } -#endif