From: Luke Howard Date: Mon, 23 May 2011 20:18:48 +0000 (-0400) Subject: ScopedAttribute/SimpleAttribute are displayable X-Git-Tag: 0.9.2~169 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mech_eap.git;a=commitdiff_plain;h=e17efd16538eb8a057de37baf047e0ca68db5295 ScopedAttribute/SimpleAttribute are displayable --- diff --git a/mech_eap/util_shib.cpp b/mech_eap/util_shib.cpp index 6124484..311de41 100644 --- a/mech_eap/util_shib.cpp +++ b/mech_eap/util_shib.cpp @@ -54,8 +54,9 @@ #include #include -#include #include +#include +#include #include #include @@ -316,7 +317,12 @@ gss_eap_shib_attr_provider::getAttribute(const gss_buffer_t attr, valueBuf.value = (void *)str.c_str(); valueBuf.length = str.length(); - displayValueBuf = valueBuf; + const SimpleAttribute *simpleAttr = + dynamic_cast(shibAttr); + const ScopedAttribute *scopedAttr = + dynamic_cast(shibAttr); + if (simpleAttr != NULL || scopedAttr != NULL) + displayValueBuf = valueBuf; } if (authenticated != NULL)