mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-30 02:22:13 +01:00
set PSK at the beginning
This commit is contained in:
@@ -1873,6 +1873,14 @@ int InitSSL_Ctx(WOLFSSL_CTX* ctx, WOLFSSL_METHOD* method, void* heap)
|
||||
ctx->noPskDheKe = 1;
|
||||
#endif
|
||||
|
||||
#if defined(WOLFSSL_QT)
|
||||
/* Qt retrieves supported cipher list at initialization
|
||||
* from get_cipher_compat().
|
||||
* Qt doesn't not allow to use a cipher if it is not in the supported list.
|
||||
* Therefore, we need to enable PSK cipher at the beginning.
|
||||
*/
|
||||
ctx->havePSK = 1;
|
||||
#endif
|
||||
ctx->heap = heap; /* wolfSSL_CTX_load_static_memory sets */
|
||||
|
||||
#ifdef HAVE_WOLF_EVENT
|
||||
|
||||
Reference in New Issue
Block a user