diff options
author | stephanie sappho lenzo <sappho@sappho.io> | 2023-07-13 06:11:48 -0400 |
---|---|---|
committer | stephanie sappho lenzo <sappho@sappho.io> | 2023-07-13 06:11:48 -0400 |
commit | d643bdb4bd5cda1bed5c8de79de456782c785dff (patch) | |
tree | 014d40ad802c2495ee36212be40dab75c623d754 /opensslmanager.h |
inital commit
Diffstat (limited to 'opensslmanager.h')
-rw-r--r-- | opensslmanager.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/opensslmanager.h b/opensslmanager.h new file mode 100644 index 0000000..03c6fc9 --- /dev/null +++ b/opensslmanager.h @@ -0,0 +1,23 @@ +#ifndef _INCLUDE_SOURCEMOD_EXTENSION_OPENSSLMANAGER_H_ +#define _INCLUDE_SOURCEMOD_EXTENSION_OPENSSLMANAGER_H_ + +#include "extension.h" +#include "opensslthread.h" + +class OpensslManager +{ +public: + void SDK_OnLoad(); + void SDK_OnUnload(); + +public: + bool HashFile(Openssl_Hash algorithm, FILE *pFile, unsigned char **output, int *outlength); + bool HashString(Openssl_Hash algorithm, unsigned char *input, int size, unsigned char *output, int *outlength); + +}; + +extern OpensslManager g_OpensslManager; + + +#endif + |