From b5b9f68ebdf1164649e2d6aaf774648ec0c44667 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Mon, 16 May 2011 09:59:03 +0200 Subject: [PATCH] remove attempt to autdetect base64, it's broken instead, put a special hack for urn:mspac: until Shibboleth is fixed --- moonshot/mech_eap/util_shib.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/moonshot/mech_eap/util_shib.cpp b/moonshot/mech_eap/util_shib.cpp index 0ee894b..b01bf7b 100644 --- a/moonshot/mech_eap/util_shib.cpp +++ b/moonshot/mech_eap/util_shib.cpp @@ -304,8 +304,9 @@ gss_eap_shib_attr_provider::getAttribute(const gss_buffer_t attr, buf.value = (void *)shibAttr->getSerializedValues()[*more].c_str(); buf.length = strlen((char *)buf.value); - /* FIXME treating all valid base64 values as binary is bad */ - if (base64Valid((char *)buf.value)) { + /* XXX hack until we have proper binary attribute support */ + if (attr->length == sizeof("urn:mspac:") - 1 && + memcmp(attr->value, "urn:mspac:", attr->length) == 0) { ssize_t octetLen; value->value = GSSEAP_MALLOC(buf.length); -- 2.1.4