Subversion Repositories uuid_mac_utils

Compare Revisions

Regard whitespace Rev 9 → Rev 10

/trunk/includes/OidDerConverter.class.php
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.
44,7 → 44,7
}
 
/**
* @return string Outputs .<oid> for an absolute OID and <oid> for a relative OID.
* @return string|false Outputs .<oid> for an absolute OID and <oid> for a relative OID.
*/
public static function derToOID($abBinary, $verbose=false) {
$output_oid = array();
72,6 → 72,8
 
$arcBeginning = true;
 
$isRelative = null; // to avoid that phpstan complains
 
foreach ($abBinary as $nn => &$pb) {
if ($part == 0) { // Class Tag
// Leading octet
352,7 → 354,7
 
$nBinaryWork = $nBinary;
do {
$output[] = nBinaryWork & 0xFF;
$output[] = $nBinaryWork & 0xFF;
$nBinaryWork /= 0x100;
} while ($nBinaryWork > 0);
}
/trunk/includes/uuid_utils.inc.php
162,7 → 162,7
 
if (function_exists('decode_mac')) {
echo "\nIn case that this Node ID is a MAC address, here is the interpretation of that MAC address:\n";
echo decode_mac($nodeid); /** @phpstan-ignore-line */
echo decode_mac($nodeid);
}
 
break;
220,7 → 220,7
 
if (function_exists('decode_mac')) {
echo "\nIn case that this Node ID is a MAC address, here is the interpretation of that MAC address:\n";
echo decode_mac($nodeid); /** @phpstan-ignore-line */
echo decode_mac($nodeid);
}
 
break;