/*
- * Copyright 2001-2008 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.
/**
* FilesystemCredentialResolver.cpp
*
- * Supplies credentials from local files
+ * Supplies credentials from local files.
*/
#include "internal.h"
#include "security/KeyInfoResolver.h"
#include "security/OpenSSLCredential.h"
#include "security/SecurityHelper.h"
+#include "security/XSECCryptoX509CRL.h"
#include "util/NDC.h"
#include "util/PathResolver.h"
+#include "util/Threads.h"
#include "util/XMLHelper.h"
+#include <memory>
+#include <algorithm>
#include <sys/types.h>
#include <sys/stat.h>
#include <openssl/pkcs12.h>
// First, verify that the key and certificate match.
if (m_key.key && !m_certs.empty()) {
auto_ptr<XSECCryptoKey> temp(m_certs.front().certs.front()->clonePublicKey());
- if (!SecurityHelper::matches(m_key.key, temp.get()))
+ if (!SecurityHelper::matches(*m_key.key, *temp.get()))
throw XMLSecurityException("FilesystemCredentialResolver given mismatched key/certificate, check for consistency.");
}