directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1777872 - /directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
Date Sun, 08 Jan 2017 08:38:29 GMT
Author: elecharny
Date: Sun Jan  8 08:38:28 2017
New Revision: 1777872

URL: http://svn.apache.org/viewvc?rev=1777872&view=rev
Log:
removed some stack trace, use the created TrustManager

Modified:
    directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java

Modified: directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java?rev=1777872&r1=1777871&r2=1777872&view=diff
==============================================================================
--- directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
(original)
+++ directory/shared/trunk/ldap/client/api/src/main/java/org/apache/directory/ldap/client/api/LdapNetworkConnection.java
Sun Jan  8 08:38:28 2017
@@ -3975,7 +3975,7 @@ public class LdapNetworkConnection exten
                 trustManagers = new TrustManager[] { new NoVerificationTrustManager() };
             }
             
-            sslContext.init( config.getKeyManagers(), config.getTrustManagers(), config.getSecureRandom()
);
+            sslContext.init( config.getKeyManagers(), trustManagers, config.getSecureRandom()
);
 
             SslFilter sslFilter = new SslFilter( sslContext, true );
             sslFilter.setUseClientMode( true );
@@ -4235,7 +4235,6 @@ public class LdapNetworkConnection exten
                     }
                     else
                     {
-                        exception.printStackTrace();
                         throw new InvalidConnectionException( exception.getMessage() );
                     }
                 }



Mime
View raw message