You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by ka...@apache.org on 2008/04/08 19:27:09 UTC

svn commit: r646010 - in /webservices/rampart/trunk/c/src/util: rampart_encryption.c rampart_engine.c rampart_handler_util.c

Author: kaushalye
Date: Tue Apr  8 10:27:08 2008
New Revision: 646010

URL: http://svn.apache.org/viewvc?rev=646010&view=rev
Log:
Code improvements

Modified:
    webservices/rampart/trunk/c/src/util/rampart_encryption.c
    webservices/rampart/trunk/c/src/util/rampart_engine.c
    webservices/rampart/trunk/c/src/util/rampart_handler_util.c

Modified: webservices/rampart/trunk/c/src/util/rampart_encryption.c
URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/c/src/util/rampart_encryption.c?rev=646010&r1=646009&r2=646010&view=diff
==============================================================================
--- webservices/rampart/trunk/c/src/util/rampart_encryption.c (original)
+++ webservices/rampart/trunk/c/src/util/rampart_encryption.c Tue Apr  8 10:27:08 2008
@@ -262,7 +262,7 @@
     {
         if(!signature_protection)
         {
-            AXIS2_LOG_INFO(env->log,
+            AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI,
                            "[rampart][rampart_encryption] No parts specified or specified parts can't be found for encryprion.");
 			axutil_array_list_free(nodes_to_encrypt, env);
 			nodes_to_encrypt = NULL;
@@ -310,7 +310,7 @@
     /*If not specified set the default*/
     if(!enc_sym_algo ||  (0 == axutil_strcmp(enc_sym_algo, "")))
     {
-        AXIS2_LOG_INFO(env->log,
+        AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI,
                        "[rampart][rampart_encryption] No symmetric algorithm is specified for encryption. Using the default");
         enc_sym_algo = OXS_DEFAULT_SYM_ALGO;
     }
@@ -739,7 +739,7 @@
     {
         if(!signature_protection)
         {
-            AXIS2_LOG_INFO(env->log,
+            AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI,
                            "[rampart][rampart_encryption] No parts specified or specified parts can't be found for encryprion.");
 			axutil_array_list_free(nodes_to_encrypt, env);
 			nodes_to_encrypt = NULL;
@@ -769,7 +769,7 @@
                                       AXIS2_TRUE, server_side, AXIS2_FALSE);
     if(!token)
     {
-        AXIS2_LOG_INFO(env->log,
+        AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI,
                        "[rampart][rampart_encryption]Encryption Token is not specified");
 		axutil_array_list_free(nodes_to_encrypt, env);
 		nodes_to_encrypt = NULL;
@@ -800,7 +800,7 @@
     /*If not specified set the default*/
     if(!enc_sym_algo ||  (0 == axutil_strcmp(enc_sym_algo, "")))
     {
-        AXIS2_LOG_INFO(env->log,
+        AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI,
                        "[rampart][rampart_encryption]No symmetric algorithm is specified for encryption. Using the default");
         enc_sym_algo = OXS_DEFAULT_SYM_ALGO;
     }

Modified: webservices/rampart/trunk/c/src/util/rampart_engine.c
URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/c/src/util/rampart_engine.c?rev=646010&r1=646009&r2=646010&view=diff
==============================================================================
--- webservices/rampart/trunk/c/src/util/rampart_engine.c (original)
+++ webservices/rampart/trunk/c/src/util/rampart_engine.c Tue Apr  8 10:27:08 2008
@@ -177,30 +177,6 @@
         }
     }
 
-    /*conf_ctx =  axis2_msg_ctx_get_conf_ctx(msg_ctx,env);
-    if(!conf_ctx)
-    {
-        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
-                        "[rampart][engine] Conf context is NULL ");
-        rampart_context_free(rampart_context, env);
-        rampart_context = NULL;
-        return NULL;
-    }
-
-    ctx = axis2_conf_ctx_get_base(conf_ctx,env);
-    if(!ctx)
-    {
-        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
-                        "[rampart][engine] axis2 context is NULL ");
-        rampart_context_free(rampart_context, env);
-        rampart_context = NULL;
-        return NULL;
-    }
-
-    property = axutil_property_create_with_args(env, AXIS2_SCOPE_REQUEST ,
-               AXIS2_TRUE, (void *)rampart_context_free, rampart_context);
-    axis2_ctx_set_property(ctx, env, RAMPART_CONTEXT, property);*/
-
     property = axutil_property_create_with_args(env, AXIS2_SCOPE_REQUEST ,
                AXIS2_TRUE, (void *)rampart_context_free, rampart_context);
     axis2_msg_ctx_set_property(msg_ctx, env, RAMPART_CONTEXT, property);

Modified: webservices/rampart/trunk/c/src/util/rampart_handler_util.c
URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/c/src/util/rampart_handler_util.c?rev=646010&r1=646009&r2=646010&view=diff
==============================================================================
--- webservices/rampart/trunk/c/src/util/rampart_handler_util.c (original)
+++ webservices/rampart/trunk/c/src/util/rampart_handler_util.c Tue Apr  8 10:27:08 2008
@@ -293,7 +293,8 @@
     svc =  axis2_msg_ctx_get_svc(msg_ctx,env);
     if(!svc)
     {
-        AXIS2_LOG_INFO(env->log, "[rampart][rhu] Service is NULL.");
+        AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, 
+            "[rampart][rhu] Service is NULL. Check if the security is enabled in the Conf ");
         return axis2_conf_get_enable_security(conf,env);
     }