mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-18 11:15:12 +00:00
X509: add getCurrentCert method (since $currentCert is now private)
This commit is contained in:
parent
3bddf4d962
commit
052cb7d762
@ -2107,6 +2107,17 @@ class X509
|
||||
return $chain;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current cert
|
||||
*
|
||||
* @access public
|
||||
* @return array|bool
|
||||
*/
|
||||
public function &getCurrentCert()
|
||||
{
|
||||
return $this->currentCert;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set public key
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user