X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=fips%2Ffips_utl.h;h=1ed133c5c9097a1dd52da531dd975a6693496d51;hp=c0ce613f47d378e7b40047a618b2fda921374d2f;hb=5e4eb9954b415fd685bfda69603bec52c5843778;hpb=227a822ab628267b5fd1b168a0a0bd58482b35ef diff --git a/fips/fips_utl.h b/fips/fips_utl.h index c0ce613f47..1ed133c5c9 100644 --- a/fips/fips_utl.h +++ b/fips/fips_utl.h @@ -58,6 +58,15 @@ #define RESP_EOL "\r\n" #endif +#ifndef FIPS_AUTH_OFFICER_PASS +#define FIPS_AUTH_OFFICER_PASS "Default FIPS Crypto Officer Password" +#endif + +#ifndef FIPS_AUTH_USER_PASS +#define FIPS_AUTH_USER_PASS "Default FIPS Crypto User Password" +#endif + + int hex2bin(const char *in, unsigned char *out); unsigned char *hex2bin_m(const char *in, long *plen); int do_hex2bn(BIGNUM **pr, const char *in); @@ -144,7 +153,7 @@ void do_entropy_stick(void) void fips_algtest_init(void) { fips_algtest_init_nofips(); - if (!FIPS_module_mode_set(1)) + if (!FIPS_module_mode_set(1, FIPS_AUTH_USER_PASS)) { fprintf(stderr, "Error entering FIPS mode\n"); exit(1);