Skip to content

Commit 8520918

Browse files
committed
Initialize the PSA Crypto API if requested
1 parent dc8807e commit 8520918

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ If your company or project is using this library, feel free to open an issue or
110110
- [Abaddon](https://github.com/uowuo/abaddon), An alternative Discord client made with C++/gtkmm
111111
- [NovaCoin](https://github.com/novacoin-project/novacoin), a hybrid scrypt PoW + PoS based cryptocurrency.
112112
- [Candy](https://github.com/lanthora/candy), A WebSocket and TUN based VPN for Linux
113+
- [ITGmania](https://github.com/itgmania/itgmania), a cross platform Dance Dance Revolution-like emulator.
113114

114115
## Alternative libraries
115116

ixwebsocket/IXSocketMbedTLS.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ namespace ix
4747
mbedtls_x509_crt_init(&_cacert);
4848
mbedtls_x509_crt_init(&_cert);
4949
mbedtls_pk_init(&_pkey);
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
5056
}
5157

5258
bool SocketMbedTLS::loadSystemCertificates(std::string& errorMsg)

0 commit comments

Comments
 (0)