Update copyright; generated files.
[openssl.git] / crypto / bn / bn_dh.c
index 3a7282f740a06f88ff57a51ec0d7f38b2adc978a..ad4a16eabe887fc296fa3ff864a03c7406c4b857 100644 (file)
  *
  */
 
-#include <openssl/dh.h>
 #include "bn_lcl.h"
 #include "e_os.h"
 
 #ifndef OPENSSL_NO_DH
+#include <openssl/dh.h>
+#include "internal/bn_dh.h"
 /* DH parameters from RFC5114 */
 
 # if BN_BITS2 == 64
@@ -248,7 +249,8 @@ static const BN_ULONG dh2048_256_q[] = {
 
 /* Macro to make a BIGNUM from static data */
 
-# define make_dh_bn(x) const BIGNUM _bignum_##x = { (BN_ULONG *) x, \
+# define make_dh_bn(x) extern const BIGNUM _bignum_##x; \
+                       const BIGNUM _bignum_##x = { (BN_ULONG *) x, \
                         OSSL_NELEM(x),\
                         OSSL_NELEM(x),\
                         0, BN_FLG_STATIC_DATA };