From a22f1e74e40d4d6656bed877e614f3f974ef7130 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 1 Mar 2006 11:19:39 +0000 Subject: Changed encryption to work with yield system git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3393 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spanningtree.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3