Fix no-dh
[openssl.git] / providers / default / defltprov.c
index 6ac2bdbfcc2e1c8a2c25e8b6ec4299fd9f03fc8b..18e3a5c36f89be105cd5cd19306c5ecc6042af6f 100644 (file)
@@ -115,7 +115,9 @@ static const OSSL_ALGORITHM deflt_ciphers[] = {
 };
 
 static const OSSL_ALGORITHM deflt_keyexch[] = {
 };
 
 static const OSSL_ALGORITHM deflt_keyexch[] = {
+#ifndef OPENSSL_NO_DH
     { "dhKeyAgreement", "default=yes", dh_functions },
     { "dhKeyAgreement", "default=yes", dh_functions },
+#endif
     { NULL, NULL, NULL }
 };
 
     { NULL, NULL, NULL }
 };