Skip to content

Commit e2cee39

Browse files
james58899eaufavor
andauthored
Fix weak-crypto feature (alexcrichton#152)
These flags are disabled by default at least in newer versions of openssl. So They have to be explicitly enabled to be used. Co-authored-by: Yuchen Wu <yuchen@cloudflare.com>
1 parent a714062 commit e2cee39

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
@@ -165,7 +165,12 @@ impl Build {
165165
.arg("no-zlib")
166166
.arg("no-zlib-dynamic");
167167

168-
if cfg!(not(feature = "weak-crypto")) {
168+
if cfg!(feature = "weak-crypto") {
169+
configure
170+
.arg("enable-md2")
171+
.arg("enable-rc5")
172+
.arg("enable-weak-ssl-ciphers");
173+
} else {
169174
configure
170175
.arg("no-md2")
171176
.arg("no-rc5")

0 commit comments

Comments
 (0)