From e17f6906efe33245c320913a767f28ff764d1399 Mon Sep 17 00:00:00 2001 From: x12xx12x <44411062+12xx12@users.noreply.github.com> Date: Fri, 8 Nov 2024 01:19:47 +0100 Subject: fixes for api changes in embedtls (#5540) * fixes for api changes in embedtls * Use mbedtls 2.28.9 * Update mbedtls to point to merged master commit. * Fix indentation style. --------- Co-authored-by: Alexander Harkness --- src/mbedTLS++/CryptoKey.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/mbedTLS++/CryptoKey.cpp') diff --git a/src/mbedTLS++/CryptoKey.cpp b/src/mbedTLS++/CryptoKey.cpp index 742d9c73c..ea01bfc80 100644 --- a/src/mbedTLS++/CryptoKey.cpp +++ b/src/mbedTLS++/CryptoKey.cpp @@ -124,15 +124,18 @@ int cCryptoKey::ParsePrivate(const void * a_Data, size_t a_NumBytes, const AStri if (a_Password.empty()) { - return mbedtls_pk_parse_key(&m_Pk, reinterpret_cast(keyData.data()), a_NumBytes + 1, nullptr, 0, mbedtls_ctr_drbg_random, m_CtrDrbg.GetInternal()); + return mbedtls_pk_parse_key( + &m_Pk, + reinterpret_cast(keyData.data()), a_NumBytes + 1, + nullptr, 0 + ); } else { return mbedtls_pk_parse_key( &m_Pk, reinterpret_cast(keyData.data()), a_NumBytes + 1, - reinterpret_cast(a_Password.c_str()), a_Password.size(), - mbedtls_ctr_drbg_random, m_CtrDrbg.GetInternal() + reinterpret_cast(a_Password.c_str()), a_Password.size() ); } } -- cgit v1.2.3