#include "internal.h"
#ifdef SHIBRESOLVER_HAVE_GSSAPI_NAMINGEXTS
-# include <gssapi/gssapi_ext.h>
+# ifdef SHIBRESOLVER_HAVE_GSSMIT
+# include <gssapi/gssapi_ext.h>
+# endif
#endif
#include <shibsp/exceptions.h>
log.warn("no metadata providers are configured");
}
else {
- if (!issuerstr.empty()) {
+ if (issuerstr.empty()) {
// Attempt to locate an issuer based on input token.
for (vector<const XMLObject*>::const_iterator t = tokens.begin(); t!=tokens.end(); ++t) {
const saml2::Assertion* assertion = dynamic_cast<const saml2::Assertion*>(*t);