Skip to content

des: fix compile break for OpenSSL without DES#8459

Closed
MarcelRaad wants to merge 1 commit into
curl:masterfrom
MarcelRaad:fix_des_condition
Closed

des: fix compile break for OpenSSL without DES#8459
MarcelRaad wants to merge 1 commit into
curl:masterfrom
MarcelRaad:fix_des_condition

Conversation

@MarcelRaad

Copy link
Copy Markdown
Member

When USE_OPENSSL was defined but OpenSSL had no DES support and a
different crypto library was used for that, Curl_des_set_odd_parity
was called but not defined. This could for example happen on Windows
and macOS when using OpenSSL v3 with deprecated features disabled.

Use the same condition for the function definition as used at the
caller side, but leaving out the OpenSSL part to avoid including
OpenSSL headers.

@MarcelRaad

Copy link
Copy Markdown
Member Author

When `USE_OPENSSL` was defined but OpenSSL had no DES support and a
different crypto library was used for that, `Curl_des_set_odd_parity`
was called but not defined. This could for example happen on Windows
and macOS when using OpenSSL v3 with deprecated features disabled.

Use the same condition for the function definition as used at the
caller side, but leaving out the OpenSSL part to avoid including
OpenSSL headers.

Closes curl#8459
@MarcelRaad MarcelRaad deleted the fix_des_condition branch February 17, 2022 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant