Skip to content

Commit

Permalink
Fix compilation errors with OpenSSL 3.0 (#2204)
Browse files Browse the repository at this point in the history
Fix the const correctness of DH and EC_KEY, so the codebase will compile
against OpenSSL 3. However, there are a number of warnings due to
deprecated functions, which are not touched by this commit and will need
to get fixed separately.

Signed-off-by: Timo Röhling <roehling@debian.org>

Co-authored-by: Timo Röhling <roehling@debian.org>
(cherry picked from commit cfc0671)

Co-authored-by: Timo Röhling <timo@gaussglocke.de>
  • Loading branch information
mergify[bot] and roehling authored Sep 27, 2021
1 parent c11c32f commit 5272b23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cpp/security/authentication/PKIDH.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ static bool store_dh_public_key(

if (type == EVP_PKEY_DH)
{
DH* dh =
const DH* dh =
#if IS_OPENSSL_1_1
EVP_PKEY_get0_DH(dhkey);
#else
Expand Down Expand Up @@ -856,7 +856,7 @@ static bool store_dh_public_key(
}
else if (type == EVP_PKEY_EC)
{
EC_KEY* ec =
const EC_KEY* ec =
#if IS_OPENSSL_1_1
EVP_PKEY_get0_EC_KEY(dhkey);
#else
Expand Down

0 comments on commit 5272b23

Please sign in to comment.