aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2022-02-22 20:09:31 +0000
committerAndreas Beeker <kiwiwings@apache.org>2022-02-22 20:09:31 +0000
commit63f2572c622ea694018ac5e437bc61252cc091ad (patch)
tree0fb00b9ba9ebb0072a9a474123bdffc62279d14d
parentd5c13ec43c2f4145e11da69f6841053c62a355c1 (diff)
downloadpoi-63f2572c622ea694018ac5e437bc61252cc091ad.tar.gz
poi-63f2572c622ea694018ac5e437bc61252cc091ad.zip
fix SSL->TLS and LOG typo
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898328 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--poi-ooxml/src/main/java/org/apache/poi/poifs/crypt/dsig/services/TimeStampSimpleHttpClient.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/poi-ooxml/src/main/java/org/apache/poi/poifs/crypt/dsig/services/TimeStampSimpleHttpClient.java b/poi-ooxml/src/main/java/org/apache/poi/poifs/crypt/dsig/services/TimeStampSimpleHttpClient.java
index 427bdff7bf..f112f48d98 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/poifs/crypt/dsig/services/TimeStampSimpleHttpClient.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/poifs/crypt/dsig/services/TimeStampSimpleHttpClient.java
@@ -54,7 +54,7 @@ public class TimeStampSimpleHttpClient implements TimeStampHttpClient {
protected static final String BASIC_AUTH = "Authorization";
protected static final String REDIRECT_LOCATION = "Location";
- private static final Logger LOG = LogManager.getLogger(TSPTimeStampService.class);
+ private static final Logger LOG = LogManager.getLogger(TimeStampSimpleHttpClient.class);
// how large a timestamp response is expected to be
// can be overwritten via IOUtils.setByteArrayMaxOverride()
@@ -265,7 +265,7 @@ public class TimeStampSimpleHttpClient implements TimeStampHttpClient {
HttpsURLConnection conns = (HttpsURLConnection)conn;
try {
- SSLContext sc = SSLContext.getInstance("SSL");
+ SSLContext sc = SSLContext.getInstance("TLS");
sc.init(null, new TrustManager[]{new UnsafeTrustManager()}, RandomSingleton.getInstance());
conns.setSSLSocketFactory(sc.getSocketFactory());
conns.setHostnameVerifier((hostname, session) -> true);