X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mech_eap.orig;a=blobdiff_plain;f=util_saml.h;h=1115eb5f23281df659f72d05ff92b5dd0cb4569b;hp=300f8224178ddd15360d5ad4085ca9f3592953e2;hb=70b02ff081eff826695916c70e166b128769f4ca;hpb=892331d936cec5354048b0952ebfa0903368c454 diff --git a/util_saml.h b/util_saml.h index 300f822..1115eb5 100644 --- a/util_saml.h +++ b/util_saml.h @@ -30,41 +30,40 @@ * SUCH DAMAGE. */ -#include "gssapiP_eap.h" - #ifndef _UTIL_SAML_H_ #define _UTIL_SAML_H_ 1 -struct eap_gss_saml_assertion; +#ifdef __cplusplus +extern "C" { +#endif -OM_uint32 -samlDuplicateAssertion(OM_uint32 *minor, - const struct eap_gss_saml_assertion *in, - struct eap_gss_saml_assertion **out); +struct eap_gss_saml_attr_ctx; OM_uint32 -samlImportAssertion(OM_uint32 *minor, - gss_buffer_t buffer, - struct eap_gss_saml_assertion *pAssertion); +samlDuplicateAttrContext(OM_uint32 *minor, + const struct eap_gss_saml_attr_ctx *in, + struct eap_gss_saml_attr_ctx **out); OM_uint32 -samlExportAssertion(OM_uint32 *minor, - struct eap_gss_saml_assertion *assertion, - gss_buffer_t buffer); +samlCreateAttrContext(OM_uint32 *minor, + gss_cred_id_t acceptorCred, + gss_name_t initiatorName, + gss_buffer_t buffer, + struct eap_gss_saml_attr_ctx **pCtx); OM_uint32 -samlReleaseAssertion(OM_uint32 *minor, - struct eap_gss_saml_assertion **assertion); +samlReleaseAttrContext(OM_uint32 *minor, + struct eap_gss_saml_attr_ctx **ctx); OM_uint32 samlGetAttributeTypes(OM_uint32 *minor, - const struct eap_gss_saml_assertion *assertion, + const struct eap_gss_saml_attr_ctx *ctx, void *data, OM_uint32 (*addAttribute)(OM_uint32 *, void *, gss_buffer_t)); OM_uint32 samlGetAttribute(OM_uint32 *minor, - const struct eap_gss_saml_assertion *assertion, + const struct eap_gss_saml_attr_ctx *ctx, gss_buffer_t attr, int *authenticated, int *complete, @@ -74,9 +73,28 @@ samlGetAttribute(OM_uint32 *minor, OM_uint32 samlSetAttribute(OM_uint32 *minor, - struct eap_gss_saml_assertion *assertion, + struct eap_gss_saml_attr_ctx *ctx, int complete, gss_buffer_t attr, gss_buffer_t value); +OM_uint32 +samlGetAssertion(OM_uint32 *minor, + struct eap_gss_saml_attr_ctx *ctx, + gss_buffer_t buffer); + +OM_uint32 +samlExportAttrContext(OM_uint32 *minor, + struct eap_gss_saml_attr_ctx *ctx, + gss_buffer_t buffer); + +OM_uint32 +samlImportAttrContext(OM_uint32 *minor, + gss_buffer_t buffer, + struct eap_gss_saml_attr_ctx **pCtx); + +#ifdef __cplusplus +} +#endif + #endif /* _UTIL_SAML_H_ */