mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-05-10 08:59:05 +08:00
Replace deprecated functions
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com>
This commit is contained in:
parent
5e2f816c39
commit
947ff56c45
@ -1611,7 +1611,7 @@ int mbedtls_ssl_tls13_generate_and_write_dhe_key_exchange(
|
|||||||
status = psa_generate_key(&key_attributes,
|
status = psa_generate_key(&key_attributes,
|
||||||
&handshake->ecdh_psa_privkey);
|
&handshake->ecdh_psa_privkey);
|
||||||
if (status != PSA_SUCCESS) {
|
if (status != PSA_SUCCESS) {
|
||||||
ret = psa_ssl_status_to_mbedtls(status);
|
ret = PSA_TO_MBEDTLS_ERR(status);
|
||||||
MBEDTLS_SSL_DEBUG_RET(1, "psa_generate_key", ret);
|
MBEDTLS_SSL_DEBUG_RET(1, "psa_generate_key", ret);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
@ -1622,7 +1622,7 @@ int mbedtls_ssl_tls13_generate_and_write_dhe_key_exchange(
|
|||||||
buf, PSA_BITS_TO_BYTES(ffdh_bits),
|
buf, PSA_BITS_TO_BYTES(ffdh_bits),
|
||||||
&own_pubkey_len);
|
&own_pubkey_len);
|
||||||
if (status != PSA_SUCCESS) {
|
if (status != PSA_SUCCESS) {
|
||||||
ret = psa_ssl_status_to_mbedtls(status);
|
ret = PSA_TO_MBEDTLS_ERR(status);
|
||||||
MBEDTLS_SSL_DEBUG_RET(1, "psa_export_public_key", ret);
|
MBEDTLS_SSL_DEBUG_RET(1, "psa_export_public_key", ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user