From 3af9d9b0605a503ed16a8b8314587451979103d7 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 9 Dec 2006 22:06:15 +0000 Subject: Make it all work properly. Have it wait for handshake to complete before sending anything down the line git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5898 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/ssl.h | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'src/modules/ssl.h') diff --git a/src/modules/ssl.h b/src/modules/ssl.h index e636aad46..4d303502e 100644 --- a/src/modules/ssl.h +++ b/src/modules/ssl.h @@ -152,13 +152,31 @@ class ssl_cert class ISHRequest : public Request { public: - const InspSocket* Sock; + InspSocket* Sock; ISHRequest(Module* Me, Module* Target, const char* rtype, InspSocket* sock) : Request(Me, Target, rtype), Sock(sock) { } }; +class InspSocketAttachCertRequest : public ISHRequest +{ + public: + /** Initialize the request as an attach cert message */ + InspSocketAttachCertRequest(InspSocket* is, Module* Me, Module* Target) : ISHRequest(Me, Target, "IS_ATTACH", is) + { + } +}; + +class InspSocketHSCompleteRequest : public ISHRequest +{ + public: + /** Initialize the request as a 'handshake complete?' message */ + InspSocketHSCompleteRequest(InspSocket* is, Module* Me, Module* Target) : ISHRequest(Me, Target, "IS_HSDONE", is) + { + } +}; + class InspSocketHookRequest : public ISHRequest { public: -- cgit v1.2.3