You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by mi...@apache.org on 2023/06/26 16:00:56 UTC
[tomcat-native] branch main updated: Trim trailing whitespace
This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat-native.git
The following commit(s) were added to refs/heads/main by this push:
new 3fbe5615c Trim trailing whitespace
3fbe5615c is described below
commit 3fbe5615c3350c21cdca2a84ba44888a58129aad
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Mon Jun 26 18:00:16 2023 +0200
Trim trailing whitespace
---
native/src/sslconf.c | 2 +-
native/src/sslcontext.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/native/src/sslconf.c b/native/src/sslconf.c
index a3b8cfdfd..e5b18a7ce 100644
--- a/native/src/sslconf.c
+++ b/native/src/sslconf.c
@@ -263,7 +263,7 @@ TCN_IMPLEMENT_CALL(jint, SSLConf, apply)(TCN_STDARGS, jlong cctx,
c->no_ocsp_check = 1;
TCN_FREE_CSTRING(cmd);
TCN_FREE_CSTRING(value);
- return 1;
+ return 1;
}
SSL_ERR_clear();
rc = SSL_CONF_cmd(c->cctx, J2S(cmd), buf != NULL ? buf : J2S(value));
diff --git a/native/src/sslcontext.c b/native/src/sslcontext.c
index 7305d72ae..73446a95d 100644
--- a/native/src/sslcontext.c
+++ b/native/src/sslcontext.c
@@ -141,7 +141,7 @@ int ssl_callback_ClientHello(SSL *ssl, int *al, void *arg)
const unsigned char *pos;
size_t len, remaining;
tcn_ssl_ctxt_t *c = (tcn_ssl_ctxt_t *) arg;
-
+
(*javavm)->AttachCurrentThread(javavm, (void **)&env, NULL);
// Continue only if the static method exists
if (sni_java_callback == NULL) {
@@ -161,7 +161,7 @@ int ssl_callback_ClientHello(SSL *ssl, int *al, void *arg)
*/
if (!SSL_client_hello_get0_ext(ssl, TLSEXT_TYPE_server_name, &pos,
&remaining)
- || remaining <= 2)
+ || remaining <= 2)
goto give_up;
/* Extract the length of the supplied list of names. */
@@ -221,7 +221,7 @@ give_up:
SSL_set_session_id_context(ssl, &(c->context_id[0]), sizeof c->context_id);
}
}
-
+
}
return SSL_CLIENT_HELLO_SUCCESS;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org