Code review feedback

This commit is contained in:
Kareem
2026-01-22 15:46:13 -07:00
parent d60dd53165
commit 1103552c37
4 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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);

View File

@@ -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");

View File

@@ -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