initial version
This commit is contained in:
parent
b03e62c77f
commit
9d3578f8a1
|
@ -0,0 +1,53 @@
|
|||
#include <lasso/protocols/name_identifier.h>
|
||||
|
||||
LassoNode *lasso_build_nameIdentifier(const xmlChar *nameIdentifier,
|
||||
const xmlChar *nameQualifier,
|
||||
const xmlChar *format)
|
||||
{
|
||||
LassoNode *identifier;
|
||||
|
||||
identifier = lasso_saml_name_identifier_new();
|
||||
lasso_saml_name_identifier_set_nameQualifier(identifier, nameQualifier);
|
||||
lasso_saml_name_identifier_set_format(identifier, format);
|
||||
|
||||
return(identifier);
|
||||
}
|
||||
|
||||
LassoNode *lasso_build_idpProvidedNameIdentifier(const xmlChar *nameIdentifier,
|
||||
const xmlChar *nameQualifier,
|
||||
const xmlChar *format)
|
||||
{
|
||||
LassoNode *identifier;
|
||||
|
||||
identifier = lasso_lib_idp_provided_name_identifier_new();
|
||||
lasso_saml_name_identifier_set_nameQualifier(identifier, nameQualifier);
|
||||
lasso_saml_name_identifier_set_format(identifier, format);
|
||||
|
||||
return(identifier);
|
||||
}
|
||||
|
||||
LassoNode *lasso_build_spProvidedNameIdentifier(const xmlChar *nameIdentifier,
|
||||
const xmlChar *nameQualifier,
|
||||
const xmlChar *format)
|
||||
{
|
||||
LassoNode *identifier;
|
||||
|
||||
identifier = lasso_lib_sp_provided_name_identifier_new();
|
||||
lasso_saml_name_identifier_set_nameQualifier(identifier, nameQualifier);
|
||||
lasso_saml_name_identifier_set_format(identifier, format);
|
||||
|
||||
return(identifier);
|
||||
}
|
||||
|
||||
LassoNode *lasso_build_oldProvidedNameIdentifier(const xmlChar *nameIdentifier,
|
||||
const xmlChar *nameQualifier,
|
||||
const xmlChar *format)
|
||||
{
|
||||
LassoNode *identifier;
|
||||
|
||||
identifier = lasso_lib_old_provided_name_identifier_new();
|
||||
lasso_saml_name_identifier_set_nameQualifier(identifier, nameQualifier);
|
||||
lasso_saml_name_identifier_set_format(identifier, format);
|
||||
|
||||
return(identifier);
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
#ifndef __NAME_IDENTIFIER__
|
||||
#define __NAME_IDENTIFIER__
|
||||
|
||||
#include <lasso/lasso.h>
|
||||
|
||||
#endif /* __NAME_IDENTIFIER__ */
|
Loading…
Reference in New Issue