From: Tobias Brunner Date: Fri, 8 Apr 2016 13:55:05 +0000 (+0200) Subject: openssl: The member storing the DH exponent length has been renamed in BoringSSL X-Git-Tag: 5.4.1dr2~30^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c8a219a28d937a638dba817bddaa7c77ad81ad0e;p=thirdparty%2Fstrongswan.git openssl: The member storing the DH exponent length has been renamed in BoringSSL --- diff --git a/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c b/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c index 49ec488048..5b1859b35a 100644 --- a/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c +++ b/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c @@ -145,7 +145,11 @@ static status_t set_modulus(private_openssl_diffie_hellman_t *this) this->dh->g = BN_bin2bn(params->generator.ptr, params->generator.len, NULL); if (params->exp_len != params->prime.len) { +#ifdef OPENSSL_IS_BORINGSSL + this->dh->priv_length = params->exp_len * 8; +#else this->dh->length = params->exp_len * 8; +#endif } return SUCCESS; }