mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-30 12:34:22 +01:00
replace memcpy of structure with regular assignment
Signed-off-by: Steven Cooreman <steven.cooreman@silabs.com>
This commit is contained in:
parent
ffc7fc9b71
commit
649a8f4301
@ -321,14 +321,8 @@ static psa_status_t psa_load_builtin_key_into_slot( psa_key_slot_t *slot )
|
|||||||
if( status != PSA_SUCCESS )
|
if( status != PSA_SUCCESS )
|
||||||
goto exit;
|
goto exit;
|
||||||
|
|
||||||
/* Copy core attributes into the slot on success.
|
/* Copy core attributes into the slot on success */
|
||||||
* Use static allocations to make the compiler yell at us should one
|
slot->attr = attributes.core;
|
||||||
* of the two structures change type. */
|
|
||||||
psa_core_key_attributes_t* builtin_key_core_attributes = &attributes.core;
|
|
||||||
psa_core_key_attributes_t* slot_core_attributes = &slot->attr;
|
|
||||||
memcpy( slot_core_attributes,
|
|
||||||
builtin_key_core_attributes,
|
|
||||||
sizeof( psa_core_key_attributes_t ) );
|
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
mbedtls_free( key_buffer );
|
mbedtls_free( key_buffer );
|
||||||
|
Loading…
Reference in New Issue
Block a user