/*
- * Copyright 2001-2005 Internet2
+ * Copyright 2001-2009 Internet2
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include "internal.h"
using namespace std;
-using namespace log4cpp;
using namespace saml;
using namespace shibboleth;
using namespace shibtarget;
+using namespace shibtarget::logging;
namespace {
class MemoryListener : public virtual IListener
#endif
// It passes all our tests -- create a new session.
- log->info("creating new session");
// Are attributes present?
bool attributesPushed=false;
}
auto_ptr_char oname(role->getEntityDescriptor()->getId());
- auto_ptr_char hname(bpr.authnStatement->getSubject()->getNameIdentifier()->getName());
+ auto_ptr_char hname(
+ bpr.authnStatement->getSubject()->getNameIdentifier() ?
+ bpr.authnStatement->getSubject()->getNameIdentifier()->getName()
+ : NULL
+ );
try {
// Create a new session key.
") at (ClientAddress: " <<
ip <<
") with (NameIdentifier: " <<
- hname.get() <<
+ (hname.get() ? hname.get() : "none") <<
")";
stc.releaseTransactionLog();