Make DH opaque
[openssl.git] / crypto / dh / dh_rfc5114.c
index 8819ac087b9c486d40f120abe2830781dd2d2893..48b199dfce7471f7b5ad7270e5be8b47adc6d4db 100644 (file)
@@ -58,8 +58,9 @@
 
 #include <stdio.h>
 #include "internal/cryptlib.h"
-#include <openssl/dh.h>
+#include "dh_locl.h"
 #include <openssl/bn.h>
+#include "internal/bn_dh.h"
 
 /*
  * Macro to make a DH structure from BIGNUM data. NB: although just copying
@@ -68,9 +69,6 @@
  */
 
 #define make_dh(x) \
-\
-extern const BIGNUM _bignum_dh##x##_p, _bignum_dh##x##_g, _bignum_dh##x##_q; \
-\
 DH *DH_get_##x(void) \
 { \
     DH *dh = DH_new(); \