Subversion Repositories oidconverter

Compare Revisions

Regard whitespace Rev 3 → Rev 4

/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-2015 Daniel Marschall, ViaThinkSoft
* Copyright 2014-2022 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,16 → 31,14
// 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);
$ary = explode(' ', $str);
 
$str = str_replace(' ', '', $str);
$ary = str_split($str, 2);
foreach ($ary as &$a) {
$out[] = hexdec($a);
$a = hexdec($a);
}
 
return $out;
return $ary;
}
 
/**