diff options
Diffstat (limited to 'Swiften/TLS/OpenSSL')
-rw-r--r-- | Swiften/TLS/OpenSSL/OpenSSLCertificate.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/Swiften/TLS/OpenSSL/OpenSSLCertificate.cpp b/Swiften/TLS/OpenSSL/OpenSSLCertificate.cpp index 06ce360..ac36f4f 100644 --- a/Swiften/TLS/OpenSSL/OpenSSLCertificate.cpp +++ b/Swiften/TLS/OpenSSL/OpenSSLCertificate.cpp @@ -35,10 +35,6 @@ OpenSSLCertificate::OpenSSLCertificate(const ByteArray& der) { } ByteArray OpenSSLCertificate::toDER() const { - if (!cert) { - return ByteArray(); - } - ByteArray result; result.resize(i2d_X509(cert.get(), NULL)); unsigned char* p = vecptr(result); @@ -47,10 +43,6 @@ ByteArray OpenSSLCertificate::toDER() const { } void OpenSSLCertificate::parse() { - if (!cert) { - return; - } - // Subject name X509_NAME* subjectName = X509_get_subject_name(cert.get()); if (subjectName) { |