Skip to content

Commit 1103552

Browse files
Code review feedback
1 parent d60dd53 commit 1103552

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

doc/dox_comments/header_files/ssl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16018,7 +16018,7 @@ void wolfSSL_CTX_set_default_passwd_cb_userdata(WOLFSSL_CTX* ctx,
1601816018

1601916019
\sa wolfSSL_set_scr_check_enabled
1602016020
*/
16021-
byte wolfSSL_get_scr_check_enabled(WOLFSSL* ssl);
16021+
int wolfSSL_get_scr_check_enabled(const WOLFSSL* ssl);
1602216022

1602316023
/*!
1602416024
\ingroup Setup

src/internal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18110,7 +18110,7 @@ int DoHandShakeMsgType(WOLFSSL* ssl, byte* input, word32* inOutIdx,
1811018110

1811118111
#if !defined(HAVE_SECURE_RENEGOTIATION)
1811218112
if (ssl->options.handShakeState == HANDSHAKE_DONE && type == client_hello &&
18113-
ssl->options.side == WOLFSSL_SERVER_END){
18113+
ssl->options.side == WOLFSSL_SERVER_END) {
1811418114
WOLFSSL_MSG("Renegotiation request rejected");
1811518115
SendAlert(ssl, alert_fatal, no_renegotiation);
1811618116
WOLFSSL_ERROR_VERBOSE(SECURE_RENEGOTIATION_E);

src/ssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4222,7 +4222,7 @@ long wolfSSL_SSL_get_secure_renegotiation_support(WOLFSSL* ssl)
42224222

42234223
#if !defined(NO_WOLFSSL_CLIENT) && !defined(WOLFSSL_NO_TLS12) && \
42244224
defined(WOLFSSL_HARDEN_TLS) && !defined(WOLFSSL_HARDEN_TLS_NO_SCR_CHECK)
4225-
WOLFSSL_API int wolfSSL_get_scr_check_enabled(WOLFSSL* ssl)
4225+
WOLFSSL_API int wolfSSL_get_scr_check_enabled(const WOLFSSL* ssl)
42264226
{
42274227
WOLFSSL_ENTER("wolfSSL_get_scr_check_enabled");
42284228

wolfssl/ssl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4733,7 +4733,7 @@ WOLFSSL_API long wolfSSL_SSL_get_secure_renegotiation_support(WOLFSSL* ssl);
47334733

47344734
#if !defined(NO_WOLFSSL_CLIENT) && !defined(WOLFSSL_NO_TLS12) && \
47354735
defined(WOLFSSL_HARDEN_TLS) && !defined(WOLFSSL_HARDEN_TLS_NO_SCR_CHECK)
4736-
WOLFSSL_API int wolfSSL_get_scr_check_enabled(WOLFSSL* ssl);
4736+
WOLFSSL_API int wolfSSL_get_scr_check_enabled(const WOLFSSL* ssl);
47374737
WOLFSSL_API int wolfSSL_set_scr_check_enabled(WOLFSSL* ssl, byte enabled);
47384738
#endif
47394739

0 commit comments

Comments
 (0)