mirror of
https://github.com/cuberite/polarssl.git
synced 2025-10-19 13:23:28 -04:00
Add missing PSA init
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
1bdd76e950
commit
46712c644e
@ -78,7 +78,7 @@ void pk_parse_public_keyfile_ec(char *key_file, int result)
|
|||||||
int res;
|
int res;
|
||||||
|
|
||||||
mbedtls_pk_init(&ctx);
|
mbedtls_pk_init(&ctx);
|
||||||
USE_PSA_INIT();
|
MD_PSA_INIT();
|
||||||
|
|
||||||
res = mbedtls_pk_parse_public_keyfile(&ctx, key_file);
|
res = mbedtls_pk_parse_public_keyfile(&ctx, key_file);
|
||||||
|
|
||||||
@ -99,7 +99,7 @@ void pk_parse_public_keyfile_ec(char *key_file, int result)
|
|||||||
|
|
||||||
exit:
|
exit:
|
||||||
mbedtls_pk_free(&ctx);
|
mbedtls_pk_free(&ctx);
|
||||||
USE_PSA_DONE();
|
MD_PSA_DONE();
|
||||||
}
|
}
|
||||||
/* END_CASE */
|
/* END_CASE */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user