Initialize the PSA Crypto API if requested (#514)
This commit is contained in:
parent
dc8807ec9d
commit
1d210c0139
@ -110,6 +110,7 @@ If your company or project is using this library, feel free to open an issue or
|
|||||||
- [Abaddon](https://github.com/uowuo/abaddon), An alternative Discord client made with C++/gtkmm
|
- [Abaddon](https://github.com/uowuo/abaddon), An alternative Discord client made with C++/gtkmm
|
||||||
- [NovaCoin](https://github.com/novacoin-project/novacoin), a hybrid scrypt PoW + PoS based cryptocurrency.
|
- [NovaCoin](https://github.com/novacoin-project/novacoin), a hybrid scrypt PoW + PoS based cryptocurrency.
|
||||||
- [Candy](https://github.com/lanthora/candy), A WebSocket and TUN based VPN for Linux
|
- [Candy](https://github.com/lanthora/candy), A WebSocket and TUN based VPN for Linux
|
||||||
|
- [ITGmania](https://github.com/itgmania/itgmania), a cross platform Dance Dance Revolution-like emulator.
|
||||||
|
|
||||||
## Alternative libraries
|
## Alternative libraries
|
||||||
|
|
||||||
|
@ -47,6 +47,12 @@ namespace ix
|
|||||||
mbedtls_x509_crt_init(&_cacert);
|
mbedtls_x509_crt_init(&_cacert);
|
||||||
mbedtls_x509_crt_init(&_cert);
|
mbedtls_x509_crt_init(&_cert);
|
||||||
mbedtls_pk_init(&_pkey);
|
mbedtls_pk_init(&_pkey);
|
||||||
|
// Initialize the PSA Crypto API if requested.
|
||||||
|
// This allows the X.509/TLS libraries to use PSA for crypto operations.
|
||||||
|
// See: https://github.com/Mbed-TLS/mbedtls/blob/development/docs/use-psa-crypto.md
|
||||||
|
#if defined(IXWEBSOCKET_MBEDTLS_USE_PSA_CRYPTO)
|
||||||
|
psa_crypto_init();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SocketMbedTLS::loadSystemCertificates(std::string& errorMsg)
|
bool SocketMbedTLS::loadSystemCertificates(std::string& errorMsg)
|
||||||
|
Loading…
Reference in New Issue
Block a user