openssl: The member storing the DH exponent length has been renamed in BoringSSL

This commit is contained in:
Tobias Brunner
2016-04-15 10:32:53 +02:00
parent 77df573a95
commit c8a219a28d
@@ -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;
}