alexcrichton / openssl-src-rs

Source code and logic to build OpenSSL from source
Apache License 2.0
68 stars 113 forks source link

Fix weak-crypto feature #120

Closed eaufavor closed 2 years ago

eaufavor commented 2 years ago

These flags are disabled by default at least in newer versions of openssl. So They have to be explicitly enabled to be used.

I've verified this behavior on openssl 1.1.1h and 3.0.1. Other flags/features might have the same issue, but I have no check yet.

alexcrichton commented 2 years ago

Seems reasonable to me, thanks! While you're at it would you be ok inverting the conditional and swapping the cases? (seems a bit easier to read to me at least)

eaufavor commented 2 years ago

Sure thing. Done.