From c8a219a28d937a638dba817bddaa7c77ad81ad0e Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Fri, 8 Apr 2016 15:55:05 +0200 Subject: openssl: The member storing the DH exponent length has been renamed in BoringSSL --- src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/libstrongswan/plugins/openssl') diff --git a/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c b/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c index 49ec48804..5b1859b35 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; } -- cgit v1.2.3