Author: shankar
Date: Wed Aug 27 21:27:26 2008
New Revision: 689715
URL: http://svn.apache.org/viewvc?rev=689715&view=rev
Log:
fixing seg fault on linux for secure conversation scenarios
Modified:
webservices/rampart/trunk/c/samples/sct_provider/sct_provider_hash_map.c
webservices/rampart/trunk/c/samples/sct_provider/sct_provider_stored_key.c
webservices/rampart/trunk/c/src/secconv/sct_provider_utility.c
Modified:
webservices/rampart/trunk/c/samples/sct_provider/sct_provider_hash_map.c
URL:
http://svn.apache.org/viewvc/webservices/rampart/trunk/c/samples/sct_provider/sct_provider_hash_map.c?rev=689715&r1=689714&r2=689715&view=diff
==============================================================================
--- webservices/rampart/trunk/c/samples/sct_provider/sct_provider_hash_map.c
(original)
+++ webservices/rampart/trunk/c/samples/sct_provider/sct_provider_hash_map.c
Wed Aug 27 21:27:26 2008
@@ -135,6 +135,9 @@
/* get the sct if sct_id is given */
if(sct_id)
{
+ /* set env */
+ axutil_hash_set_env(hash_store, env);
+
sct = (security_context_token_t *)axutil_hash_get(
hash_store, sct_id, AXIS2_HASH_KEY_STRING);
}
@@ -176,6 +179,9 @@
hash_store = sct_provider_hash_map_get_sct_hash_store(env, msg_ctx);
if(hash_store)
{
+ /* set env */
+ axutil_hash_set_env(hash_store, env);
+
/* store sct */
if(sct_global_id)
{
Modified:
webservices/rampart/trunk/c/samples/sct_provider/sct_provider_stored_key.c
URL:
http://svn.apache.org/viewvc/webservices/rampart/trunk/c/samples/sct_provider/sct_provider_stored_key.c?rev=689715&r1=689714&r2=689715&view=diff
==============================================================================
--- webservices/rampart/trunk/c/samples/sct_provider/sct_provider_stored_key.c
(original)
+++ webservices/rampart/trunk/c/samples/sct_provider/sct_provider_stored_key.c
Wed Aug 27 21:27:26 2008
@@ -135,6 +135,9 @@
/* get the sct if sct_id is given */
if(sct_id)
{
+ /* set env */
+ axutil_hash_set_env(hash_store, env);
+
sct = (security_context_token_t *)axutil_hash_get(
hash_store, sct_id, AXIS2_HASH_KEY_STRING);
}
@@ -206,6 +209,9 @@
hash_store = sct_provider_stored_key_get_sct_hash_store(env, msg_ctx);
if(hash_store)
{
+ /* set env */
+ axutil_hash_set_env(hash_store, env);
+
/* store sct */
if(sct_global_id)
{
Modified: webservices/rampart/trunk/c/src/secconv/sct_provider_utility.c
URL:
http://svn.apache.org/viewvc/webservices/rampart/trunk/c/src/secconv/sct_provider_utility.c?rev=689715&r1=689714&r2=689715&view=diff
==============================================================================
--- webservices/rampart/trunk/c/src/secconv/sct_provider_utility.c (original)
+++ webservices/rampart/trunk/c/src/secconv/sct_provider_utility.c Wed Aug 27
21:27:26 2008
@@ -630,6 +630,9 @@
/* get the sct if sct_id is given */
if(sct_id)
{
+ /* set env */
+ axutil_hash_set_env(hash_store, env);
+
sct = (security_context_token_t *)axutil_hash_get(
hash_store, sct_id, AXIS2_HASH_KEY_STRING);
}