Blob Blame History Raw
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Utility functions for SAML 2.0: Lasso Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="Lasso Reference Manual">
<link rel="up" href="saml2.html" title="SAML 2.0 Single Sign On profiles">
<link rel="prev" href="lasso-LassoEcp.html" title="LassoEcp">
<link rel="next" href="xml-samlv2.html" title="Objects from SAML 2.0 schemas">
<meta name="generator" content="GTK-Doc V1.28 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#lasso-Utility-functions-for-SAML-2.0.description" class="shortcut">Description</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="saml2.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="lasso-LassoEcp.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="xml-samlv2.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="lasso-Utility-functions-for-SAML-2.0"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="lasso-Utility-functions-for-SAML-2.0.top_of_page"></a>Utility functions for SAML 2.0</span></h2>
<p>Utility functions for SAML 2.0</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="lasso-Utility-functions-for-SAML-2.0.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<span class="returnvalue">char</span> *
</td>
<td class="function_name">
<a class="link" href="lasso-Utility-functions-for-SAML-2.0.html#lasso-build-unique-id" title="lasso_build_unique_id ()">lasso_build_unique_id</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="lasso-Utility-functions-for-SAML-2.0.html#lasso-profile-is-saml-query" title="lasso_profile_is_saml_query ()">lasso_profile_is_saml_query</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="lasso-LassoSaml2EncryptedElement.html#LassoSaml2EncryptedElement" title="struct LassoSaml2EncryptedElement"><span class="returnvalue">LassoSaml2EncryptedElement</span></a> *
</td>
<td class="function_name">
<a class="link" href="lasso-Utility-functions-for-SAML-2.0.html#lasso-provider-saml2-node-encrypt" title="lasso_provider_saml2_node_encrypt ()">lasso_provider_saml2_node_encrypt</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="lasso-Utility-functions-for-SAML-2.0.description"></a><h2>Description</h2>
</div>
<div class="refsect1">
<a name="lasso-Utility-functions-for-SAML-2.0.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="lasso-build-unique-id"></a><h3>lasso_build_unique_id ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> *
lasso_build_unique_id (<em class="parameter"><code>unsigned <span class="type">int</span> size</code></em>);</pre>
<p>Builds an ID which has an unicity probability of 2^(-size*4).</p>
<div class="refsect3">
<a name="lasso-build-unique-id.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>size</p></td>
<td class="parameter_description"><p>the ID's length (between 32 and 40)</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="lasso-build-unique-id.returns"></a><h4>Returns</h4>
<p>a "unique" ID (begin always with _ character). </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="lasso-profile-is-saml-query"></a><h3>lasso_profile_is_saml_query ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
lasso_profile_is_saml_query (<em class="parameter"><code>const <span class="type">gchar</span> *query</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="lasso-provider-saml2-node-encrypt"></a><h3>lasso_provider_saml2_node_encrypt ()</h3>
<pre class="programlisting"><a class="link" href="lasso-LassoSaml2EncryptedElement.html#LassoSaml2EncryptedElement" title="struct LassoSaml2EncryptedElement"><span class="returnvalue">LassoSaml2EncryptedElement</span></a> *
lasso_provider_saml2_node_encrypt (<em class="parameter"><code>const <a class="link" href="lasso-LassoProvider.html#LassoProvider" title="struct LassoProvider"><span class="type">LassoProvider</span></a> *provider</code></em>,
                                   <em class="parameter"><code><a class="link" href="lasso-node.html#LassoNode" title="struct LassoNode"><span class="type">LassoNode</span></a> *lasso_node</code></em>);</pre>
<p>Dump the node object to an XML fragment, then encrypt this fragment using encryption key of
<em class="parameter"><code>provider</code></em>
, then encapsulate the resulting encrypted content into a <a class="link" href="lasso-LassoSaml2EncryptedElement.html#LassoSaml2EncryptedElement" title="struct LassoSaml2EncryptedElement"><span class="type">LassoSaml2EncryptedElement</span></a>.</p>
<div class="refsect3">
<a name="lasso-provider-saml2-node-encrypt.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>provider</p></td>
<td class="parameter_description"><p>a <a class="link" href="lasso-LassoProvider.html#LassoProvider" title="struct LassoProvider"><span class="type">LassoProvider</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>lasso_node</p></td>
<td class="parameter_description"><p>a <a class="link" href="lasso-node.html#LassoNode" title="struct LassoNode"><span class="type">LassoNode</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="lasso-provider-saml2-node-encrypt.returns"></a><h4>Returns</h4>
<p> a newly created <a class="link" href="lasso-LassoSaml2EncryptedElement.html#LassoSaml2EncryptedElement" title="struct LassoSaml2EncryptedElement"><span class="type">LassoSaml2EncryptedElement</span></a> if successfull, NULL otherwise.</p>
</div>
</div>
</div>
<div class="refsect1">
<a name="lasso-Utility-functions-for-SAML-2.0.other_details"></a><h2>Types and Values</h2>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.28</div>
</body>
</html>