mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-29 16:42:13 +01:00
Code review feedback
This commit is contained in:
@@ -16018,7 +16018,7 @@ void wolfSSL_CTX_set_default_passwd_cb_userdata(WOLFSSL_CTX* ctx,
|
||||
|
||||
\sa wolfSSL_set_scr_check_enabled
|
||||
*/
|
||||
byte wolfSSL_get_scr_check_enabled(WOLFSSL* ssl);
|
||||
int wolfSSL_get_scr_check_enabled(const WOLFSSL* ssl);
|
||||
|
||||
/*!
|
||||
\ingroup Setup
|
||||
|
||||
@@ -18110,7 +18110,7 @@ int DoHandShakeMsgType(WOLFSSL* ssl, byte* input, word32* inOutIdx,
|
||||
|
||||
#if !defined(HAVE_SECURE_RENEGOTIATION)
|
||||
if (ssl->options.handShakeState == HANDSHAKE_DONE && type == client_hello &&
|
||||
ssl->options.side == WOLFSSL_SERVER_END){
|
||||
ssl->options.side == WOLFSSL_SERVER_END) {
|
||||
WOLFSSL_MSG("Renegotiation request rejected");
|
||||
SendAlert(ssl, alert_fatal, no_renegotiation);
|
||||
WOLFSSL_ERROR_VERBOSE(SECURE_RENEGOTIATION_E);
|
||||
|
||||
@@ -4222,7 +4222,7 @@ long wolfSSL_SSL_get_secure_renegotiation_support(WOLFSSL* ssl)
|
||||
|
||||
#if !defined(NO_WOLFSSL_CLIENT) && !defined(WOLFSSL_NO_TLS12) && \
|
||||
defined(WOLFSSL_HARDEN_TLS) && !defined(WOLFSSL_HARDEN_TLS_NO_SCR_CHECK)
|
||||
WOLFSSL_API int wolfSSL_get_scr_check_enabled(WOLFSSL* ssl)
|
||||
WOLFSSL_API int wolfSSL_get_scr_check_enabled(const WOLFSSL* ssl)
|
||||
{
|
||||
WOLFSSL_ENTER("wolfSSL_get_scr_check_enabled");
|
||||
|
||||
|
||||
@@ -4733,7 +4733,7 @@ WOLFSSL_API long wolfSSL_SSL_get_secure_renegotiation_support(WOLFSSL* ssl);
|
||||
|
||||
#if !defined(NO_WOLFSSL_CLIENT) && !defined(WOLFSSL_NO_TLS12) && \
|
||||
defined(WOLFSSL_HARDEN_TLS) && !defined(WOLFSSL_HARDEN_TLS_NO_SCR_CHECK)
|
||||
WOLFSSL_API int wolfSSL_get_scr_check_enabled(WOLFSSL* ssl);
|
||||
WOLFSSL_API int wolfSSL_get_scr_check_enabled(const WOLFSSL* ssl);
|
||||
WOLFSSL_API int wolfSSL_set_scr_check_enabled(WOLFSSL* ssl, byte enabled);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user