diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-10-19 22:34:53 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-10-19 22:34:53 +0000 |
commit | 5e4eb9954b415fd685bfda69603bec52c5843778 (patch) | |
tree | 5a131d77836b3d292f151b236da15e3d99b60098 /fips/fips.h | |
parent | 227a822ab628267b5fd1b168a0a0bd58482b35ef (diff) |
add authentication parameter to FIPS_module_mode_set
Diffstat (limited to 'fips/fips.h')
-rw-r--r-- | fips/fips.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fips/fips.h b/fips/fips.h index 7a079ef7ff..aaeadf5b51 100644 --- a/fips/fips.h +++ b/fips/fips.h @@ -81,7 +81,7 @@ struct hmac_ctx_st; unsigned long FIPS_module_version(void); const char *FIPS_module_version_text(void); -int FIPS_module_mode_set(int onoff); +int FIPS_module_mode_set(int onoff, const char *auth); int FIPS_module_mode(void); const void *FIPS_rand_check(void); int FIPS_selftest(void); @@ -174,6 +174,9 @@ void FIPS_get_timevec(unsigned char *buf, unsigned long *pctr); /* ECDH test */ #define FIPS_TEST_ECDH 14 +/* Minimum authorisation string length */ +#define FIPS_AUTH_MIN_LEN 16 + void FIPS_post_set_callback( int (*post_cb)(int op, int id, int subid, void *ex)); @@ -406,6 +409,7 @@ void ERR_load_FIPS_strings(void); #define FIPS_R_ADDITIONAL_INPUT_ERROR_UNDETECTED 150 #define FIPS_R_ADDITIONAL_INPUT_TOO_LONG 100 #define FIPS_R_ALREADY_INSTANTIATED 101 +#define FIPS_R_AUTHENTICATION_FAILURE 151 #define FIPS_R_CONTRADICTING_EVIDENCE 102 #define FIPS_R_DRBG_STUCK 103 #define FIPS_R_ENTROPY_ERROR_UNDETECTED 104 |