mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
cmCryptoHash: Provide factory "New" method
Construct a cmCryptoHash subclass instance based on the name of the desired hash algorithm.
This commit is contained in:
@@ -14,9 +14,12 @@
|
||||
|
||||
#include "cmStandardIncludes.h"
|
||||
|
||||
#include <cmsys/auto_ptr.hxx>
|
||||
|
||||
class cmCryptoHash
|
||||
{
|
||||
public:
|
||||
static cmsys::auto_ptr<cmCryptoHash> New(const char* algo);
|
||||
std::string HashString(const char* input);
|
||||
std::string HashFile(const char* file);
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user