mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-28 19:09:54 +01:00
This method requires some explanation. Its sibling is int SetSSL_CTX(WOLFSSL* ssl, WOLFSSL_CTX* ctx, int writeDup) which re-inits the WOLFSSL* with all settings in the new CTX. That one is the right one to use *before* a handshake is started. This method was added by OpenSSL to be used *during* the handshake, e.g. when a server inspects the SNI in a ClientHello callback and decides which set of certificates to use. Since, at the time the SNI callback is run, some decisions on Extensions or the ServerHello might already have been taken, this method is very restricted in what it does: - changing the server certificate(s) - changing the server id for session handling and everything else in WOLFSSL* needs to remain untouched.
Before creating any new configure files (.conf) read the CONF_FILES_README.md