hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1561331 - /httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/conn/ssl/SSLContexts.java
Date Sat, 25 Jan 2014 16:18:05 GMT
Author: olegk
Date: Sat Jan 25 16:18:05 2014
New Revision: 1561331

URL: http://svn.apache.org/r1561331
Log:
Use Java 1.6 method to obtain default system SSLContext

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/conn/ssl/SSLContexts.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/conn/ssl/SSLContexts.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/conn/ssl/SSLContexts.java?rev=1561331&r1=1561330&r2=1561331&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/conn/ssl/SSLContexts.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/conn/ssl/SSLContexts.java
Sat Jan 25 16:18:05 2014
@@ -72,7 +72,7 @@ public class SSLContexts {
      */
     public static SSLContext createSystemDefault() throws SSLInitializationException {
         try {
-            return SSLContext.getInstance("Default");
+            return SSLContext.getDefault();
         } catch (final NoSuchAlgorithmException ex) {
             return createDefault();
         }



Mime
View raw message