You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by as...@apache.org on 2007/03/13 10:40:35 UTC
svn commit: r517613 -
/webservices/synapse/trunk/java/modules/nhttp/src/org/apache/axis2/transport/nhttp/HttpCoreNIOSSLSender.java
Author: asankha
Date: Tue Mar 13 02:40:34 2007
New Revision: 517613
URL: http://svn.apache.org/viewvc?view=rev&rev=517613
Log:
fix spelling (and hence functional) issue in picking up the correct hostname verifier
Modified:
webservices/synapse/trunk/java/modules/nhttp/src/org/apache/axis2/transport/nhttp/HttpCoreNIOSSLSender.java
Modified: webservices/synapse/trunk/java/modules/nhttp/src/org/apache/axis2/transport/nhttp/HttpCoreNIOSSLSender.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/nhttp/src/org/apache/axis2/transport/nhttp/HttpCoreNIOSSLSender.java?view=diff&rev=517613&r1=517612&r2=517613
==============================================================================
--- webservices/synapse/trunk/java/modules/nhttp/src/org/apache/axis2/transport/nhttp/HttpCoreNIOSSLSender.java (original)
+++ webservices/synapse/trunk/java/modules/nhttp/src/org/apache/axis2/transport/nhttp/HttpCoreNIOSSLSender.java Tue Mar 13 02:40:34 2007
@@ -140,13 +140,14 @@
if (hostnameVerifier != null) {
if ("Strict".equals(hostnameVerifier.getValue())) {
valid = HostnameVerifier.STRICT.verify(address, session);
- } else if ("Allowall".equals(hostnameVerifier.getValue())) {
- valid = HostnameVerifier.STRICT.verify(address, session);
+ } else if ("AllowAll".equals(hostnameVerifier.getValue())) {
+ valid = HostnameVerifier.ALLOW_ALL.verify(address, session);
} else if ("DefaultAndLocalhost".equals(hostnameVerifier.getValue())) {
valid = HostnameVerifier.DEFAULT_AND_LOCALHOST.verify(address, session);
}
+ } else {
+ valid = HostnameVerifier.DEFAULT.verify(address, session);
}
- valid = HostnameVerifier.DEFAULT.verify(address, session);
if (!valid) {
throw new SSLException("Host name verification failed for host : " + address);
---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org