aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2016-04-08 15:55:05 +0200
committerTobias Brunner <tobias@strongswan.org>2016-04-15 10:32:53 +0200
commitc8a219a28d937a638dba817bddaa7c77ad81ad0e (patch)
tree397772d09f06d67cd10d10d2610625c7f08c39ad
parent77df573a9551c5a344ad00b901b1bbd47cd57134 (diff)
downloadstrongswan-c8a219a28d937a638dba817bddaa7c77ad81ad0e.tar.bz2
strongswan-c8a219a28d937a638dba817bddaa7c77ad81ad0e.tar.xz
openssl: The member storing the DH exponent length has been renamed in BoringSSL
-rw-r--r--src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c4
1 files changed, 4 insertions, 0 deletions
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;
}