Subversion Repositories oidplus

Compare Revisions

Regard whitespace Rev 1466 → Rev 1467

/trunk/changelog.json.php
3,6 → 3,14
"dummy": "<?php die('For security reasons, this file can only be accessed locally (without PHP).'.base64_decode('IgogICAgfQpdCg==')); /* @phpstan-ignore-line */ ?>"
},
{
"version": "2.0.1.18",
"date": "2024-03-07 02:05:00 +0100",
"author": "Daniel Marschall (ViaThinkSoft)",
"changes": [
"Generate Random AID functionality fixed"
]
},
{
"version": "2.0.1.17",
"date": "2024-03-06 02:05:00 +0100",
"author": "Daniel Marschall (ViaThinkSoft)",
/trunk/plugins/viathinksoft/adminPages/902_systemfile_check/checksums.json
Cannot display: file marked as a binary type.
svn:mime-type = application/json
/trunk/plugins/viathinksoft/objectTypes/aid/OIDplusObjectTypePluginAid.js
32,9 → 32,11
 
do {
var candidate = current_aid == "" ? "F" : current_aid; // category "F" = Unregistered Proprietary AID
var newStuff = "";
for ( var i = 0 ; i < aid_max_len - candidate.length ; i++ ) {
candidate += characters.charAt(Math.floor(Math.random() * characters.length));
newStuff += characters.charAt(Math.floor(Math.random() * characters.length));
}
candidate += newStuff;
 
var isPrefixOfExistingAIDs = false;
var currentExistingAIDs = [];
60,12 → 62,15
} while (isPrefixOfExistingAIDs || ((candidate.endsWith('FF') && (candidate.length==aid_max_len))));
 
// Note that 16 byte AIDs ending with 0xFF *were* reserved by ISO in ISO 7816-4:1994,
// but modern versions of ISO 7816-4 and ISO 7816-4 do not mention this case anymore.
// but modern versions of ISO 7816-4 and ISO 7816-5 do not mention this case anymore.
// It can be assumed that the usage is safe, but just to be sure, we exclude 16-byte
// AIDs ending with 0xFF, in case there are some software implementations which
// deny such AIDs.
 
$("#id").val(candidate);
// Absolute:
//$("#id").val(candidate);
// Relative:
$("#id").val(candidate.substring(current_aid.length));
}
 
};