summaryrefslogtreecommitdiff
path: root/SecurityPkg/DeviceSecurity/SpdmSecurityLib/SpdmConnectionInit.c
AgeCommit message (Collapse)AuthorFilesLines
2025-11-21SecurityPkg/SpdmSecurityLib: Fix incompatible pointer typesOliver Steffen1-2/+2
GCC 15 enforces stricter type checking for function pointers. When passing SPDM transport layer callbacks to libspdm_register_transport_layer_func, the function pointer types are incompatible due to differences in boolean parameter types. The EDK2 uses BOOLEAN (UINT8) while libspdm uses C99 bool (_Bool). Although these types have the same size and representation, GCC 15 treats them as incompatible. Add explicit casts to libspdm_transport_encode_message_func and libspdm_transport_decode_message_func at the call site to resolve the type mismatch. This is safe as the types have identical binary representation and the functions are only called through these pointers by libspdm. Signed-off-by: Oliver Steffen <osteffen@redhat.com> (cherry picked from commit aca8f995405b2bdc48997ce5b0daa975225164e6)
2025-06-13SecurityPkg/Spdm: Use spdmlib enums for spdmlib callsMichael D Kinney1-11/+11
Fix CLANG 20.1.0 enum conversion errors Address implied conversion between enum types by using the enum type from spdmlib and remove the enum types that are never used after this update. Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
2025-05-29SPDM related fix based on real hardware testing - SecurityPkgLiqi Qi1-0/+8
Implemented SPDM functionality on real hardware, and here is the bug fix in SecurityPkg. Signed-off-by: Liqi Qi <liqiqi@microsoft.com>
2024-04-30SecurityPkg: add DeviceSecurity supportWenxing Hou1-0/+481
This patch implement the SpdmSecurityLib, which is the core of DeviceSecurity. And the SpdmSecurityLib include Device Authentication and Measurement. The other library is to support SpdmSecurityLib. Cc: Jiewen Yao <jiewen.yao@intel.com> Signed-off-by: Wenxing Hou <wenxing.hou@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>