diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-05-24 19:34:25 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-06-07 01:00:10 +0200 |
commit | 3d6d9cda32d72ff25cf6e624bb271b629898e018 (patch) | |
tree | 78f47c8f6f74b273beb40e0a37578f5324e02785 /include/iohook.h | |
parent | 79db1cf848c64ba50bebadef4c683ae4237080b7 (diff) |
Create SSLIOHook interface that provides GetCertificate()
Diffstat (limited to 'include/iohook.h')
-rw-r--r-- | include/iohook.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/include/iohook.h b/include/iohook.h index 87403681d..7c3a0faee 100644 --- a/include/iohook.h +++ b/include/iohook.h @@ -24,8 +24,16 @@ class StreamSocket; class IOHook : public ServiceProvider { public: - IOHook(Module* mod, const std::string& Name) - : ServiceProvider(mod, Name, SERVICE_IOHOOK) { } + enum Type + { + IOH_UNKNOWN, + IOH_SSL + }; + + const Type type; + + IOHook(Module* mod, const std::string& Name, Type hooktype = IOH_UNKNOWN) + : ServiceProvider(mod, Name, SERVICE_IOHOOK), type(hooktype) { } /** Called immediately after any connection is accepted. This is intended for raw socket * processing (e.g. modules which wrap the tcp connection within another library) and provides |