From 052cb7d762779ae34fdf3c99c5ab10d00350fc3e Mon Sep 17 00:00:00 2001 From: terrafrost Date: Wed, 10 Feb 2021 08:26:58 -0600 Subject: [PATCH] X509: add getCurrentCert method (since $currentCert is now private) --- phpseclib/File/X509.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/phpseclib/File/X509.php b/phpseclib/File/X509.php index eb122b6b..b2a8d4cc 100644 --- a/phpseclib/File/X509.php +++ b/phpseclib/File/X509.php @@ -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 *