microsoft / go-crypto-openssl

Go crypto backend for Linux using OpenSSL
MIT License
55 stars 14 forks source link

Prioritize FIPS-enabled versions when automatically selecting a version #53

Closed qmuntal closed 1 year ago

qmuntal commented 1 year ago

This PR updates the Init("") behavior so it first try to select a FIPS-enabled OpenSSL version from the list of well-known versions. If non is found, then fallback to the previous behavior.

While here, simplify SetFips by using functions provided by OpenSSL 3 instead of trying to do everything ourselves.