Subversion Repositories oidconverter

Compare Revisions

Regard whitespace Rev 4 → Rev 3

/trunk/php/OidDerConverter.class.phps
2,7 → 2,7
 
/*
* OidDerConverter.class.php, Version 1.1; Based on version 1.11 of oid.c
* Copyright 2014-2022 Daniel Marschall, ViaThinkSoft
* Copyright 2014-2015 Daniel Marschall, ViaThinkSoft
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
31,14 → 31,16
// Doesn't need to be public, but it is a nice handy function, especially in the testcases
public static function hexStrToArray($str) {
$out = array();
 
$str = str_replace('\x', '', $str);
$str = trim($str);
$str = str_replace(' ', '', $str);
$ary = str_split($str, 2);
$ary = explode(' ', $str);
 
foreach ($ary as &$a) {
$a = hexdec($a);
$out[] = hexdec($a);
}
return $ary;
 
return $out;
}
 
/**