From fc915a32e8d47a430cb476a4cff23c53d9e860b1 Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 7 Dec 2007 09:04:27 +0000 Subject: [PATCH] Updated mcrypt_init git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8053 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_socketClient.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/class_socketClient.inc b/include/class_socketClient.inc index 2df0b4328..d31e6764f 100755 --- a/include/class_socketClient.inc +++ b/include/class_socketClient.inc @@ -41,8 +41,6 @@ class Socket_Client if ($this->connected()){ $this->ckey = substr(md5($key), 0, $this->ks); - echo "Key: $this->ckey\n"; - mcrypt_generic_init($this->td, $this->ckey, $this->iv); return TRUE; } @@ -52,6 +50,7 @@ class Socket_Client private function encrypt($data) { + mcrypt_generic_init($this->td, $this->ckey, $this->iv); return mcrypt_generic($this->td, $data); } @@ -59,6 +58,7 @@ class Socket_Client private function decrypt($data) { /* decrypt data */ + mcrypt_generic_init($this->td, $this->ckey, $this->iv); return mdecrypt_generic($this->td, $data); } -- 2.30.2