Skip to content

Commit 8cee530

Browse files
steven-bellockjyao1
authored andcommitted
Algorithm bitmasks are not booleans
Signed-off-by: Steven Bellock <[email protected]>
1 parent 2c4d949 commit 8cee530

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: library/spdm_requester_lib/libspdm_req_negotiate_algorithms.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -111,16 +111,16 @@ static libspdm_return_t libspdm_try_negotiate_algorithms(libspdm_context_t *spdm
111111
spdm_request->header.spdm_version = libspdm_get_connection_version (spdm_context);
112112
if (spdm_request->header.spdm_version >= SPDM_MESSAGE_VERSION_11) {
113113
/* 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) {
115115
req_param1++;
116116
}
117-
if (spdm_context->local_context.algorithm.aead_cipher_suite) {
117+
if (spdm_context->local_context.algorithm.aead_cipher_suite != 0) {
118118
req_param1++;
119119
}
120-
if (spdm_context->local_context.algorithm.req_base_asym_alg) {
120+
if (spdm_context->local_context.algorithm.req_base_asym_alg != 0) {
121121
req_param1++;
122122
}
123-
if (spdm_context->local_context.algorithm.key_schedule) {
123+
if (spdm_context->local_context.algorithm.key_schedule != 0) {
124124
req_param1++;
125125
}
126126
LIBSPDM_ASSERT(req_param1 <=

0 commit comments

Comments
 (0)