gdcm/Source/Common/gdcmOpenSSLP7CryptoFactory.h

42 lines
1.1 KiB
C++

/*=========================================================================
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 GDCMOPENSSLP7CRYPTOFACTORY_H
#define GDCMOPENSSLP7CRYPTOFACTORY_H
#include "gdcmCryptoFactory.h"
#include "gdcmOpenSSLP7CryptographicMessageSyntax.h"
namespace gdcm
{
class GDCM_EXPORT OpenSSLP7CryptoFactory : public CryptoFactory
{
public:
OpenSSLP7CryptoFactory(CryptoLib id) : CryptoFactory(id)
{
gdcmDebugMacro( "OpenSSL (PKCS7) Factory registered." );
}
public:
CryptographicMessageSyntax* CreateCMSProvider()
{
return new OpenSSLP7CryptographicMessageSyntax();
}
private:
OpenSSLP7CryptoFactory(){}
};
}
#endif //GDCMOPENSSLP7CRYPTOFACTORY_H