From 3d158ebd2f4c4f07d80a025462d6bea7b14efa47 Mon Sep 17 00:00:00 2001 From: Janos Follath Date: Tue, 30 Jul 2019 12:39:25 +0100 Subject: [PATCH] Update KEYPAIR macros to PSA 1.0 --- library/ssl_cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/ssl_cli.c b/library/ssl_cli.c index f1bf7046a..41e19ebf5 100644 --- a/library/ssl_cli.c +++ b/library/ssl_cli.c @@ -3271,7 +3271,7 @@ static int ssl_write_client_key_exchange( mbedtls_ssl_context *ssl ) /* Generate ECDH private key. */ status = psa_generate_key( handshake->ecdh_psa_privkey, - PSA_KEY_TYPE_ECC_KEYPAIR( handshake->ecdh_psa_curve ), + PSA_KEY_TYPE_ECC_KEY_PAIR( handshake->ecdh_psa_curve ), MBEDTLS_PSA_ECC_KEY_BITS_OF_CURVE( handshake->ecdh_psa_curve ), NULL, 0 ); if( status != PSA_SUCCESS )