From d643bdb4bd5cda1bed5c8de79de456782c785dff Mon Sep 17 00:00:00 2001 From: stephanie sappho lenzo Date: Thu, 13 Jul 2023 06:11:48 -0400 Subject: inital commit --- opensslmanager.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 opensslmanager.h (limited to 'opensslmanager.h') 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 + -- cgit v1.2.3