Rename FIPS_MODE to FIPS_MODULE
This macro is used to determine if certain pieces of code should become part of the FIPS module or not. The old name was confusing. Fixes #11538 Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/11539)
This commit is contained in:
parent
cf86057a1a
commit
f844f9eb44
89 changed files with 458 additions and 458 deletions
|
@ -136,7 +136,7 @@ int ossl_namemap_name2num_n(const OSSL_NAMEMAP *namemap,
|
|||
NAMENUM_ENTRY *namenum_entry, namenum_tmpl;
|
||||
int number = 0;
|
||||
|
||||
#ifndef FIPS_MODE
|
||||
#ifndef FIPS_MODULE
|
||||
if (namemap == NULL)
|
||||
namemap = ossl_namemap_stored(NULL);
|
||||
#endif
|
||||
|
@ -198,7 +198,7 @@ int ossl_namemap_add_name_n(OSSL_NAMEMAP *namemap, int number,
|
|||
NAMENUM_ENTRY *namenum = NULL;
|
||||
int tmp_number;
|
||||
|
||||
#ifndef FIPS_MODE
|
||||
#ifndef FIPS_MODULE
|
||||
if (namemap == NULL)
|
||||
namemap = ossl_namemap_stored(NULL);
|
||||
#endif
|
||||
|
@ -309,7 +309,7 @@ int ossl_namemap_add_names(OSSL_NAMEMAP *namemap, int number,
|
|||
* ==============
|
||||
*/
|
||||
|
||||
#ifndef FIPS_MODE
|
||||
#ifndef FIPS_MODULE
|
||||
#include <openssl/evp.h>
|
||||
|
||||
/* Creates an initial namemap with names found in the legacy method db */
|
||||
|
@ -366,7 +366,7 @@ OSSL_NAMEMAP *ossl_namemap_stored(OPENSSL_CTX *libctx)
|
|||
openssl_ctx_get_data(libctx, OPENSSL_CTX_NAMEMAP_INDEX,
|
||||
&stored_namemap_method);
|
||||
|
||||
#ifndef FIPS_MODE
|
||||
#ifndef FIPS_MODULE
|
||||
if (namemap != NULL && ossl_namemap_empty(namemap)) {
|
||||
/* Before pilfering, we make sure the legacy database is populated */
|
||||
OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue