You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2007/02/08 06:05:04 UTC

svn commit: r504783 - in /webservices/axis2/trunk/c: include/axis2_const.h modules/core/clientapi/mep_client.c modules/core/deployment/conf_builder.c

Author: dinesh
Date: Wed Feb  7 21:05:03 2007
New Revision: 504783

URL: http://svn.apache.org/viewvc?view=rev&rev=504783
Log:
fixed:ssl client segfauts, axis2c-526

Modified:
    webservices/axis2/trunk/c/include/axis2_const.h
    webservices/axis2/trunk/c/modules/core/clientapi/mep_client.c
    webservices/axis2/trunk/c/modules/core/deployment/conf_builder.c

Modified: webservices/axis2/trunk/c/include/axis2_const.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_const.h?view=diff&rev=504783&r1=504782&r2=504783
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_const.h (original)
+++ webservices/axis2/trunk/c/include/axis2_const.h Wed Feb  7 21:05:03 2007
@@ -114,13 +114,14 @@
 #define AXIS2_TRANSPORT_SMTP "smtp"
 #define AXIS2_TRANSPORT_TCP "tcp"
 #define AXIS2_TRANSPORT_XMPP "xmpp"
-
+#define AXIS2_TRANSPORT_HTTPS "https"
 typedef enum
 {
     AXIS2_TRANSPORT_ENUM_HTTP = 0,
     AXIS2_TRANSPORT_ENUM_SMTP,
     AXIS2_TRANSPORT_ENUM_TCP,
     AXIS2_TRANSPORT_ENUM_XMPP,
+	AXIS2_TRANSPORT_ENUM_HTTPS,
     AXIS2_TRANSPORT_ENUM_MAX
 } AXIS2_TRANSPORT_ENUMS;
 

Modified: webservices/axis2/trunk/c/modules/core/clientapi/mep_client.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/clientapi/mep_client.c?view=diff&rev=504783&r1=504782&r2=504783
==============================================================================
--- webservices/axis2/trunk/c/modules/core/clientapi/mep_client.c (original)
+++ webservices/axis2/trunk/c/modules/core/clientapi/mep_client.c Wed Feb  7 21:05:03 2007
@@ -345,9 +345,17 @@
         axis2_conf_ctx_t *conf_ctx = NULL;
         axis2_conf_t *conf = NULL;
         axis2_transport_out_desc_t *transport_out_desc = NULL;
+		AXIS2_TRANSPORT_ENUMS transport_enum;
         
-        AXIS2_TRANSPORT_ENUMS transport_enum = 
-            (axis2_strcmp(transport, "http") == 0)?AXIS2_TRANSPORT_ENUM_HTTP:AXIS2_TRANSPORT_ENUM_MAX;
+		if (!axis2_strcmp(transport, "http"))
+		{
+			transport_enum = AXIS2_TRANSPORT_ENUM_HTTP;
+		}
+		else if (!axis2_strcmp (transport, "https"))
+		{
+			transport_enum = AXIS2_TRANSPORT_ENUM_HTTPS;
+		}
+
 
         conf_ctx = AXIS2_SVC_CTX_GET_CONF_CTX(mep_client_impl->svc_ctx, env);
         if (conf_ctx)

Modified: webservices/axis2/trunk/c/modules/core/deployment/conf_builder.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/modules/core/deployment/conf_builder.c?view=diff&rev=504783&r1=504782&r2=504783
==============================================================================
--- webservices/axis2/trunk/c/modules/core/deployment/conf_builder.c (original)
+++ webservices/axis2/trunk/c/modules/core/deployment/conf_builder.c Wed Feb  7 21:05:03 2007
@@ -758,6 +758,8 @@
                     transport_enum = AXIS2_TRANSPORT_ENUM_SMTP;
                 else if (axis2_strcmp(name, AXIS2_TRANSPORT_TCP) == 0)
                     transport_enum = AXIS2_TRANSPORT_ENUM_TCP;
+                else if (axis2_strcmp(name, AXIS2_TRANSPORT_HTTPS) == 0)
+                    transport_enum = AXIS2_TRANSPORT_ENUM_HTTPS;
                 else
                     return AXIS2_FAILURE;
                 
@@ -991,6 +993,8 @@
                     transport_enum = AXIS2_TRANSPORT_ENUM_SMTP;
                 else if (axis2_strcmp(name, AXIS2_TRANSPORT_TCP) == 0)
                     transport_enum = AXIS2_TRANSPORT_ENUM_TCP;
+                else if (axis2_strcmp(name, AXIS2_TRANSPORT_HTTPS) == 0)
+                    transport_enum = AXIS2_TRANSPORT_ENUM_HTTPS;
                 else
                     return AXIS2_FAILURE;
 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org