X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fbn%2Fbn_dh.c;h=ad4a16eabe887fc296fa3ff864a03c7406c4b857;hb=b0700d2c8de79252ba605748a075cf2e5d670da1;hp=cfd8c067a80a86e072b8ac73e51e36682229f0f1;hpb=b6eb9827a6866981c08cc9613ca8b4a648894fb1;p=oweals%2Fopenssl.git diff --git a/crypto/bn/bn_dh.c b/crypto/bn/bn_dh.c index cfd8c067a8..ad4a16eabe 100644 --- a/crypto/bn/bn_dh.c +++ b/crypto/bn/bn_dh.c @@ -60,6 +60,8 @@ #include "e_os.h" #ifndef OPENSSL_NO_DH +#include +#include "internal/bn_dh.h" /* DH parameters from RFC5114 */ # if BN_BITS2 == 64 @@ -247,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 };