aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/asn1/asn1_oid.h4
-rw-r--r--src/lib/utils/parsing.cpp2
2 files changed, 3 insertions, 3 deletions
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<uint32_t>& get_components() const { return m_id; }
- //const std::vector<uint32_t>& get_id() const { return get_components(); }
+ const std::vector<uint32_t>& 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<uint32_t> 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
}