]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Changed encryption to work with yield system
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Wed, 1 Mar 2006 11:19:39 +0000 (11:19 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Wed, 1 Mar 2006 11:19:39 +0000 (11:19 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3393 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_spanningtree.cpp

index aca4f9e3d14b7ebe184b89f30420d39ac5105cad..b33e28af811285144506561a245fe156cf9a9fbc 100644 (file)
@@ -1429,7 +1429,7 @@ class TreeSocket : public InspSocket
                                                if ((nbytes > 0) && (nbytes < 1024))
                                                {
                                                        log(DEBUG,"m_spanningtree: decrypt %d bytes",nbytes);
-                                                       ctx_in->Decrypt(out, result, nbytes, 1);
+                                                       ctx_in->Decrypt(out, result, nbytes, 0);
                                                        for (int t = 0; t < nbytes; t++)
                                                                if (result[t] == '\7') result[t] = 0;
                                                        ret = result;
@@ -1468,7 +1468,7 @@ class TreeSocket : public InspSocket
                                }
                        }
                        unsigned int ll = line.length();
-                       ctx_out->Encrypt(line.c_str(), result, ll, 1);
+                       ctx_out->Encrypt(line.c_str(), result, ll, 0);
                        to64frombits((unsigned char*)result64,(unsigned char*)result,ll);
                        line = result64;
                        //int from64tobits(char *out, const char *in, int maxlen);