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 ID-WSF 1.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="idwsf.html" title="Identity Web Services Framework 1.0">
<link rel="prev" href="lasso-LassoInteractionProfileService.html" title="LassoInteractionProfileService">
<link rel="next" href="xml-idwsf.html" title="Objects from ID-WSF 1.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-ID-WSF-1.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="idwsf.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="lasso-LassoInteractionProfileService.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="xml-idwsf.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-ID-WSF-1.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-ID-WSF-1.0.top_of_page"></a>Utility functions for ID-WSF 1.0</span></h2>
<p>Utility functions for ID-WSF 1.0 — Misc functions used in the implementation of ID-WSF 1.0</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="lasso-Utility-functions-for-ID-WSF-1.0.stability-level"></a><h2>Stability Level</h2>
<acronym title="An interface that can be used within the GNOME stack itself, but that is not
documented for end-users.  Such functions should only be used in specified and
documented ways.
"><span class="acronym">Private</span></acronym>, unless otherwise indicated
</div>
<div class="refsect1">
<a name="lasso-Utility-functions-for-ID-WSF-1.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">gboolean</span>
</td>
<td class="function_name">
<a class="link" href="lasso-Utility-functions-for-ID-WSF-1.0.html#lasso-security-mech-id-is-null-authentication" title="lasso_security_mech_id_is_null_authentication ()">lasso_security_mech_id_is_null_authentication</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-ID-WSF-1.0.html#lasso-security-mech-id-is-x509-authentication" title="lasso_security_mech_id_is_x509_authentication ()">lasso_security_mech_id_is_x509_authentication</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-ID-WSF-1.0.html#lasso-security-mech-id-is-saml-authentication" title="lasso_security_mech_id_is_saml_authentication ()">lasso_security_mech_id_is_saml_authentication</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-ID-WSF-1.0.html#lasso-security-mech-id-is-bearer-authentication" title="lasso_security_mech_id_is_bearer_authentication ()">lasso_security_mech_id_is_bearer_authentication</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">lasso_error_t</span>
</td>
<td class="function_name">
<a class="link" href="lasso-Utility-functions-for-ID-WSF-1.0.html#lasso-login-set-encryptedResourceId" title="lasso_login_set_encryptedResourceId ()">lasso_login_set_encryptedResourceId</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">lasso_error_t</span>
</td>
<td class="function_name">
<a class="link" href="lasso-Utility-functions-for-ID-WSF-1.0.html#lasso-login-set-resourceId" title="lasso_login_set_resourceId ()">lasso_login_set_resourceId</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="lasso-LassoDiscoServiceInstance.html#LassoDiscoServiceInstance" title="struct LassoDiscoServiceInstance"><span class="returnvalue">LassoDiscoServiceInstance</span></a> *
</td>
<td class="function_name">
<a class="link" href="lasso-Utility-functions-for-ID-WSF-1.0.html#lasso-server-get-service" title="lasso_server_get_service ()">lasso_server_get_service</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">lasso_error_t</span>
</td>
<td class="function_name">
<a class="link" href="lasso-Utility-functions-for-ID-WSF-1.0.html#lasso-server-add-service" title="lasso_server_add_service ()">lasso_server_add_service</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">lasso_error_t</span>
</td>
<td class="function_name">
<a class="link" href="lasso-Utility-functions-for-ID-WSF-1.0.html#lasso-server-add-service-from-dump" title="lasso_server_add_service_from_dump ()">lasso_server_add_service_from_dump</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">lasso_error_t</span>
</td>
<td class="function_name">
<a class="link" href="lasso-Utility-functions-for-ID-WSF-1.0.html#lasso-identity-add-resource-offering" title="lasso_identity_add_resource_offering ()">lasso_identity_add_resource_offering</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-ID-WSF-1.0.html#lasso-identity-remove-resource-offering" title="lasso_identity_remove_resource_offering ()">lasso_identity_remove_resource_offering</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">GList</span> *
</td>
<td class="function_name">
<a class="link" href="lasso-Utility-functions-for-ID-WSF-1.0.html#lasso-identity-get-offerings" title="lasso_identity_get_offerings ()">lasso_identity_get_offerings</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="lasso-LassoDiscoResourceOffering.html#LassoDiscoResourceOffering" title="struct LassoDiscoResourceOffering"><span class="returnvalue">LassoDiscoResourceOffering</span></a> *
</td>
<td class="function_name">
<a class="link" href="lasso-Utility-functions-for-ID-WSF-1.0.html#lasso-identity-get-resource-offering" title="lasso_identity_get_resource_offering ()">lasso_identity_get_resource_offering</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="lasso-LassoSoapBindingProvider.html#LassoSoapBindingProvider" title="struct LassoSoapBindingProvider"><span class="returnvalue">LassoSoapBindingProvider</span></a> *
</td>
<td class="function_name">
<a class="link" href="lasso-Utility-functions-for-ID-WSF-1.0.html#lasso-soap-binding-get-provider" title="lasso_soap_binding_get_provider ()">lasso_soap_binding_get_provider</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="lasso-LassoSoapBindingCorrelation.html#LassoSoapBindingCorrelation" title="struct LassoSoapBindingCorrelation"><span class="returnvalue">LassoSoapBindingCorrelation</span></a> *
</td>
<td class="function_name">
<a class="link" href="lasso-Utility-functions-for-ID-WSF-1.0.html#lasso-soap-binding-get-correlation" title="lasso_soap_binding_get_correlation ()">lasso_soap_binding_get_correlation</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="lasso-Utility-functions-for-ID-WSF-1.0.html#lasso-register-dst-service" title="lasso_register_dst_service ()">lasso_register_dst_service</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">char</span> *
</td>
<td class="function_name">
<a class="link" href="lasso-Utility-functions-for-ID-WSF-1.0.html#lasso-get-prefix-for-dst-service-href" title="lasso_get_prefix_for_dst_service_href ()">lasso_get_prefix_for_dst_service_href</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="lasso-Utility-functions-for-ID-WSF-1.0.description"></a><h2>Description</h2>
</div>
<div class="refsect1">
<a name="lasso-Utility-functions-for-ID-WSF-1.0.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="lasso-security-mech-id-is-null-authentication"></a><h3>lasso_security_mech_id_is_null_authentication ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
lasso_security_mech_id_is_null_authentication
                               (<em class="parameter"><code>const <span class="type">gchar</span> *security_mech_id</code></em>);</pre>
<div class="refsect3">
<a name="lasso-security-mech-id-is-null-authentication.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>security_mech_id</p></td>
<td class="parameter_description"><p>the URI of an authentication mechanism</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="lasso-security-mech-id-is-null-authentication.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if <em class="parameter"><code>security_mech_id</code></em>
is null or one of
urn:liberty:security:2003-08:null:null,
urn:liberty:security:2003-08:TLS:null,
urn:liberty:security:2003-08:ClientTLS:null,
FALSE otherwise.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="lasso-security-mech-id-is-x509-authentication"></a><h3>lasso_security_mech_id_is_x509_authentication ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
lasso_security_mech_id_is_x509_authentication
                               (<em class="parameter"><code>const <span class="type">gchar</span> *security_mech_id</code></em>);</pre>
<div class="refsect3">
<a name="lasso-security-mech-id-is-x509-authentication.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>security_mech_id</p></td>
<td class="parameter_description"><p>the URI of an authentication mechanism</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="lasso-security-mech-id-is-x509-authentication.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if <em class="parameter"><code>security_mech_id</code></em>
is one of
urn:liberty:security:2003-08:null:X509,
urn:liberty:security:2003-08:TLS:X509,
urn:liberty:security:2003-08:ClientTLS:X509,
FALSE otherwise.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="lasso-security-mech-id-is-saml-authentication"></a><h3>lasso_security_mech_id_is_saml_authentication ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
lasso_security_mech_id_is_saml_authentication
                               (<em class="parameter"><code>const <span class="type">gchar</span> *security_mech_id</code></em>);</pre>
<div class="refsect3">
<a name="lasso-security-mech-id-is-saml-authentication.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>security_mech_id</p></td>
<td class="parameter_description"><p>the URI of an authentication mechanism</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="lasso-security-mech-id-is-saml-authentication.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if <em class="parameter"><code>security_mech_id</code></em>
is one of
urn:liberty:security:2003-08:null:SAML,
urn:liberty:security:2003-08:TLS:SAML,
urn:liberty:security:2003-08:ClientTLS:SAML,
urn:liberty:security:2005-02:null:SAML,
urn:liberty:security:2005-02:TLS:SAML,
FALSE otherwise.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="lasso-security-mech-id-is-bearer-authentication"></a><h3>lasso_security_mech_id_is_bearer_authentication ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
lasso_security_mech_id_is_bearer_authentication
                               (<em class="parameter"><code>const <span class="type">gchar</span> *security_mech_id</code></em>);</pre>
<div class="refsect3">
<a name="lasso-security-mech-id-is-bearer-authentication.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>security_mech_id</p></td>
<td class="parameter_description"><p>the URI of an authentication mechanism</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="lasso-security-mech-id-is-bearer-authentication.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if <em class="parameter"><code>security_mech_id</code></em>
is one of
urn:liberty:security:2003-08:null:Bearer,
urn:liberty:security:2003-08:TLS:Bearer,
urn:liberty:security:2003-08:ClientTLS:Bearer,
urn:liberty:security:2005-02:null:Bearer,
urn:liberty:security:2005-02:TLS:Bearer,
FALSE otherwise.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="lasso-login-set-encryptedResourceId"></a><h3>lasso_login_set_encryptedResourceId ()</h3>
<pre class="programlisting"><span class="returnvalue">lasso_error_t</span>
lasso_login_set_encryptedResourceId (<em class="parameter"><code><a class="link" href="lasso-LassoLogin.html#LassoLogin" title="struct LassoLogin"><span class="type">LassoLogin</span></a> *login</code></em>,
                                     <em class="parameter"><code><a class="link" href="lasso-LassoDiscoEncryptedResourceID.html#LassoDiscoEncryptedResourceID" title="struct LassoDiscoEncryptedResourceID"><span class="type">LassoDiscoEncryptedResourceID</span></a> *encryptedResourceId</code></em>);</pre>
<p>Set the <a class="link" href="lasso-LassoDiscoEncryptedResourceID.html#LassoDiscoEncryptedResourceID" title="struct LassoDiscoEncryptedResourceID"><span class="type">LassoDiscoEncryptedResourceID</span></a> to place the next produced assertions as an ID-WSF 1.0
bootstrap.</p>
<div class="refsect3">
<a name="lasso-login-set-encryptedResourceId.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>login</p></td>
<td class="parameter_description"><p>a <a class="link" href="lasso-LassoLogin.html#LassoLogin" title="struct LassoLogin"><span class="type">LassoLogin</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>encryptedResourceId</p></td>
<td class="parameter_description"><p>the <a class="link" href="lasso-LassoDiscoEncryptedResourceID.html#LassoDiscoEncryptedResourceID" title="struct LassoDiscoEncryptedResourceID"><span class="type">LassoDiscoEncryptedResourceID</span></a> to setup in the login object</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="lasso-login-set-encryptedResourceId.returns"></a><h4>Returns</h4>
<p> 0 on success; or a negative value otherwise.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="lasso-login-set-resourceId"></a><h3>lasso_login_set_resourceId ()</h3>
<pre class="programlisting"><span class="returnvalue">lasso_error_t</span>
lasso_login_set_resourceId (<em class="parameter"><code><a class="link" href="lasso-LassoLogin.html#LassoLogin" title="struct LassoLogin"><span class="type">LassoLogin</span></a> *login</code></em>,
                            <em class="parameter"><code>const <span class="type">char</span> *content</code></em>);</pre>
<p>Set the resourceId to place in the next produced assertion for ID-WSF bootstrap.</p>
<div class="refsect3">
<a name="lasso-login-set-resourceId.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>login</p></td>
<td class="parameter_description"><p>a <a class="link" href="lasso-LassoLogin.html#LassoLogin" title="struct LassoLogin"><span class="type">LassoLogin</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>content</p></td>
<td class="parameter_description"><p>a resourceID identifier</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="lasso-login-set-resourceId.returns"></a><h4>Returns</h4>
<p> 0 on success; or a negative value otherwise.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="lasso-server-get-service"></a><h3>lasso_server_get_service ()</h3>
<pre class="programlisting"><a class="link" href="lasso-LassoDiscoServiceInstance.html#LassoDiscoServiceInstance" title="struct LassoDiscoServiceInstance"><span class="returnvalue">LassoDiscoServiceInstance</span></a> *
lasso_server_get_service (<em class="parameter"><code><a class="link" href="lasso-LassoServer.html#LassoServer" title="struct LassoServer"><span class="type">LassoServer</span></a> *server</code></em>,
                          <em class="parameter"><code>const <span class="type">gchar</span> *serviceType</code></em>);</pre>
<p>Look up a disco service instance corresponding to this service type.</p>
<div class="refsect3">
<a name="lasso-server-get-service.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>server</p></td>
<td class="parameter_description"><p>a <a class="link" href="lasso-LassoServer.html#LassoServer" title="struct LassoServer"><span class="type">LassoServer</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>serviceType</p></td>
<td class="parameter_description"><p>the service type</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="lasso-server-get-service.returns"></a><h4>Returns</h4>
<p>the <a class="link" href="lasso-LassoDiscoServiceInstance.html#LassoDiscoServiceInstance" title="struct LassoDiscoServiceInstance"><span class="type">LassoDiscoServiceInstance</span></a>, NULL if it was not found.
The <a class="link" href="lasso-LassoDiscoServiceInstance.html#LassoDiscoServiceInstance" title="struct LassoDiscoServiceInstance"><span class="type">LassoDiscoServiceInstance</span></a> is owned by Lasso and should not be
freed. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="lasso-server-add-service"></a><h3>lasso_server_add_service ()</h3>
<pre class="programlisting"><span class="returnvalue">lasso_error_t</span>
lasso_server_add_service (<em class="parameter"><code><a class="link" href="lasso-LassoServer.html#LassoServer" title="struct LassoServer"><span class="type">LassoServer</span></a> *server</code></em>,
                          <em class="parameter"><code><a class="link" href="lasso-node.html#LassoNode" title="struct LassoNode"><span class="type">LassoNode</span></a> *service</code></em>);</pre>
<p>Add a service to the registry of service of this <a class="link" href="lasso-LassoServer.html#LassoServer" title="struct LassoServer"><span class="type">LassoServer</span></a> object.</p>
<div class="refsect3">
<a name="lasso-server-add-service.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>server</p></td>
<td class="parameter_description"><p>a <a class="link" href="lasso-LassoServer.html#LassoServer" title="struct LassoServer"><span class="type">LassoServer</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>service</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 implementing representing a service endpoint.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="lasso-server-add-service.returns"></a><h4>Returns</h4>
<p> 0 on success; a negative value if an error occured.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="lasso-server-add-service-from-dump"></a><h3>lasso_server_add_service_from_dump ()</h3>
<pre class="programlisting"><span class="returnvalue">lasso_error_t</span>
lasso_server_add_service_from_dump (<em class="parameter"><code><a class="link" href="lasso-LassoServer.html#LassoServer" title="struct LassoServer"><span class="type">LassoServer</span></a> *server</code></em>,
                                    <em class="parameter"><code>const <span class="type">gchar</span> *dump</code></em>);</pre>
<p>An utility function that parse a <a class="link" href="lasso-node.html#LassoNode" title="struct LassoNode"><span class="type">LassoNode</span></a> dump an try to add it as a
service using lasso_server_add_service.</p>
<div class="refsect3">
<a name="lasso-server-add-service-from-dump.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>server</p></td>
<td class="parameter_description"><p>a <a class="link" href="lasso-LassoServer.html#LassoServer" title="struct LassoServer"><span class="type">LassoServer</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>dump</p></td>
<td class="parameter_description"><p>the XML dump of a <a class="link" href="lasso-node.html#LassoNode" title="struct LassoNode"><span class="type">LassoNode</span></a> representing a service endpoint.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="lasso-server-add-service-from-dump.returns"></a><h4>Returns</h4>
<p> 0 if succesfull, LASSO_PARAM_ERROR_BAD_TYPE_OF_NULL_OBJECT if
said dump is not a <a class="link" href="lasso-node.html#LassoNode" title="struct LassoNode"><span class="type">LassoNode</span></a> or is not of the righ type,
LASSO_PARAM_ERROR_INVALID_VALUE if dump is NULL.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="lasso-identity-add-resource-offering"></a><h3>lasso_identity_add_resource_offering ()</h3>
<pre class="programlisting"><span class="returnvalue">lasso_error_t</span>
lasso_identity_add_resource_offering (<em class="parameter"><code><a class="link" href="lasso-LassoIdentity.html#LassoIdentity" title="struct LassoIdentity"><span class="type">LassoIdentity</span></a> *identity</code></em>,
                                      <em class="parameter"><code><a class="link" href="lasso-LassoDiscoResourceOffering.html#LassoDiscoResourceOffering" title="struct LassoDiscoResourceOffering"><span class="type">LassoDiscoResourceOffering</span></a> *offering</code></em>);</pre>
<p>Add a new offering to the identity object to be retrieved later by
<a class="link" href="lasso-Utility-functions-for-ID-WSF-1.0.html#lasso-identity-get-offerings" title="lasso_identity_get_offerings ()"><code class="function">lasso_identity_get_offerings()</code></a> or <a class="link" href="lasso-Utility-functions-for-ID-WSF-1.0.html#lasso-identity-get-resource-offering" title="lasso_identity_get_resource_offering ()"><code class="function">lasso_identity_get_resource_offering()</code></a>.
It also allocate an entryId identifier for the offering, look into
offering-&gt;entryID to get it after this call.</p>
<div class="refsect3">
<a name="lasso-identity-add-resource-offering.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>identity</p></td>
<td class="parameter_description"><p>a <a class="link" href="lasso-LassoIdentity.html#LassoIdentity" title="struct LassoIdentity"><span class="type">LassoIdentity</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>offering</p></td>
<td class="parameter_description"><p>a <a class="link" href="lasso-LassoDiscoResourceOffering.html#LassoDiscoResourceOffering" title="struct LassoDiscoResourceOffering"><span class="type">LassoDiscoResourceOffering</span></a> object to add</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="lasso-identity-add-resource-offering.returns"></a><h4>Returns</h4>
<p> Always 0, there should not be any error (if memory is not exhausted).</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="lasso-identity-remove-resource-offering"></a><h3>lasso_identity_remove_resource_offering ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>
lasso_identity_remove_resource_offering
                               (<em class="parameter"><code><a class="link" href="lasso-LassoIdentity.html#LassoIdentity" title="struct LassoIdentity"><span class="type">LassoIdentity</span></a> *identity</code></em>,
                                <em class="parameter"><code>const <span class="type">char</span> *entryID</code></em>);</pre>
<p>Remove resource offering about identity with <em class="parameter"><code>entryID</code></em>
</p>
<div class="refsect3">
<a name="lasso-identity-remove-resource-offering.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>identity</p></td>
<td class="parameter_description"><p>a <a class="link" href="lasso-LassoIdentity.html#LassoIdentity" title="struct LassoIdentity"><span class="type">LassoIdentity</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>entryID</p></td>
<td class="parameter_description"><p>the resource offering entry ID</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="lasso-identity-remove-resource-offering.returns"></a><h4>Returns</h4>
<p> TRUE on success; FALSE if the offering was not found.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="lasso-identity-get-offerings"></a><h3>lasso_identity_get_offerings ()</h3>
<pre class="programlisting"><span class="returnvalue">GList</span> *
lasso_identity_get_offerings (<em class="parameter"><code><a class="link" href="lasso-LassoIdentity.html#LassoIdentity" title="struct LassoIdentity"><span class="type">LassoIdentity</span></a> *identity</code></em>,
                              <em class="parameter"><code>const <span class="type">char</span> *service_type</code></em>);</pre>
<p>Returns a list of <a class="link" href="lasso-LassoDiscoResourceOffering.html#LassoDiscoResourceOffering" title="struct LassoDiscoResourceOffering"><span class="type">LassoDiscoResourceOffering</span></a> associated to this service type.</p>
<div class="refsect3">
<a name="lasso-identity-get-offerings.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>identity</p></td>
<td class="parameter_description"><p>a <a class="link" href="lasso-LassoIdentity.html#LassoIdentity" title="struct LassoIdentity"><span class="type">LassoIdentity</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>service_type</p></td>
<td class="parameter_description"><p>a char* string representing the type of service we are looking for</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="lasso-identity-get-offerings.returns"></a><h4>Returns</h4>
<p>a newly allocated list of <a class="link" href="lasso-LassoDiscoResourceOffering.html#LassoDiscoResourceOffering" title="struct LassoDiscoResourceOffering"><span class="type">LassoDiscoResourceOffering</span></a>. </p>
<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> LassoDiscoResourceOffering]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="lasso-identity-get-resource-offering"></a><h3>lasso_identity_get_resource_offering ()</h3>
<pre class="programlisting"><a class="link" href="lasso-LassoDiscoResourceOffering.html#LassoDiscoResourceOffering" title="struct LassoDiscoResourceOffering"><span class="returnvalue">LassoDiscoResourceOffering</span></a> *
lasso_identity_get_resource_offering (<em class="parameter"><code><a class="link" href="lasso-LassoIdentity.html#LassoIdentity" title="struct LassoIdentity"><span class="type">LassoIdentity</span></a> *identity</code></em>,
                                      <em class="parameter"><code>const <span class="type">char</span> *entryID</code></em>);</pre>
</div>
<hr>
<div class="refsect2">
<a name="lasso-soap-binding-get-provider"></a><h3>lasso_soap_binding_get_provider ()</h3>
<pre class="programlisting"><a class="link" href="lasso-LassoSoapBindingProvider.html#LassoSoapBindingProvider" title="struct LassoSoapBindingProvider"><span class="returnvalue">LassoSoapBindingProvider</span></a> *
lasso_soap_binding_get_provider (<em class="parameter"><code><a class="link" href="lasso-LassoSoapEnvelope.html#LassoSoapEnvelope" title="struct LassoSoapEnvelope"><span class="type">LassoSoapEnvelope</span></a> *envelope</code></em>);</pre>
<p>Look up the sb:Provider header in the SOAP message envelope.</p>
<div class="refsect3">
<a name="lasso-soap-binding-get-provider.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>envelope</p></td>
<td class="parameter_description"><p>a <a class="link" href="lasso-LassoSoapEnvelope.html#LassoSoapEnvelope" title="struct LassoSoapEnvelope"><span class="type">LassoSoapEnvelope</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="lasso-soap-binding-get-provider.returns"></a><h4>Returns</h4>
<p> NULL if no Provider element is present in the header of the SOAP
envelope. If found it returns a reference you do not own.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="lasso-soap-binding-get-correlation"></a><h3>lasso_soap_binding_get_correlation ()</h3>
<pre class="programlisting"><a class="link" href="lasso-LassoSoapBindingCorrelation.html#LassoSoapBindingCorrelation" title="struct LassoSoapBindingCorrelation"><span class="returnvalue">LassoSoapBindingCorrelation</span></a> *
lasso_soap_binding_get_correlation (<em class="parameter"><code><a class="link" href="lasso-LassoSoapEnvelope.html#LassoSoapEnvelope" title="struct LassoSoapEnvelope"><span class="type">LassoSoapEnvelope</span></a> *evelope</code></em>);</pre>
<p>Look up the sb:Correlation header in the SOAP message envelope.</p>
<div class="refsect3">
<a name="lasso-soap-binding-get-correlation.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>envelope</p></td>
<td class="parameter_description"><p>a <a class="link" href="lasso-LassoSoapEnvelope.html#LassoSoapEnvelope" title="struct LassoSoapEnvelope"><span class="type">LassoSoapEnvelope</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="lasso-soap-binding-get-correlation.returns"></a><h4>Returns</h4>
<p> NULL if no Correlation element is present in the header of the
SOAP envelope. If found it returns a reference you do not own.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="lasso-register-dst-service"></a><h3>lasso_register_dst_service ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
lasso_register_dst_service (<em class="parameter"><code>const <span class="type">char</span> *prefix</code></em>,
                            <em class="parameter"><code>const <span class="type">char</span> *href</code></em>);</pre>
<p>Registers prefix and href of a custom data service template service.</p>
<div class="refsect3">
<a name="lasso-register-dst-service.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>prefix</p></td>
<td class="parameter_description"><p>prefix of DST service</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>href</p></td>
<td class="parameter_description"><p>href of DST service</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="lasso-get-prefix-for-dst-service-href"></a><h3>lasso_get_prefix_for_dst_service_href ()</h3>
<pre class="programlisting"><span class="returnvalue">char</span> *
lasso_get_prefix_for_dst_service_href (<em class="parameter"><code>const <span class="type">char</span> *href</code></em>);</pre>
</div>
</div>
<div class="refsect1">
<a name="lasso-Utility-functions-for-ID-WSF-1.0.other_details"></a><h2>Types and Values</h2>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.28</div>
</body>
</html>