diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-09-18 10:21:28 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-09-18 10:21:28 +0200 |
commit | d07d5915c903eb09321985c4199ac370b2a81227 (patch) | |
tree | a410840b3a5e09958543d5f4e0f7a7994f3de590 /lib/private/security | |
parent | c89c6ed21de96be58793c0e63c39aa0897253450 (diff) | |
download | nextcloud-server-d07d5915c903eb09321985c4199ac370b2a81227.tar.gz nextcloud-server-d07d5915c903eb09321985c4199ac370b2a81227.zip |
Remove unused and overflowing function
Resolves https://github.com/owncloud/core/issues/10991 failure 4
Diffstat (limited to 'lib/private/security')
-rw-r--r-- | lib/private/security/certificate.php | 19 |
1 files changed, 0 insertions, 19 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() { |