zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anmolnar <...@git.apache.org>
Subject [GitHub] zookeeper pull request #678: ZOOKEEPER-3173: Quorum TLS - support PEM trust/...
Date Mon, 29 Oct 2018 15:20:47 GMT
Github user anmolnar commented on a diff in the pull request:

    https://github.com/apache/zookeeper/pull/678#discussion_r228957739
  
    --- Diff: zookeeper-server/src/main/java/org/apache/zookeeper/common/X509Util.java ---
    @@ -167,47 +222,50 @@ public SSLContext createSSLContext(ZKConfig config) throws SSLContextException
{
             KeyManager[] keyManagers = null;
             TrustManager[] trustManagers = null;
     
    -        String keyStoreLocationProp = config.getProperty(sslKeystoreLocationProperty);
    -        String keyStorePasswordProp = config.getProperty(sslKeystorePasswdProperty);
    +        String keyStoreLocationProp = config.getProperty(sslKeystoreLocationProperty,
"");
    --- End diff --
    
    Why do you need an empty string default value instead of checking for null?


---

Mime
View raw message