- add getSubjectDN and getSubjectDNProp as aliases

This commit is contained in:
terrafrost 2012-08-02 16:04:11 -05:00
parent de2691a281
commit 30391fe2b6

View File

@ -1993,6 +1993,18 @@ class File_X509 {
return $this->getDN($string, $this->currentCert['tbsCertificate']['issuer']);
}
/**
* Alias of getDN()
*
* @param Boolean $string optional
* @access public
* @return Mixed
*/
function getSubjectDN($string = false)
{
return $this->getDN($string);
}
/**
* Get an individual Distinguished Name property for a certificates issuer
*
@ -2009,6 +2021,18 @@ class File_X509 {
return $this->getDNProp($propName, $this->currentCert['tbsCertificate']['issuer']);
}
/**
* Alias of getDNProp()
*
* @param String $propName
* @access public
* @return Mixed
*/
function getSubjectDNProp($propName)
{
return $this->getDNProp($propName);
}
/**
* Set public key
*