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/22 08:52:59 UTC
[tomcat-native] branch main updated: Replace tabs with spaces
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 f247f0af0 Replace tabs with spaces
f247f0af0 is described below
commit f247f0af00e17af194d183daf6239967d698e731
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Thu Jun 22 10:52:40 2023 +0200
Replace tabs with spaces
---
native/include/ssl_private.h | 6 +++---
native/src/ssl.c | 4 ++--
native/src/sslcontext.c | 4 ++--
native/src/sslutils.c | 2 +-
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/native/include/ssl_private.h b/native/include/ssl_private.h
index 091634df2..be2397053 100644
--- a/native/include/ssl_private.h
+++ b/native/include/ssl_private.h
@@ -326,9 +326,9 @@ typedef struct {
*/
} reneg_state;
enum {
- PHA_NONE = 0, /* Before PHA */
- PHA_STARTED, /* PHA req sent to client but no response */
- PHA_COMPLETE /* Client has returned cert */
+ PHA_NONE = 0, /* Before PHA */
+ PHA_STARTED, /* PHA req sent to client but no response */
+ PHA_COMPLETE /* Client has returned cert */
} pha_state;
apr_socket_t *sock;
apr_pollset_t *pollset;
diff --git a/native/src/ssl.c b/native/src/ssl.c
index a008ec44d..53ae4b4a9 100644
--- a/native/src/ssl.c
+++ b/native/src/ssl.c
@@ -538,7 +538,7 @@ TCN_IMPLEMENT_CALL(jint, SSL, initialize)(TCN_STDARGS, jstring engine)
err = APR_ENOTIMPL;
else {
#ifdef ENGINE_CTRL_CHIL_SET_FORKCHECK
- if (strcmp(J2S(engine), "chil") == 0)
+ if (strcmp(J2S(engine), "chil") == 0)
ENGINE_ctrl(ee, ENGINE_CTRL_CHIL_SET_FORKCHECK, 1, 0, 0);
#endif
if (!ENGINE_set_default(ee, ENGINE_METHOD_ALL))
@@ -665,7 +665,7 @@ TCN_IMPLEMENT_CALL(jint, SSL, fipsModeGet)(TCN_STDARGS)
if (strcmp("fips", name)) {
return 0;
} else {
- return 1;
+ return 1;
}
#endif
}
diff --git a/native/src/sslcontext.c b/native/src/sslcontext.c
index 9bd7e7657..7305d72ae 100644
--- a/native/src/sslcontext.c
+++ b/native/src/sslcontext.c
@@ -816,8 +816,8 @@ TCN_IMPLEMENT_CALL(void, SSLContext, setTmpECDHByCurveName)(TCN_STDARGS, jlong c
EC_KEY_free(ecdh);
TCN_FREE_CSTRING(curveName);
#else
- tcn_Throw(e, "Cant't configure elliptic curve: unsupported by this OpenSSL version");
- return;
+ tcn_Throw(e, "Cant't configure elliptic curve: unsupported by this OpenSSL version");
+ return;
#endif
}
diff --git a/native/src/sslutils.c b/native/src/sslutils.c
index db4486212..2194aac11 100644
--- a/native/src/sslutils.c
+++ b/native/src/sslutils.c
@@ -718,7 +718,7 @@ static char **decode_OCSP_url(ASN1_OCTET_STRING *os, apr_pool_t *p)
return NULL;
}
if (parse_ASN1_Sequence(ocsp_urls, &response, &numofresponses, p) ||
- numofresponses ==0) {
+ numofresponses ==0) {
response = NULL;
}
return response;
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org