Skip to content

Commit

Permalink
Add FIPS 140-3 config for libspdm
Browse files Browse the repository at this point in the history
Fix the issue: #1260

Signed-off-by: Wenxing Hou <[email protected]>
  • Loading branch information
Wenxing-hou authored and jyao1 committed Jan 6, 2023
1 parent e18d385 commit 55f932e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/library/spdm_lib_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
#ifndef SPDM_LIB_CONFIG_H
#define SPDM_LIB_CONFIG_H

/*Enalbe FIPS 140-3 Level 1 for Libspdm, the default is close the FIPS mode*/
#ifndef LIBSPDM_FIPS_MODE
#define LIBSPDM_FIPS_MODE 0
#endif

/* Enables assertions and debug printing. When `LIBSPDM_DEBUG_ENABLE` is defined it overrides or
* sets the values of `LIBSPDM_DEBUG_PRINT_ENABLE`, `LIBSPDM_DEBUG_ASSERT_ENABLE`, and
* `LIBSPDM_BLOCK_ENABLE` to the value of `LIBSPDM_DEBUG_ENABLE`.
Expand Down

0 comments on commit 55f932e

Please sign in to comment.