From 2639ec522f6a933634f311e67f8c7aafdf00dc28 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 7 Jun 2005 07:45:28 +0000 Subject: [PATCH] removed error, Output startet at, class_certificate.inc, caused by whitespaces after ?> git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@609 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_certificate.inc | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/include/class_certificate.inc b/include/class_certificate.inc index 5c9facff5..c396ac0b2 100755 --- a/include/class_certificate.inc +++ b/include/class_certificate.inc @@ -25,8 +25,7 @@ class certificate function import($data,$type=false) { /* if is file read from file, else use string as it is*/ - if(is_file($data)) - { + if(is_file($data)) { $fp = fopen($data,"r+"); $str = ""; @@ -131,8 +130,7 @@ class certificate function derTOpem() { /* if type is DER start convert */ - if($this->type == DER) - { + if($this->type == DER) { /* converting */ $this->type= PEM; $str = base64_encode($this->data); @@ -140,8 +138,7 @@ class certificate $end = ""; - while($len > 0 ) - { + while($len > 0 ) { $len = $len - 64; $str1 = substr($str,0,64)."\n"; $str = substr($str,64,$len); @@ -160,8 +157,7 @@ class certificate /*Convert pem to der Certificate */ function pemTOder() { - if($this->type == PEM) - { + if($this->type == PEM) { $this->type= DER; $str = $this->data; @@ -178,8 +174,6 @@ class certificate } } + // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?> - - - -- 2.30.2