summaryrefslogtreecommitdiff
path: root/src/modules/ssl.h
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-10-16 21:15:31 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-10-16 21:15:31 +0200
commit3e20f7bd2959fb1f267ba03b0387443b1c30cba1 (patch)
tree619ce4daa95286133165d8209be4702f6a8b339d /src/modules/ssl.h
parente04ece9061f3b454876a09da9cac018d6aabef9a (diff)
Add interface to SSL modules that allows other modules to obtain the raw SSL session of a socket
Diffstat (limited to 'src/modules/ssl.h')
-rw-r--r--src/modules/ssl.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/modules/ssl.h b/src/modules/ssl.h
index 9deafb830..4c877551d 100644
--- a/src/modules/ssl.h
+++ b/src/modules/ssl.h
@@ -172,4 +172,19 @@ struct UserCertificateRequest : public Request
}
};
+class SSLRawSessionRequest : public Request
+{
+ public:
+ const int fd;
+ void* data;
+
+ SSLRawSessionRequest(int FD, Module* srcmod, Module* destmod)
+ : Request(srcmod, destmod, "GET_RAW_SSL_SESSION")
+ , fd(FD)
+ , data(NULL)
+ {
+ Send();
+ }
+};
+
#endif