diff options
-rw-r--r-- | src/lib/cert/x509/x509cert.cpp | 27 | ||||
-rw-r--r-- | src/lib/cert/x509/x509cert.h | 4 |
2 files changed, 2 insertions, 29 deletions
diff --git a/src/lib/cert/x509/x509cert.cpp b/src/lib/cert/x509/x509cert.cpp index 4d9482e93..8166e43ef 100644 --- a/src/lib/cert/x509/x509cert.cpp +++ b/src/lib/cert/x509/x509cert.cpp @@ -72,33 +72,6 @@ X509_Certificate::X509_Certificate(const std::vector<byte>& in) : do_decode(); } -X509_Certificate::X509_Certificate(const X509_Certificate& other) : - X509_Object(other) - { - m_subject = other.m_subject; - m_issuer = other.m_issuer; - m_self_signed = other.m_self_signed; - m_v3_extensions = other.m_v3_extensions; - } - -X509_Certificate& X509_Certificate::operator=(const X509_Certificate& other) - { - if(&other == this) - { - return *this; - } - else - { - X509_Object::operator=(other); - m_subject = other.m_subject; - m_issuer = other.m_issuer; - m_self_signed = other.m_self_signed; - m_v3_extensions = other.m_v3_extensions; - } - return *this; - } - - /* * Decode the TBSCertificate data */ diff --git a/src/lib/cert/x509/x509cert.h b/src/lib/cert/x509/x509cert.h index eb98f9c3d..d64d8fd2b 100644 --- a/src/lib/cert/x509/x509cert.h +++ b/src/lib/cert/x509/x509cert.h @@ -274,9 +274,9 @@ class BOTAN_DLL X509_Certificate : public X509_Object explicit X509_Certificate(const std::vector<byte>& in); - X509_Certificate(const X509_Certificate& other); + X509_Certificate(const X509_Certificate& other) = default; - X509_Certificate& operator=(const X509_Certificate& other); + X509_Certificate& operator=(const X509_Certificate& other) = default; private: void force_decode() override; |