Skip to content

Commit d523d40

Browse files
authored
Fix weak-crypto feature (alexcrichton#120)
These flags are disabled by default at least in newer versions of openssl. So They have to be explicitly enabled to be used.
1 parent 466ffd2 commit d523d40

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/lib.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,12 @@ impl Build {
159159
configure.arg("no-legacy");
160160
}
161161

162-
if cfg!(not(feature = "weak-crypto")) {
162+
if cfg!(feature = "weak-crypto") {
163+
configure
164+
.arg("enable-md2")
165+
.arg("enable-rc5")
166+
.arg("enable-weak-ssl-ciphers");
167+
} else {
163168
configure
164169
.arg("no-md2")
165170
.arg("no-rc5")

0 commit comments

Comments
 (0)