Skip to content

Commit 330b9a4

Browse files
author
Hanno Becker
committed
PSA: Adapt ssl_server2 to modified key allocation API
1 parent f3adecf commit 330b9a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

programs/ssl/ssl_server2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2667,7 +2667,7 @@ int main( int argc, char *argv[] )
26672667
#if defined(MBEDTLS_USE_PSA_CRYPTO)
26682668
if( opt.psk_opaque != 0 )
26692669
{
2670-
status = psa_allocate_key( PSA_KEY_TYPE_DERIVE, psk_len * 8, &psk_slot );
2670+
status = psa_allocate_key( &psk_slot );
26712671
if( status != PSA_SUCCESS )
26722672
{
26732673
fprintf( stderr, "ALLOC FAIL\n" );
@@ -2711,7 +2711,7 @@ int main( int argc, char *argv[] )
27112711
psk_entry *cur_psk;
27122712
for( cur_psk = psk_info; cur_psk != NULL; cur_psk = cur_psk->next )
27132713
{
2714-
status = psa_allocate_key( PSA_KEY_TYPE_DERIVE, cur_psk->key_len * 8, &cur_psk->slot );
2714+
status = psa_allocate_key( &cur_psk->slot );
27152715
if( status != PSA_SUCCESS )
27162716
{
27172717
ret = MBEDTLS_ERR_SSL_HW_ACCEL_FAILED;

0 commit comments

Comments
 (0)