remove attempt to autdetect base64, it's broken
[moonshot.git] / moonshot / mech_eap / util_shib.cpp
index 0ee894b..b01bf7b 100644 (file)
@@ -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);