git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2572
e03df62e-2008-0410-955e-
edbf42e46eb7
int nbytes = from64tobits(out, ret.c_str(), 1024);
log(DEBUG,"m_spanningtree: decrypt %d bytes",nbytes);
ctx->Decrypt(out, result, nbytes, 0);
int nbytes = from64tobits(out, ret.c_str(), 1024);
log(DEBUG,"m_spanningtree: decrypt %d bytes",nbytes);
ctx->Decrypt(out, result, nbytes, 0);
+ for (int t = 0; t < nbytes; t++)
+ if (result[t] == '\7') result[t] = 0;
ret = result;
}
if (!this->ProcessLine(ret))
ret = result;
}
if (!this->ProcessLine(ret))
while (line.length() % this->keylength != 0)
{
// pad it to be a multiple of the key length
while (line.length() % this->keylength != 0)
{
// pad it to be a multiple of the key length
}
}
ctx->Encrypt(line.c_str(), result, line.length(),0);
}
}
ctx->Encrypt(line.c_str(), result, line.length(),0);