1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

fix: additional MSVC v142 build issue with tls1.3 configuration enabled.

Signed-off-by: Cesar Cruz <cesar.cruz@philips.com>
Signed-off-by: ccrugoPhilips <cesar.cruz@philips.com>
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
Ronald Cron
2025-06-18 10:02:01 +02:00
parent d1f51696a6
commit 7df899211a

View File

@ -663,7 +663,7 @@ psa_status_t psa_reserve_free_key_slot(psa_key_id_t *volatile_key_id,
/* Refresh slot_idx, for when the slot is not the original /* Refresh slot_idx, for when the slot is not the original
* selected_slot but rather unused_persistent_key_slot. */ * selected_slot but rather unused_persistent_key_slot. */
slot_idx = selected_slot - global_data.key_slots; slot_idx = selected_slot - global_data.key_slots;
*volatile_key_id = PSA_KEY_ID_VOLATILE_MIN + slot_idx; *volatile_key_id = PSA_KEY_ID_VOLATILE_MIN + (psa_key_id_t) slot_idx;
} }
#endif #endif
*p_slot = selected_slot; *p_slot = selected_slot;