Skip to content

Commit

Permalink
Merge pull request #4474 from randombit/fix/tpm2_crypto_backend_for_t…
Browse files Browse the repository at this point in the history
…ss_410

FIX: order of structure initialization
  • Loading branch information
reneme authored Dec 11, 2024
2 parents 6301a69 + 224b820 commit 281c779
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -877,12 +877,12 @@ void set_crypto_callbacks(ESYS_CONTEXT* ctx, void* callback_state) {
.get_ecdh_point = &get_ecdh_point,
.aes_encrypt = &aes_encrypt,
.aes_decrypt = &aes_decrypt,
.init = &init,
.userdata = callback_state,
#if defined(BOTAN_TSS2_SUPPORTS_SM4_IN_CRYPTO_CALLBACKS)
.sm4_encrypt = &sm4_encrypt,
.sm4_decrypt = &sm4_decrypt,
#endif
.init = &init,
.userdata = callback_state,
};
// clang-format on

Expand Down

0 comments on commit 281c779

Please sign in to comment.