From: cajus Date: Fri, 7 Dec 2007 09:04:27 +0000 (+0000) Subject: Updated mcrypt_init X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fc915a32e8d47a430cb476a4cff23c53d9e860b1;p=gosa.git Updated mcrypt_init git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8053 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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); }