X509: setSerialNumber(): new optional parameter $base

This commit is contained in:
monnerat 2012-10-12 03:29:25 +01:00
parent 711d44f0e5
commit ef96f777c3

View File

@ -2935,11 +2935,12 @@ class File_X509 {
* Set Serial Number
*
* @param String $serial
* @param $base optional
* @access public
*/
function setSerialNumber($serial)
function setSerialNumber($serial, $base = -256)
{
$this->serialNumber = new Math_BigInteger($serial, -256);
$this->serialNumber = new Math_BigInteger($serial, $base);
}
/**