gdcmOpenSSLCryptoFactory.h
Go to the documentation of this file.
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef GDCMOPENSSLCRYPTOFACTORY_H
#define GDCMOPENSSLCRYPTOFACTORY_H
#include "gdcmCryptoFactory.h"
#include "gdcmOpenSSLCryptographicMessageSyntax.h"
namespace gdcm
{
class GDCM_EXPORT OpenSSLCryptoFactory : public CryptoFactory
{
public:
OpenSSLCryptoFactory(CryptoLib id) : CryptoFactory(id)
{
gdcmDebugMacro( "OpenSSL Factory registered." );
}
public:
CryptographicMessageSyntax* CreateCMSProvider()
{
InitOpenSSL();
return new OpenSSLCryptographicMessageSyntax();
}
protected:
void InitOpenSSL();
private:
OpenSSLCryptoFactory(){}
};
} // end namespace gdcm
#endif //GDCMOPENSSLCRYPTOFACTORY_H
gdcm::CryptoFactory::CryptoFactory
CryptoFactory(CryptoLib id)
Definition gdcmCryptoFactory.h:44
gdcm::CryptoFactory::CryptoLib
CryptoLib
Definition gdcmCryptoFactory.h:38
gdcm::CryptographicMessageSyntax
Definition gdcmCryptographicMessageSyntax.h:23
gdcm::OpenSSLCryptoFactory::CreateCMSProvider
CryptographicMessageSyntax * CreateCMSProvider()
Definition gdcmOpenSSLCryptoFactory.h:32
gdcm::OpenSSLCryptoFactory::InitOpenSSL
void InitOpenSSL()
gdcm::OpenSSLCryptoFactory::OpenSSLCryptoFactory
OpenSSLCryptoFactory(CryptoLib id)
Definition gdcmOpenSSLCryptoFactory.h:26
gdcm::OpenSSLCryptographicMessageSyntax
Definition gdcmOpenSSLCryptographicMessageSyntax.h:25
gdcmCryptoFactory.h
gdcmOpenSSLCryptographicMessageSyntax.h
gdcmDebugMacro
#define gdcmDebugMacro(msg)
Debug.
Definition gdcmTrace.h:119
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21