Update fips.go for OpenSSL 3.x compatability
openssl 1.X api FIPS_mode_set() was deprecated and replaced with EVP_default_properties_enable_fips()
modify fips.go so it can link with libcrypto in the presence of a build with openssl 3.x
not yet tested. Fri Jun 24 3pm PST. do not merge yet...
Actually, this will fail in the presence of older openssl versions. You probably should not merge this.
Based on the install HOST openssl version, Could we call FIPS_mode_set() or EVP_default_properties_enable_fips() ??
Yes, Rajesh-elisity. That sounds like the right approach.
My patch, as it is, succeeds in the presence of opnessl1.1+ or 3.x but fails in the presence of openssl1.0 or lower.