Path: blob/master/thirdparty/mbedtls/patches/0001-msvc-2019-psa-redeclaration.patch
22467 views
diff --git a/thirdparty/README.md b/thirdparty/README.md1index 49c24897ca..48aab56b70 1006442--- a/thirdparty/README.md3+++ b/thirdparty/README.md4@@ -654,7 +654,7 @@ File extracted from upstream source:5## mbedtls67- Upstream: https://github.com/Mbed-TLS/mbedtls8-- Version: 3.6.4 (c765c831e5c2a0971410692f92f7a81d6ec65ec2, 2025)9+- Version: 3.6.5 (e185d7fd85499c8ce5ca2a54f5cf8fe7dbe3f8df, 2025)10- License: Apache 2.01112File extracted from upstream release tarball:13diff --git a/thirdparty/mbedtls/include/psa/crypto.h b/thirdparty/mbedtls/include/psa/crypto.h14index 2fe9f35ec3..ed7da26276 10064415--- a/thirdparty/mbedtls/include/psa/crypto.h16+++ b/thirdparty/mbedtls/include/psa/crypto.h17@@ -119,7 +119,9 @@ psa_status_t psa_crypto_init(void);1819/** Return an initial value for a key attributes structure.20*/21+#if !(defined(__cplusplus) && defined(_MSC_VER))22static psa_key_attributes_t psa_key_attributes_init(void);23+#endif2425/** Declare a key as persistent and set its key identifier.26*27@@ -348,7 +350,9 @@ static void psa_set_key_bits(psa_key_attributes_t *attributes,28*29* \return The key type stored in the attribute structure.30*/31+#if !(defined(__cplusplus) && defined(_MSC_VER))32static psa_key_type_t psa_get_key_type(const psa_key_attributes_t *attributes);33+#endif3435/** Retrieve the key size from key attributes.36*37@@ -951,7 +955,9 @@ typedef struct psa_hash_operation_s psa_hash_operation_t;3839/** Return an initial value for a hash operation object.40*/41+#if !(defined(__cplusplus) && defined(_MSC_VER))42static psa_hash_operation_t psa_hash_operation_init(void);43+#endif4445/** Set up a multipart hash operation.46*47@@ -1310,7 +1316,9 @@ typedef struct psa_mac_operation_s psa_mac_operation_t;4849/** Return an initial value for a MAC operation object.50*/51+#if !(defined(__cplusplus) && defined(_MSC_VER))52static psa_mac_operation_t psa_mac_operation_init(void);53+#endif5455/** Set up a multipart MAC calculation operation.56*57@@ -1723,7 +1731,9 @@ typedef struct psa_cipher_operation_s psa_cipher_operation_t;5859/** Return an initial value for a cipher operation object.60*/61+#if !(defined(__cplusplus) && defined(_MSC_VER))62static psa_cipher_operation_t psa_cipher_operation_init(void);63+#endif6465/** Set the key for a multipart symmetric encryption operation.66*67@@ -2241,7 +2251,9 @@ typedef struct psa_aead_operation_s psa_aead_operation_t;6869/** Return an initial value for an AEAD operation object.70*/71+#if !(defined(__cplusplus) && defined(_MSC_VER))72static psa_aead_operation_t psa_aead_operation_init(void);73+#endif7475/** Set the key for a multipart authenticated encryption operation.76*77@@ -3228,7 +3240,9 @@ typedef struct psa_key_derivation_s psa_key_derivation_operation_t;7879/** Return an initial value for a key derivation operation object.80*/81+#if !(defined(__cplusplus) && defined(_MSC_VER))82static psa_key_derivation_operation_t psa_key_derivation_operation_init(void);83+#endif8485/** Set up a key derivation operation.86*87diff --git a/thirdparty/mbedtls/include/psa/crypto_extra.h b/thirdparty/mbedtls/include/psa/crypto_extra.h88index a710397a77..7a9811bb65 10064489--- a/thirdparty/mbedtls/include/psa/crypto_extra.h90+++ b/thirdparty/mbedtls/include/psa/crypto_extra.h91@@ -1191,7 +1191,9 @@ typedef struct psa_pake_cipher_suite_s psa_pake_cipher_suite_t;9293/** Return an initial value for a PAKE cipher suite object.94*/95+#if !(defined(__cplusplus) && defined(_MSC_VER))96static psa_pake_cipher_suite_t psa_pake_cipher_suite_init(void);97+#endif9899/** Retrieve the PAKE algorithm from a PAKE cipher suite.100*101@@ -1330,7 +1332,9 @@ typedef struct psa_jpake_computation_stage_s psa_jpake_computation_stage_t;102103/** Return an initial value for a PAKE operation object.104*/105+#if !(defined(__cplusplus) && defined(_MSC_VER))106static psa_pake_operation_t psa_pake_operation_init(void);107+#endif108109/** Get the length of the password in bytes from given inputs.110*111112113