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 ka...@apache.org on 2006/11/02 10:42:37 UTC
svn commit: r470293 - in /webservices/axis2/trunk/c/rampart/src:
handlers/rampart_in_handler.c util/rampart_util.c
Author: kaushalye
Date: Thu Nov 2 01:42:36 2006
New Revision: 470293
URL: http://svn.apache.org/viewvc?view=rev&rev=470293
Log:
Fixed bug in generating the digest in Windows.
Modified:
webservices/axis2/trunk/c/rampart/src/handlers/rampart_in_handler.c
webservices/axis2/trunk/c/rampart/src/util/rampart_util.c
Modified: webservices/axis2/trunk/c/rampart/src/handlers/rampart_in_handler.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/rampart/src/handlers/rampart_in_handler.c?view=diff&rev=470293&r1=470292&r2=470293
==============================================================================
--- webservices/axis2/trunk/c/rampart/src/handlers/rampart_in_handler.c (original)
+++ webservices/axis2/trunk/c/rampart/src/handlers/rampart_in_handler.c Thu Nov 2 01:42:36 2006
@@ -116,8 +116,7 @@
if (AXIS2_ARRAY_LIST_IS_EMPTY(action_list, env))
{
- AXIS2_LOG_INFO(env->log, "[rampart][rampart_in_handler] No actions defined");
- /*return AXIS2_SUCCESS;*/
+ AXIS2_LOG_INFO(env->log, "[rampart][rampart_in_handler] No actions defined.");
}
/*Now we support only one action.i.e. Only the first action*/
param_action = (axis2_param_t*) AXIS2_ARRAY_LIST_GET(action_list, env, 0);
@@ -130,9 +129,7 @@
}
}
}else{
- /*This check ensures that user doesnt need to have security checking in his message flow*/
AXIS2_LOG_INFO(env->log, "[rampart][rampart_in_handler] No Inflow Security in the paramter list.");
- /*return AXIS2_SUCCESS;*/
}
/*Then re-populate using the axis2_ctx*/
status = RAMPART_ACTIONS_POPULATE_FROM_CTX(actions, env, ctx);
Modified: webservices/axis2/trunk/c/rampart/src/util/rampart_util.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/rampart/src/util/rampart_util.c?view=diff&rev=470293&r1=470292&r2=470293
==============================================================================
--- webservices/axis2/trunk/c/rampart/src/util/rampart_util.c (original)
+++ webservices/axis2/trunk/c/rampart/src/util/rampart_util.c Thu Nov 2 01:42:36 2006
@@ -44,7 +44,7 @@
buffer = oxs_buffer_create(env);
status = generate_random_data(env, buffer, 16);
rand_str = (char*)OXS_BUFFER_GET_DATA(buffer, env);
- encoded_str = AXIS2_MALLOC(env->allocator, sizeof(char) * SIZE_NONCE);
+ encoded_str = AXIS2_MALLOC(env->allocator, sizeof(char) * (SIZE_NONCE+1));
axis2_base64_encode(encoded_str, rand_str, OXS_BUFFER_GET_SIZE(buffer, env));
OXS_BUFFER_FREE(buffer, env);
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org