X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fbn%2Fbn_dh.c;h=ad4a16eabe887fc296fa3ff864a03c7406c4b857;hp=34f9fb0af8209a9a704bff8a28a4c507a6a89a3f;hb=2f1a5d1694c4b59ea94115ed4e9577c5bb826c26;hpb=37f3a3b3276bba468d26c968e5c676aaf57ffd82 diff --git a/crypto/bn/bn_dh.c b/crypto/bn/bn_dh.c index 34f9fb0af8..ad4a16eabe 100644 --- a/crypto/bn/bn_dh.c +++ b/crypto/bn/bn_dh.c @@ -61,6 +61,7 @@ #ifndef OPENSSL_NO_DH #include +#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 };