summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 17495ce)
raw | patch | inline | side by side (parent: 17495ce)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 7 Jun 2005 07:45:28 +0000 (07:45 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 7 Jun 2005 07:45:28 +0000 (07:45 +0000) |
include/class_certificate.inc | patch | blob | history |
index 5c9facff56a7b356068f56b6e545583ae1cfa22c..c396ac0b211a95d954e25f9acd3ce06cbf3eca2b 100755 (executable)
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 = "";
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);
$end = "";
- while($len > 0 )
- {
+ while($len > 0 ) {
$len = $len - 64;
$str1 = substr($str,0,64)."\n";
$str = substr($str,64,$len);
/*Convert pem to der Certificate */
function pemTOder()
{
- if($this->type == PEM)
- {
+ if($this->type == PEM) {
$this->type= DER;
$str = $this->data;
}
}
+
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
?>
-
-
-