From: Nils Larsch Date: Fri, 24 Feb 2006 17:58:43 +0000 (+0000) Subject: fix no-dh configure option; patch supplied by Peter Meerwald X-Git-Tag: OpenSSL_0_9_8k^2~1542 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f71165b556c307ea490b4fb5c59682f1e2678b20;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 9b7a387ba3..dfe18b0f1c 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