Fix no-gost no-srp no-ec no-dh.
[openssl.git] / ssl / t1_lib.c
index a4cd23ab3939fcd2ca4e39fa73006b3bb84f734a..06ed3d3d48c377d784a6fad5d45da7012c850ee1 100644 (file)
 #include <openssl/evp.h>
 #include <openssl/hmac.h>
 #include <openssl/ocsp.h>
+#include <openssl/conf.h>
+#include <openssl/x509v3.h>
 #include <openssl/rand.h>
 #include <openssl/dh.h>
 #include <openssl/bn.h>
@@ -4098,9 +4100,9 @@ DH *ssl_get_auto_dh(SSL *s)
         if (g != NULL)
             BN_set_word(g, 2);
         if (dh_secbits >= 192)
-            p = get_rfc3526_prime_8192(NULL);
+            p = BN_get_rfc3526_prime_8192(NULL);
         else
-            p = get_rfc3526_prime_3072(NULL);
+            p = BN_get_rfc3526_prime_3072(NULL);
         if (p == NULL || g == NULL || !DH_set0_pqg(dhp, p, NULL, g)) {
             DH_free(dhp);
             BN_free(p);