We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d47af8 commit 3996dc7Copy full SHA for 3996dc7
ixwebsocket/IXSocketMbedTLS.cpp
@@ -50,9 +50,10 @@ namespace ix
50
// Initialize the PSA Crypto API if requested.
51
// This allows the X.509/TLS libraries to use PSA for crypto operations.
52
// See: https://github.com/Mbed-TLS/mbedtls/blob/development/docs/use-psa-crypto.md
53
- #if defined(IXWEBSOCKET_MBEDTLS_USE_PSA_CRYPTO)
54
- psa_crypto_init();
55
- #endif
+ if (MBEDTLS_VERSION_MAJOR >= 3 && MBEDTLS_VERSION_MINOR >= 6 && MBEDTLS_VERSION_PATCH >= 0)
+ {
+ psa_crypto_init();
56
+ }
57
}
58
59
bool SocketMbedTLS::loadSystemCertificates(std::string& errorMsg)
0 commit comments