Subversion Repositories oidconverter

Compare Revisions

No changes between revisions

Regard whitespace Rev 5 → Rev 4

/trunk/phpstan.neon.dist
File deleted
/trunk/php/OidDerConverter.class.phps
42,7 → 42,7
}
 
/**
* @return string|false Outputs .<oid> for an absolute OID and <oid> for a relative OID.
* @return Outputs .<oid> for an absolute OID and <oid> for a relative OID.
*/
public static function derToOID($abBinary, $verbose=false) {
$output_oid = array();
70,8 → 70,6
 
$arcBeginning = true;
 
$isRelative = null; // to avoid that phpstan complains
 
foreach ($abBinary as $nn => &$pb) {
if ($part == 0) { // Class Tag
// Leading octet
189,7 → 187,7
// 2.48 and up => 2+ octets
// Output in "part 3"
 
if ($pb == 0x80) {
if ($arcBeginning && ($pb == 0x80)) {
if ($verbose) fprintf(STDERR, "Encoding error. Illegal 0x80 paddings. (See Rec. ITU-T X.690, clause 8.19.2)\n");
return false;
} else {
352,7 → 350,7
 
$nBinaryWork = $nBinary;
do {
$output[] = $nBinaryWork & 0xFF;
$output[] = nBinaryWork & 0xFF;
$nBinaryWork /= 0x100;
} while ($nBinaryWork > 0);
}
/trunk/.
Property changes:
Deleted: svn:ignore
-.phpstan.tmp