From 3e20f7bd2959fb1f267ba03b0387443b1c30cba1 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Thu, 16 Oct 2014 21:15:31 +0200 Subject: Add interface to SSL modules that allows other modules to obtain the raw SSL session of a socket --- src/modules/ssl.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/modules/ssl.h') 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 -- cgit v1.2.3