Skip to content
Snippets Groups Projects
Commit 88edd156 authored by brad kittenbrink's avatar brad kittenbrink
Browse files

Fix for SNOW-742 compile & link errors under certain gcc versions due to...

Fix for SNOW-742 compile & link errors under certain gcc versions due to violation of One Definition Rule.
reviewed by Moss.
parent dee93e85
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
#include "../llviewernetwork.h" #include "../llviewernetwork.h"
#include "../test/lltut.h" #include "../test/lltut.h"
#include "../llsecapi.h" #include "../llsecapi.h"
#include "../llsechandler_basic.h"
#include "../../llxml/llcontrol.h" #include "../../llxml/llcontrol.h"
...@@ -56,82 +57,21 @@ std::string LLControlGroup::getString(const std::string& name) ...@@ -56,82 +57,21 @@ std::string LLControlGroup::getString(const std::string& name)
LLControlGroup gSavedSettings("test"); LLControlGroup gSavedSettings("test");
class LLSecAPIBasicHandler : public LLSecAPIHandler
{ LLSecAPIBasicHandler::LLSecAPIBasicHandler() {}
protected: void LLSecAPIBasicHandler::init() {}
LLPointer<LLCertificateChain> mCertChain; LLSecAPIBasicHandler::~LLSecAPIBasicHandler() {}
LLPointer<LLCertificate> mCert; LLPointer<LLCertificate> LLSecAPIBasicHandler::getCertificate(const std::string& pem_cert) { return NULL; }
LLPointer<LLCertificateStore> mCertStore; LLPointer<LLCertificate> LLSecAPIBasicHandler::getCertificate(X509* openssl_cert) { return NULL; }
LLSD mLLSD; LLPointer<LLCertificateChain> LLSecAPIBasicHandler::getCertificateChain(const X509_STORE_CTX* chain) { return NULL; }
LLPointer<LLCertificateStore> LLSecAPIBasicHandler::getCertificateStore(const std::string& store_id) { return NULL; }
public: void LLSecAPIBasicHandler::setProtectedData(const std::string& data_type, const std::string& data_id, const LLSD& data) {}
LLSecAPIBasicHandler() {} LLSD LLSecAPIBasicHandler::getProtectedData(const std::string& data_type, const std::string& data_id) { return LLSD(); }
void LLSecAPIBasicHandler::deleteProtectedData(const std::string& data_type, const std::string& data_id) {}
virtual ~LLSecAPIBasicHandler() {} LLPointer<LLCredential> LLSecAPIBasicHandler::createCredential(const std::string& grid, const LLSD& identifier, const LLSD& authenticator) { return NULL; }
LLPointer<LLCredential> LLSecAPIBasicHandler::loadCredential(const std::string& grid) { return NULL; }
// instantiate a certificate from a pem string void LLSecAPIBasicHandler::saveCredential(LLPointer<LLCredential> cred, bool save_authenticator) {}
virtual LLPointer<LLCertificate> getCertificate(const std::string& pem_cert) void LLSecAPIBasicHandler::deleteCredential(LLPointer<LLCredential> cred) {}
{
return mCert;
}
// instiate a certificate from an openssl X509 structure
virtual LLPointer<LLCertificate> getCertificate(X509* openssl_cert)
{
return mCert;
}
// instantiate a chain from an X509_STORE_CTX
virtual LLPointer<LLCertificateChain> getCertificateChain(const X509_STORE_CTX* chain)
{
return mCertChain;
}
// instantiate a cert store given it's id. if a persisted version
// exists, it'll be loaded. If not, one will be created (but not
// persisted)
virtual LLPointer<LLCertificateStore> getCertificateStore(const std::string& store_id)
{
return mCertStore;
}
// persist data in a protected store
virtual void setProtectedData(const std::string& data_type,
const std::string& data_id,
const LLSD& data) {}
// retrieve protected data
virtual LLSD getProtectedData(const std::string& data_type,
const std::string& data_id)
{
return mLLSD;
}
virtual void deleteProtectedData(const std::string& data_type,
const std::string& data_id)
{
}
virtual LLPointer<LLCredential> createCredential(const std::string& grid,
const LLSD& identifier,
const LLSD& authenticator)
{
LLPointer<LLCredential> cred = NULL;
return cred;
}
virtual LLPointer<LLCredential> loadCredential(const std::string& grid)
{
LLPointer<LLCredential> cred = NULL;
return cred;
}
virtual void saveCredential(LLPointer<LLCredential> cred, bool save_authenticator) {}
virtual void deleteCredential(LLPointer<LLCredential> cred) {}
};
// ------------------------------------------------------------------------------------------- // -------------------------------------------------------------------------------------------
// TUT // TUT
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment