1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Merge pull request #5007 from mprse/pk_opaque

Add key_opaque option to ssl_server2.c + test
This commit is contained in:
Manuel Pégourié-Gonnard
2021-10-27 10:52:13 +02:00
committed by GitHub
3 changed files with 94 additions and 3 deletions

View File

@ -1683,7 +1683,7 @@ int main( int argc, char *argv[] )
if( opt.key_opaque != 0 )
{
if( ( ret = mbedtls_pk_wrap_as_opaque( &pkey, &key_slot,
PSA_ALG_SHA_256 ) ) != 0 )
PSA_ALG_ANY_HASH ) ) != 0 )
{
mbedtls_printf( " failed\n ! "
"mbedtls_pk_wrap_as_opaque returned -0x%x\n\n", (unsigned int) -ret );