summaryrefslogtreecommitdiff
path: root/include/modules/ssl.h
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-05-24 19:34:25 +0200
committerattilamolnar <attilamolnar@hush.com>2013-06-07 01:00:10 +0200
commit79db1cf848c64ba50bebadef4c683ae4237080b7 (patch)
treefcaed0d8034d5e750de24cb1cd9ee87570816d66 /include/modules/ssl.h
parentf2febe8ff61766f1b57305fae873071de4526d58 (diff)
Create IOHook interface (extracted from Module)
Diffstat (limited to 'include/modules/ssl.h')
-rw-r--r--include/modules/ssl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/modules/ssl.h b/include/modules/ssl.h
index a79dcc9ef..a45121537 100644
--- a/include/modules/ssl.h
+++ b/include/modules/ssl.h
@@ -22,6 +22,7 @@
#include <map>
#include <string>
+#include "iohook.h"
/** ssl_cert is a class which abstracts SSL certificate
* and key information.
@@ -138,7 +139,7 @@ struct SocketCertificateRequest : public Request
ssl_cert* cert;
SocketCertificateRequest(StreamSocket* ss, Module* Me)
- : Request(Me, ss->GetIOHook(), "GET_SSL_CERT"), sock(ss), cert(NULL)
+ : Request(Me, (ss->GetIOHook() ? (Module*)ss->GetIOHook()->creator : NULL), "GET_SSL_CERT"), sock(ss), cert(NULL)
{
Send();
}