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 mi...@apache.org on 2008/05/15 10:52:34 UTC

svn commit: r656557 - in /webservices/rampart/trunk/c/samples/client: issued_token/echo.c saml_echo/echo.c sec_echo/echo.c

Author: milinda
Date: Thu May 15 01:52:34 2008
New Revision: 656557

URL: http://svn.apache.org/viewvc?rev=656557&view=rev
Log:
Issue https://issues.apache.org/jira/browse/RAMPARTC-101 fixed. Thanks Rajika for the patch.

Modified:
    webservices/rampart/trunk/c/samples/client/issued_token/echo.c
    webservices/rampart/trunk/c/samples/client/saml_echo/echo.c
    webservices/rampart/trunk/c/samples/client/sec_echo/echo.c

Modified: webservices/rampart/trunk/c/samples/client/issued_token/echo.c
URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/c/samples/client/issued_token/echo.c?rev=656557&r1=656556&r2=656557&view=diff
==============================================================================
--- webservices/rampart/trunk/c/samples/client/issued_token/echo.c (original)
+++ webservices/rampart/trunk/c/samples/client/issued_token/echo.c Thu May 15 01:52:34 2008
@@ -69,7 +69,7 @@
         printf("Using client_home : %s\n", client_home);
     }
 
-    if (axutil_strcmp(address, "-h") == 0)
+    if ((axutil_strcmp(argv[1], "-h") == 0) || (axutil_strcmp(argv[1], "--help") == 0))
     {
         printf("Usage : %s [endpoint_url] [client_home]\n", argv[0]);
         printf("use -h for help\n");
@@ -309,4 +309,7 @@
     token = rampart_issued_token_create(env);
     rampart_issued_token_set_token(token, env, saml, RP_PROPERTY_SAML_TOKEN);
     return token;
-}
\ No newline at end of file
+}
+
+
+

Modified: webservices/rampart/trunk/c/samples/client/saml_echo/echo.c
URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/c/samples/client/saml_echo/echo.c?rev=656557&r1=656556&r2=656557&view=diff
==============================================================================
--- webservices/rampart/trunk/c/samples/client/saml_echo/echo.c (original)
+++ webservices/rampart/trunk/c/samples/client/saml_echo/echo.c Thu May 15 01:52:34 2008
@@ -64,7 +64,7 @@
         printf("Using client_home : %s\n", client_home);
     }
 
-    if (axutil_strcmp(address, "-h") == 0)
+    if ((axutil_strcmp(argv[1], "-h") == 0) || (axutil_strcmp(argv[1], "--help") == 0))
     {
         printf("Usage : %s [endpoint_url] [client_home]\n", argv[0]);
         printf("use -h for help\n");

Modified: webservices/rampart/trunk/c/samples/client/sec_echo/echo.c
URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/c/samples/client/sec_echo/echo.c?rev=656557&r1=656556&r2=656557&view=diff
==============================================================================
--- webservices/rampart/trunk/c/samples/client/sec_echo/echo.c (original)
+++ webservices/rampart/trunk/c/samples/client/sec_echo/echo.c Thu May 15 01:52:34 2008
@@ -56,7 +56,7 @@
         printf("Using client_home : %s\n", client_home);
     }
 
-    if (axutil_strcmp(address, "-h") == 0)
+    if ((axutil_strcmp(argv[1], "-h") == 0) || (axutil_strcmp(argv[1], "--help") == 0))
     {
         printf("Usage : %s [endpoint_url] [client_home]\n", argv[0]);
         printf("use -h for help\n");