diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-01 11:19:39 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-01 11:19:39 +0000 |
commit | a22f1e74e40d4d6656bed877e614f3f974ef7130 (patch) | |
tree | 70c02773e292f0ef814218eb7f37778fadccf14d | |
parent | 40001933e661c22e88260ff6a68b2d9e877153f6 (diff) |
Changed encryption to work with yield system
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3393 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_spanningtree.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp index aca4f9e3d..b33e28af8 100644 --- a/src/modules/m_spanningtree.cpp +++ b/src/modules/m_spanningtree.cpp @@ -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); |