diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-09-18 15:42:36 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-09-18 15:42:36 +0200 |
commit | a543807d85d4b5a8a72cbcb50820ba09250feefd (patch) | |
tree | 52aa56ed47a200bab1c743b3a1fb9a6b00118a32 /lib | |
parent | f0bf46b0809b9c301b25662f58c9ff76f369941c (diff) | |
parent | d07d5915c903eb09321985c4199ac370b2a81227 (diff) | |
download | nextcloud-server-a543807d85d4b5a8a72cbcb50820ba09250feefd.tar.gz nextcloud-server-a543807d85d4b5a8a72cbcb50820ba09250feefd.zip |
Merge pull request #11151 from owncloud/removeOverflowingFunction
Remove unused and overflowing function
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/security/certificate.php | 19 | ||||
-rw-r--r-- | lib/public/icertificate.php | 5 |
2 files changed, 0 insertions, 24 deletions
diff --git a/lib/private/security/certificate.php b/lib/private/security/certificate.php index 778524507e0..58563550f81 100644 --- a/lib/private/security/certificate.php +++ b/lib/private/security/certificate.php @@ -39,7 +39,6 @@ class Certificate implements ICertificate { $info = openssl_x509_parse($data); $this->commonName = isset($info['subject']['CN']) ? $info['subject']['CN'] : null; $this->organization = isset($info['subject']['O']) ? $info['subject']['O'] : null; - $this->serial = $this->formatSerial($info['serialNumber']); $this->issueDate = new \DateTime('@' . $info['validFrom_time_t'], $gmt); $this->expireDate = new \DateTime('@' . $info['validTo_time_t'], $gmt); $this->issuerName = isset($info['issuer']['CN']) ? $info['issuer']['CN'] : null; @@ -50,17 +49,6 @@ class Certificate implements ICertificate { } /** - * Format the numeric serial into AA:BB:CC hex format - * - * @param int $serial - * @return string - */ - protected function formatSerial($serial) { - $hex = strtoupper(dechex($serial)); - return trim(chunk_split($hex, 2, ':'), ':'); - } - - /** * @return string */ public function getName() { @@ -82,13 +70,6 @@ class Certificate implements ICertificate { } /** - * @return string - */ - public function getSerial() { - return $this->serial; - } - - /** * @return \DateTime */ public function getIssueDate() { diff --git a/lib/public/icertificate.php b/lib/public/icertificate.php index 013496cb373..be0b9529c42 100644 --- a/lib/public/icertificate.php +++ b/lib/public/icertificate.php @@ -25,11 +25,6 @@ interface ICertificate { public function getOrganization(); /** - * @return string - */ - public function getSerial(); - - /** * @return \DateTime */ public function getIssueDate(); |