mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-26 11:37:33 +00:00
X509: setSerialNumber(): new optional parameter $base
This commit is contained in:
parent
711d44f0e5
commit
ef96f777c3
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user