Skip to content

Commit

Permalink
Move define out of spdm_lib_config
Browse files Browse the repository at this point in the history
Fix DMTF#2741.

Signed-off-by: Steven Bellock <[email protected]>
  • Loading branch information
steven-bellock committed Jun 28, 2024
1 parent 4b0a3c5 commit c7ec2a7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions include/library/spdm_lib_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@
#ifndef LIBSPDM_MAX_MEASUREMENT_RECORD_SIZE
#define LIBSPDM_MAX_MEASUREMENT_RECORD_SIZE 0x1000
#endif
#ifndef LIBSPDM_MAX_MEASUREMENT_EXTENSION_LOG_SIZE
#define LIBSPDM_MAX_MEASUREMENT_EXTENSION_LOG_SIZE 0x1000
#endif

/* Partial certificates can be retrieved from a Requester or Responder and through multiple messages
* the complete certificate chain can be constructed. This value specifies the maximum size,
Expand Down
1 change: 1 addition & 0 deletions os_stub/spdm_device_secret_lib_sample/lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ uint8_t m_libspdm_rsa4096_req_d[] = LIBSPDM_RSA4096_REQ_D;

#if LIBSPDM_ENABLE_CAPABILITY_MEL_CAP

#define LIBSPDM_MAX_MEASUREMENT_EXTENSION_LOG_SIZE 0x1000
uint8_t m_libspdm_mel[LIBSPDM_MAX_MEASUREMENT_EXTENSION_LOG_SIZE];

#endif /* LIBSPDM_ENABLE_CAPABILITY_MEL_CAP */
Expand Down
2 changes: 2 additions & 0 deletions unit_test/test_spdm_requester/get_measurement_extension_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

#if LIBSPDM_ENABLE_CAPABILITY_MEL_CAP

#define LIBSPDM_MAX_MEASUREMENT_EXTENSION_LOG_SIZE 0x1000

uint8_t m_libspdm_mel_test[LIBSPDM_MAX_MEASUREMENT_EXTENSION_LOG_SIZE];
size_t m_libspdm_mel_len;
uint8_t m_libspdm_mel_number;
Expand Down

0 comments on commit c7ec2a7

Please sign in to comment.