File tree 1 file changed +4
-4
lines changed
library/spdm_requester_lib
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -111,16 +111,16 @@ static libspdm_return_t libspdm_try_negotiate_algorithms(libspdm_context_t *spdm
111
111
spdm_request -> header .spdm_version = libspdm_get_connection_version (spdm_context );
112
112
if (spdm_request -> header .spdm_version >= SPDM_MESSAGE_VERSION_11 ) {
113
113
/* Number of Algorithms Structure Tables based on supported algorithms */
114
- if (spdm_context -> local_context .algorithm .dhe_named_group ) {
114
+ if (spdm_context -> local_context .algorithm .dhe_named_group != 0 ) {
115
115
req_param1 ++ ;
116
116
}
117
- if (spdm_context -> local_context .algorithm .aead_cipher_suite ) {
117
+ if (spdm_context -> local_context .algorithm .aead_cipher_suite != 0 ) {
118
118
req_param1 ++ ;
119
119
}
120
- if (spdm_context -> local_context .algorithm .req_base_asym_alg ) {
120
+ if (spdm_context -> local_context .algorithm .req_base_asym_alg != 0 ) {
121
121
req_param1 ++ ;
122
122
}
123
- if (spdm_context -> local_context .algorithm .key_schedule ) {
123
+ if (spdm_context -> local_context .algorithm .key_schedule != 0 ) {
124
124
req_param1 ++ ;
125
125
}
126
126
LIBSPDM_ASSERT (req_param1 <=
You can’t perform that action at this time.
0 commit comments