Skip to content

Commit

Permalink
Fix weak-crypto feature (#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 Jan 28, 2022
1 parent 466ffd2 commit d523d40
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 @@ -159,7 +159,12 @@ impl Build {
configure.arg("no-legacy");
}

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 d523d40

Please sign in to comment.