Author: kaushalye Date: Tue Dec 18 00:39:40 2007 New Revision: 605136 URL: http://svn.apache.org/viewvc?rev=605136&view=rev Log: Minor changes in documentation
Modified: webservices/rampart/trunk/c/include/rampart_error.h webservices/rampart/trunk/c/src/util/rampart_context.c webservices/rampart/trunk/c/xdocs/docs/installationguide.html Modified: webservices/rampart/trunk/c/include/rampart_error.h URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/c/include/rampart_error.h?rev=605136&r1=605135&r2=605136&view=diff ============================================================================== --- webservices/rampart/trunk/c/include/rampart_error.h (original) +++ webservices/rampart/trunk/c/include/rampart_error.h Tue Dec 18 00:39:40 2007 @@ -25,8 +25,13 @@ #endif /** + * @file rampart_error.h + * @brief Rampart specific error codes + */ + +/** * @defgroup rampart_error - * @ingroup rampart Error + * @ingroup rampart_utils * @{ */ /** Modified: webservices/rampart/trunk/c/src/util/rampart_context.c URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/c/src/util/rampart_context.c?rev=605136&r1=605135&r2=605136&view=diff ============================================================================== --- webservices/rampart/trunk/c/src/util/rampart_context.c (original) +++ webservices/rampart/trunk/c/src/util/rampart_context.c Tue Dec 18 00:39:40 2007 @@ -248,7 +248,7 @@ rampart_context->session_key = NULL; } - /*TODO Free derived key list*/ + /*Free derived key list*/ if (rampart_context->dk_list) { int i; Modified: webservices/rampart/trunk/c/xdocs/docs/installationguide.html URL: http://svn.apache.org/viewvc/webservices/rampart/trunk/c/xdocs/docs/installationguide.html?rev=605136&r1=605135&r2=605136&view=diff ============================================================================== --- webservices/rampart/trunk/c/xdocs/docs/installationguide.html (original) +++ webservices/rampart/trunk/c/xdocs/docs/installationguide.html Tue Dec 18 00:39:40 2007 @@ -1,108 +1,108 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" - "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> -<html> -<head> - <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> - <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> - <title>Installation Guide</title> -</head> - -<body> -<h1>Apache Rampart/C Installation Guide</h1> - -<p>This document guides you on how to install Rampart/C.</p> -<p>You must have <a href="http://www.openssl.org">OpenSSL</a> 0.9.8 (or above) installed in you system.</p> -<p>This release comes in two forms, source and binary. This document covers -both forms.</p> - -<p>Please send your feedback to the developer mailing list: <a -href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a> -(Subscription details are available on the <a -href="http://ws.apache.org/rampart/c/mail-lists.html">Rampart/C site</a>.</p> - -<h2>Contents</h2> -<ul> - <li><a href="#linux">Installing and Running on Linux</a> - <ul> - <li><a href="#linux_binary">Using the Binary Release</a></li> - <li><a href="#linux_source">Using the Source Release</a></li> - </ul> - </li> - <li><a href="#win">Installing and Running on Microsoft Windows (win32)</a> - <ul> - <li><a href="#win_binary">Using the Binary Release</a></li> - <li><a href="#win_source">Using the Source Release</a></li> - </ul> - </li> - <li><a href="#engage">Engage Rampart/C with Axis2/C</a></li> - </li> -</ul> -<a id="linux"></a> - -<h2>1. Installing and Running on Linux</h2> - -<p>This can be done using binary or source distributions. (<a -href="http://ws.apache.org/rampart/c/download.cgi">Download</a> the two -distributions)</p> - -<a id="linux_binary"/> - -<h3>1.1. Installing the Binary Distribution</h3> - -<p>The following steps have to be followed to install and run the Rampart/C -binary distribution on Linux : </p> -<ol> - <li>Extract the binary tar package to a folder.</li> - <li>Set the AXIS2C_HOME environment variable pointing to the location where - you have extracted Axis2/C - <ul> - <li>AXIS2C_HOME='/your_path_to_axis2c'</li> - <li>export AXIS2C_HOME</li> - </ul> - </li> +<?xml version="1.0" encoding="iso-8859-1"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" + "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html> +<head> + <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> + <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> + <title>Installation Guide</title> +</head> + +<body> +<h1>Apache Rampart/C Installation Guide</h1> + +<p>This document guides you on how to install Rampart/C.</p> +<p>You must have <a href="http://www.openssl.org">OpenSSL</a> 0.9.8 (or above) installed in you system.</p> +<p>This release comes in two forms, source and binary. This document covers +both forms.</p> + +<p>Please send your feedback to the developer mailing list: <a +href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a> +(Subscription details are available on the <a +href="http://ws.apache.org/rampart/c/mail-lists.html">Rampart/C site</a>.</p> + +<h2>Contents</h2> +<ul> + <li><a href="#linux">Installing and Running on Linux</a> + <ul> + <li><a href="#linux_binary">Using the Binary Release</a></li> + <li><a href="#linux_source">Using the Source Release</a></li> + </ul> + </li> + <li><a href="#win">Installing and Running on Microsoft Windows (win32)</a> + <ul> + <li><a href="#win_binary">Using the Binary Release</a></li> + <li><a href="#win_source">Using the Source Release</a></li> + </ul> + </li> + <li><a href="#engage">Engage Rampart/C with Axis2/C</a></li> + </li> +</ul> +<a id="linux"></a> + +<h2>1. Installing and Running on Linux</h2> + +<p>This can be done using binary or source distributions. (<a +href="http://ws.apache.org/rampart/c/download.cgi">Download</a> the two +distributions)</p> + +<a id="linux_binary"/> + +<h3>1.1. Installing the Binary Distribution</h3> + +<p>The following steps have to be followed to install and run the Rampart/C +binary distribution on Linux : </p> +<ol> + <li>Extract the binary tar package to a folder.</li> + <li>Set the AXIS2C_HOME environment variable pointing to the location where + you have extracted Axis2/C + <ul> + <li>AXIS2C_HOME='/your_path_to_axis2c'</li> + <li>export AXIS2C_HOME</li> + </ul> + </li> <li>Copy modules/rampart to $AXIS2C_HOME/modules <li>Copy lib/* to $AXIS2C_HOME/lib <li>Copy bin/samples/server/sec_echo to $AXIS2C_HOME/services/ - <li>Copy bin/samples/* to $AXIS2C_HOME/bin/samples/rampart. This will copy callback modules etc - <li>Engage Rampart/C as specified in the section <a href="#engage">Engage Rampart/C with Axis2/C</a> + <li>Copy bin/samples/* to $AXIS2C_HOME/bin/samples/rampart. This will copy callback modules etc + <li>Engage Rampart/C as specified in the section <a href="#engage">Engage Rampart/C with Axis2/C</a> <li>Go to bin/samples/client/sec_echo/ and deploy the client repo <pre>%sh deploy_client_repo.sh</pre> <li>Go to bin/samples/secpolicy/ and try a scenario - <pre> %sh test_scen.sh scenarioX server-port</pre> -</ol> -<a id="linux_source"></a> - -<h3>1.2. Installing the Source Distribution</h3> - -<p>The following steps have to be followed to install and run Rampart/C using -the source distribution on Linux :</p> -<ol> - <li>Extract the source tar package to a folder.</li> - <li>Set the AXIS2C_HOME environment variable pointing to the location where - you want to install Axis2/C - <ul> - <li>AXIS2C_HOME='/your_desired_path_to_axis2c_installation'</li> - <li>export AXIS2C_HOME</li> - </ul> - </li> - <li>Then go to the folder where you extracted the source. - </li> - <li>Build the source - <ul> - <li>This can be done using the following command sequence, in the - directory where you have extracted the source: - <ul> - <li>./configure --prefix=${AXIS2C_HOME} --enable-static=no --with-axis2=${AXIS2C_HOME}/include/axis2-1.1</li> - <li>make</li> - <li>make install</li> - </ul> - </li> - <li>Please run "./configure --help" in the samples folder for more - information on the configure options.</li> - </ul> - </li> - <li>Engage Rampart/C as specified in the section <a href="#engage">Engage Rampart/C with Axis2/C</a> + <pre> %sh test_scen.sh scenarioX server-port</pre> +</ol> +<a id="linux_source"></a> + +<h3>1.2. Installing the Source Distribution</h3> + +<p>The following steps have to be followed to install and run Rampart/C using +the source distribution on Linux :</p> +<ol> + <li>Extract the source tar package to a folder.</li> + <li>Set the AXIS2C_HOME environment variable pointing to the location where + you want to install Axis2/C + <ul> + <li>AXIS2C_HOME='/your_desired_path_to_axis2c_installation'</li> + <li>export AXIS2C_HOME</li> + </ul> + </li> + <li>Then go to the folder where you extracted the source. + </li> + <li>Build the source + <ul> + <li>This can be done using the following command sequence, in the + directory where you have extracted the source: + <ul> + <li>./configure --prefix=${AXIS2C_HOME} --enable-static=no --with-axis2=${AXIS2C_HOME}/include/axis2-1.1</li> + <li>make</li> + <li>make install</li> + </ul> + </li> + <li>Please run "./configure --help" in the samples folder for more + information on the configure options.</li> + </ul> + </li> + <li>Engage Rampart/C as specified in the section <a href="#engage">Engage Rampart/C with Axis2/C</a> <li>If you need to try samples,first you need to build them. Go to samples and run the script build.sh <pre> %sh build.sh @@ -110,68 +110,68 @@ <li>Then go to samples/secpolicy and try a scenario <pre> %sh test_scen.sh scenarioX server-port - </pre> -</ol> -<a id="win"></a> - -<h2>2. Installing and Running on Microsoft Windows</h2> - -<p>This too can be done using binary or source distributions. (<a -href="http://ws.apache.org/rampart/c/download.cgi">Download</a> the two -distributions.) </p> - -<a id="win_binary"></a> - -<h3>2. 1. Installing the Binary Distribution </h3> - - -<ol> - <li>Extract the binary distribution to a folder of your choice. (example: - C:\rampartc).</li> - <li>Copy modules\rampart to %AXIS2C_HOME%\modules.</li> + </pre> +</ol> +<a id="win"></a> + +<h2>2. Installing and Running on Microsoft Windows</h2> + +<p>This too can be done using binary or source distributions. (<a +href="http://ws.apache.org/rampart/c/download.cgi">Download</a> the two +distributions.) </p> + +<a id="win_binary"></a> + +<h3>2. 1. Installing the Binary Distribution </h3> + + +<ol> + <li>Extract the binary distribution to a folder of your choice. (example: + C:\rampartc).</li> + <li>Copy modules\rampart to %AXIS2C_HOME%\modules.</li> <li>Engage Rampart/C as specified in the section <a href="#engage">Engage Rampart/C with Axis2/C</a>. - <li>Copy samples\server\sec_echo to %AXIS2C_HOME%\services </li> - <li>Start the axis2_http_server and run the echo client in the samples\client\sec_echo to consume the secured service. -</ol> -<a id="bin_run"></a> - -<a id="win_source"></a> - -<h3>2. 2. Installing Source Distribution</h3> - -<h4>2.2.1. Requirements</h4> -<ul> - <li>The makefile shipped with this version needs Microsoft Visual Studio - Compiler (cl) and the nmake build tool.</li> - - <p>(Note: You can <a - href="http://msdn.microsoft.com/vstudio/express/downloads/">download the - Microsoft VSExpress2005 edition and Platform SDK</a> from the Microsoft Web - site. You will need to add the path to the Platform SDK Include and Lib - folders to the makefile)</p> - </li> -</ul> -<a id="edit"></a> - -<a id="src_compile"></a> - -<h4>2.2.2. Compiling the Source</h4> - -<p>The following steps will take you through the source compilation.</p> -<ul> - <li>Extract the source distribution to a folder of your choice. (Example: - C:\rampartc)</li> - <li>Edit the configure.in file to specify the Axis2/C repository path and the OpenSSL installation path</li> - <li>Open a DOS shell</li> - <li>cd C:\rampartc\build\win32</li> - <li>to access .Net tools, run - <ul> - <li>C:\rampartc\build\win32\> vcvars32.bat</li> - </ul> - <p>(<strong>Note</strong>: You may have to set the PATH environment - variable to vcvars32.bat if MS Windows gives an error indicating that it - cannot find this batch file. This file is located in <your MS Visual - Studio install Directory>\VC\bin directory.)</p> + <li>Copy samples\server\sec_echo to %AXIS2C_HOME%\services </li> + <li>Start the axis2_http_server and run the echo client in the samples\client\sec_echo to consume the secured service. +</ol> +<a id="bin_run"></a> + +<a id="win_source"></a> + +<h3>2. 2. Installing Source Distribution</h3> + +<h4>2.2.1. Requirements</h4> +<ul> + <li>The makefile shipped with this version needs Microsoft Visual Studio + Compiler (cl) and the nmake build tool.</li> + + <p>(Note: You can <a + href="http://msdn.microsoft.com/vstudio/express/downloads/">download the + Microsoft VSExpress2005 edition and Platform SDK</a> from the Microsoft Web + site. You will need to add the path to the Platform SDK Include and Lib + folders to the makefile)</p> + </li> +</ul> +<a id="edit"></a> + +<a id="src_compile"></a> + +<h4>2.2.2. Compiling the Source</h4> + +<p>The following steps will take you through the source compilation.</p> +<ul> + <li>Extract the source distribution to a folder of your choice. (Example: + C:\rampartc)</li> + <li>Edit the configure.in file to specify the Axis2/C repository path and the OpenSSL installation path</li> + <li>Open a DOS shell</li> + <li>cd C:\rampartc\build\win32</li> + <li>to access .Net tools, run + <ul> + <li>C:\rampartc\build\win32\> vcvars32.bat</li> + </ul> + <p>(<strong>Note</strong>: You may have to set the PATH environment + variable to vcvars32.bat if MS Windows gives an error indicating that it + cannot find this batch file. This file is located in <your MS Visual + Studio install Directory>\VC\bin directory.)</p> </li> <li>Set the patameters in the configure.in <ul> @@ -179,58 +179,58 @@ <li>OPENSSL_BIN_DIR = path/to/where/you/have/installed/openssl</li> <li>DEBUG = 1 if enabled, 0 otherwise</li> </ul> - </li> - <li>To build the system and create the binary files in a directory named - deploy under the build directory, - <ul> - <li>C:\rampartc\build\win32>nmake install</li> - </ul> - </li> - <li>Engage Rampart/C as specified in the section <a href="#engage">Engage Rampart/C with Axis2/C</a> - <li>Start the axis2_http_server and run the echo client in the samples/client/sec_echo to consume the secured service -</ul> -<a id="src_run"></a> - - -<a id="engage"/> -<h2>Engage Rampart/C with axis2/C </h2> - -<p>You can engage Rampart/C in global level or in service level.</p> -<p>Just add the following entry either to axis2.xml(gloabl level) or in services.xml(service level) corresponding to the service you want to secure.</p> -<pre> - <module ref="rampart"/> -</pre> - -<p> Also you need to add follwoing phase under <phaseOrder type="outflow"> -<pre> - <phaseOrder type="outflow"> - <!-- Other Phases--> - <phase name="Security"/> - </phaseOrder> -</pre> - -<p>Apart from that you must define security policies for the client and the server. -<p/> -<p> -<br> -<strong>CLIENT SIDE:</strong> -<p>In the client side just drop a policy.xml file to the same location(client-repo) where you have the axis2.xml. -<p/> -<p> -<br> -<strong>SERVER SIDE:</strong> -<p>Add WS-Security Policy assertions to the services.xml. -<p/> -<p><strong>NOTE:</strong> Please find sample security policy files that are located under <a href="http://svn.apache.org/repos/asf/webservices/rampart/trunk/c/samples/secpolicy/">samples/secpolicy</a></p> -<p>You may go through each and every scenario and see how Rampart/C is configured using the policy assertions available in respective policy files. -<br> -For each scenario there are two files</p> -<ol> - <li>client-policy.xml : Defines what the security configurations are for the client using security policies</li> - <li>services.xml : Defines what the security configurations are for a particular service using security policies</li> -</ol> -<p><strong>NOTE:</strong> If you have changed a client's policy file, make sure that you change the corresponding policy assertions in the services.xml file as well, and vise versa. </p> -<p><strong>NOTE:</strong> To try out samples, use the client available under samples/client/sec_echo <br> -Usage: echo [address] [client_repo]</p> -</body> -</html> + </li> + <li>To build the system and create the binary files in a directory named + deploy under the build directory, + <ul> + <li>C:\rampartc\build\win32>nmake install</li> + </ul> + </li> + <li>Engage Rampart/C as specified in the section <a href="#engage">Engage Rampart/C with Axis2/C</a> + <li>Start the axis2_http_server and run the echo client in the samples/client/sec_echo to consume the secured service +</ul> +<a id="src_run"></a> + + +<a id="engage"/> +<h2>Engage Rampart/C with axis2/C </h2> + +<p>You can engage Rampart/C in global level or in service level.</p> +<p>Just add the following entry either to axis2.xml(gloabl level) or in services.xml(service level) corresponding to the service you want to secure.</p> +<pre> + <module ref="rampart"/> +</pre> + +<p> Also you need to add follwoing phase under <phaseOrder type="outflow"> +<pre> + <phaseOrder type="outflow"> + <!-- Other Phases--> + <phase name="Security"/> + </phaseOrder> +</pre> + +<p>Apart from that you must define security policies for the client and the server. +<p/> +<p> +<br> +<strong>CLIENT SIDE:</strong> +<p>In the client side just drop a policy.xml file to the same location(client-repo) where you have the axis2.xml. +<p/> +<p> +<br> +<strong>SERVER SIDE:</strong> +<p>Add WS-Security Policy assertions to the services.xml. +<p/> +<p><strong>NOTE:</strong> Please find sample security policy files that are located under <a href="http://svn.apache.org/repos/asf/webservices/rampart/trunk/c/samples/secpolicy/">samples/secpolicy</a></p> +<p>You may go through each and every scenario and see how Rampart/C is configured using the policy assertions available in respective policy files. +<br> +For each scenario there are two files</p> +<ol> + <li>client-policy.xml : Defines what the security configurations are for the client using security policies</li> + <li>services.xml : Defines what the security configurations are for a particular service using security policies</li> +</ol> +<p><strong>NOTE:</strong> If you have changed a client's policy file, make sure that you change the corresponding policy assertions in the services.xml file as well, and vise versa. </p> +<p><strong>NOTE:</strong> To try out samples, use the client available under samples/client/sec_echo <br> +Usage: echo [address] [client_repo]</p> +</body> +</html>