[id-ff 1.2] add lasso_saml_name_identifier_equals() to compare NameIDs
This commit is contained in:
parent
476baa59f7
commit
ccfa38bf31
|
@ -98,6 +98,20 @@ lasso_saml_name_identifier_get_type()
|
|||
return this_type;
|
||||
}
|
||||
|
||||
gboolean
|
||||
lasso_saml_name_identifier_equals(LassoSamlNameIdentifier *a,
|
||||
LassoSamlNameIdentifier *b) {
|
||||
if (a == NULL || b == NULL)
|
||||
return FALSE;
|
||||
|
||||
if (! LASSO_IS_SAML_NAME_IDENTIFIER(a) && ! LASSO_IS_SAML_NAME_IDENTIFIER(b)) {
|
||||
return FALSE;
|
||||
}
|
||||
return lasso_strisequal(a->NameQualifier, b->NameQualifier)
|
||||
&& lasso_strisequal(a->Format, b->Format)
|
||||
&& lasso_strisequal(a->content, b->content);
|
||||
}
|
||||
|
||||
/**
|
||||
* lasso_saml_name_identifier_new:
|
||||
*
|
||||
|
|
|
@ -83,6 +83,9 @@ LASSO_EXPORT LassoSamlNameIdentifier* lasso_saml_name_identifier_new(void);
|
|||
LASSO_EXPORT LassoSamlNameIdentifier* lasso_saml_name_identifier_new_from_xmlNode(
|
||||
xmlNode *xmlnode);
|
||||
|
||||
LASSO_EXPORT gboolean lasso_saml_name_identifier_equals(LassoSamlNameIdentifier *a,
|
||||
LassoSamlNameIdentifier *b);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
|
Loading…
Reference in New Issue