type = gssEapAttributePrefixToType(&prefix);
switch (type) {
- case ATTR_TYPE_SAML_AAA_ASSERTION:
- major = samlGetAssertion(minor, name->samlCtx, value);
- break;
case ATTR_TYPE_SAML_ATTR:
major = samlGetAttribute(minor, name->samlCtx, &suffix,
authenticated, complete,
value, display_value, more);
break;
+ case ATTR_TYPE_SAML_AAA_ASSERTION:
+ break;
case ATTR_TYPE_RADIUS_AVP:
major = radiusGetAttribute(minor, name->radiusCtx, &suffix,
authenticated, complete,
if (GSS_ERROR(major))
goto cleanup;
- major = duplicateBuffer(minor, (gss_buffer_t)&in->assertion, &ctx->assertion);
- if (GSS_ERROR(major))
- goto cleanup;
-
ctx->resCtx = new DummyContext(in->resCtx->getResolvedAttributes());
cleanup:
if (ctx != NULL) {
delete ctx->resCtx;
- gss_release_buffer(minor, &ctx->assertion);
GSSEAP_FREE(ctx);
*pCtx = NULL;
}
if (GSS_ERROR(major))
goto cleanup;
- major = duplicateBuffer(minor, buffer, &ctx->assertion);
- if (GSS_ERROR(major))
- goto cleanup;
-
- major = samlImportAssertion(minor, &ctx->assertion, &assertion);
+ major = samlImportAssertion(minor, buffer, &assertion);
if (GSS_ERROR(major))
goto cleanup;
}
OM_uint32
-samlGetAssertion(OM_uint32 *minor,
- struct eap_gss_saml_attr_ctx *ctx,
- gss_buffer_t buffer)
-{
- if (ctx == NULL)
- return GSS_S_UNAVAILABLE;
-
- return duplicateBuffer(minor, &ctx->assertion, buffer);
-}
-
-OM_uint32
samlExportAttrContext(OM_uint32 *minor,
struct eap_gss_saml_attr_ctx *ctx,
gss_buffer_t buffer)
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);