aboutsummaryrefslogtreecommitdiff
path: root/extension/opensslmanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'extension/opensslmanager.h')
-rw-r--r--extension/opensslmanager.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/extension/opensslmanager.h b/extension/opensslmanager.h
new file mode 100644
index 0000000..03c6fc9
--- /dev/null
+++ b/extension/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
+