Skip to content

Commit

Permalink
Fix weak-crypto feature (alexcrichton#120)
Browse files Browse the repository at this point in the history
These flags are disabled by default at least in newer versions of openssl.
So They have to be explicitly enabled to be used.
  • Loading branch information
eaufavor authored and james58899 committed Feb 5, 2022
1 parent f082ecc commit 40062d1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,12 @@ impl Build {
.arg("no-zlib")
.arg("no-zlib-dynamic");

if cfg!(not(feature = "weak-crypto")) {
if cfg!(feature = "weak-crypto") {
configure
.arg("enable-md2")
.arg("enable-rc5")
.arg("enable-weak-ssl-ciphers");
} else {
configure
.arg("no-md2")
.arg("no-rc5")
Expand Down

0 comments on commit 40062d1

Please sign in to comment.