]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
openssl: The member storing the DH exponent length has been renamed in BoringSSL
authorTobias Brunner <tobias@strongswan.org>
Fri, 8 Apr 2016 13:55:05 +0000 (15:55 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 15 Apr 2016 08:32:53 +0000 (10:32 +0200)
src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c

index 49ec4880480f177c21cb3f5956867a623386234e..5b1859b35a907c4f2a97281a8789df9121ad35a2 100644 (file)
@@ -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;
 }