X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fo_fips.c;h=f6d1b21855ce54e2905ff4004ee698f6f3ae1436;hb=dfb5de6fc0ff040212deb687d01e2f216edd88df;hp=9474a0d9afa4199f113935f91865167c48c20dfc;hpb=b0b3d09063275680d9ad78568660d6c4357d61d6;p=oweals%2Fopenssl.git diff --git a/crypto/o_fips.c b/crypto/o_fips.c index 9474a0d9af..f6d1b21855 100644 --- a/crypto/o_fips.c +++ b/crypto/o_fips.c @@ -64,6 +64,7 @@ int FIPS_mode(void) { + OPENSSL_init(); #ifdef OPENSSL_FIPS return FIPS_module_mode(); #else @@ -75,7 +76,10 @@ int FIPS_mode_set(int r) { OPENSSL_init(); #ifdef OPENSSL_FIPS - if (!FIPS_module_mode_set(r)) +#ifndef FIPS_AUTH_USER_PASS +#define FIPS_AUTH_USER_PASS "Default FIPS Crypto User Password" +#endif + if (!FIPS_module_mode_set(r, FIPS_AUTH_USER_PASS)) return 0; if (r) RAND_set_rand_method(FIPS_rand_get_method());