]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/treesocket.h
Wait longer before sending data on the connect than on the accept
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / treesocket.h
index 2fd18b35a6c270b10563a81524fff6c8e1e5e7ea..ff06f0926691a92e1f539ecb79128565d24a2885 100644 (file)
@@ -94,6 +94,7 @@ class TreeSocket : public InspSocket
        Module* Hook;                           /* I/O hooking module that we're attached to for this socket */
        std::string ourchallenge;               /* Challenge sent for challenge/response */
        std::string theirchallenge;             /* Challenge recv for challenge/response */
+       std::string OutboundPass;               /* Outbound password */
 
  public:
 
@@ -137,6 +138,10 @@ class TreeSocket : public InspSocket
         */
        void SetTheirChallenge(const std::string &c);
 
+       /** Compare two passwords based on authentication scheme
+        */
+       bool ComparePass(const std::string &ours, const std::string &theirs);
+
        /** Return the module which we are hooking to for I/O encapsulation
         */
        Module* GetHook();
@@ -149,6 +154,11 @@ class TreeSocket : public InspSocket
         */
        std::string RandString(unsigned int length);
 
+       /** Construct a password, optionally hashed with the other side's
+        * challenge string
+        */
+       std::string MakePass(const std::string &password, const std::string &challenge);
+
        /** When an outbound connection finishes connecting, we receive
         * this event, and must send our SERVER string to the other
         * side. If the other side is happy, as outlined in the server