From d5b7496378fe25d732860bef23a15cef3de95310 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Mon, 5 Aug 2019 19:03:25 -0400 Subject: Fix --- src/lib/asn1/asn1_oid.h | 4 ++-- src/lib/utils/parsing.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/lib/asn1/asn1_oid.h b/src/lib/asn1/asn1_oid.h index 5ce7a0c73..0ee3690e3 100644 --- a/src/lib/asn1/asn1_oid.h +++ b/src/lib/asn1/asn1_oid.h @@ -70,7 +70,7 @@ class BOTAN_PUBLIC_API(2,0) OID final : public ASN1_Object */ const std::vector& get_components() const { return m_id; } - //const std::vector& get_id() const { return get_components(); } + const std::vector& get_id() const { return get_components(); } /** * Get this OID as a string @@ -112,7 +112,7 @@ class BOTAN_PUBLIC_API(2,0) OID final : public ASN1_Object * @param new_comp the new component to add to the end of this OID * @return reference to *this */ - OID& BOTAN_DEPRECATED("Avoid mutation of OIDs") operator+=(uint32_t new_comp) + BOTAN_DEPRECATED("Avoid mutation of OIDs") OID& operator+=(uint32_t new_comp) { m_id.push_back(new_comp); return (*this); diff --git a/src/lib/utils/parsing.cpp b/src/lib/utils/parsing.cpp index 197f4a11c..ae95b1a87 100644 --- a/src/lib/utils/parsing.cpp +++ b/src/lib/utils/parsing.cpp @@ -201,7 +201,7 @@ std::vector parse_asn1_oid(const std::string& oid) #if defined(BOTAN_HAS_ASN1) return OID(oid).get_components(); #else - throw Not_Supported("ASN1 support not available"); + throw Not_Implemented("ASN1 support not available"); #endif } -- cgit v1.2.3