projects
/
mech_eap.orig
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bea93e7
)
ScopedAttribute/SimpleAttribute are displayable
author
Luke Howard
<lukeh@padl.com>
Mon, 23 May 2011 20:18:48 +0000
(16:18 -0400)
committer
Luke Howard
<lukeh@padl.com>
Mon, 23 May 2011 20:18:48 +0000
(16:18 -0400)
mech_eap/util_shib.cpp
patch
|
blob
|
history
diff --git
a/mech_eap/util_shib.cpp
b/mech_eap/util_shib.cpp
index
6124484
..
311de41
100644
(file)
--- a/
mech_eap/util_shib.cpp
+++ b/
mech_eap/util_shib.cpp
@@
-54,8
+54,9
@@
#include <saml/saml2/core/Assertions.h>
#include <shibsp/exceptions.h>
#include <saml/saml2/core/Assertions.h>
#include <shibsp/exceptions.h>
-#include <shibsp/attribute/BinaryAttribute.h>
#include <shibsp/attribute/SimpleAttribute.h>
#include <shibsp/attribute/SimpleAttribute.h>
+#include <shibsp/attribute/BinaryAttribute.h>
+#include <shibsp/attribute/ScopedAttribute.h>
#include <shibresolver/resolver.h>
#include <sstream>
#include <shibresolver/resolver.h>
#include <sstream>
@@
-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();
valueBuf.value = (void *)str.c_str();
valueBuf.length = str.length();
- displayValueBuf = valueBuf;
+ const SimpleAttribute *simpleAttr =
+ dynamic_cast<const SimpleAttribute *>(shibAttr);
+ const ScopedAttribute *scopedAttr =
+ dynamic_cast<const ScopedAttribute *>(shibAttr);
+ if (simpleAttr != NULL || scopedAttr != NULL)
+ displayValueBuf = valueBuf;
}
if (authenticated != NULL)
}
if (authenticated != NULL)