diff options
author | Jack Lloyd <[email protected]> | 2019-08-05 19:03:25 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-08-05 19:03:25 -0400 |
commit | d5b7496378fe25d732860bef23a15cef3de95310 (patch) | |
tree | acb475e37b3801dfe4a419703afdcd9f27bb1730 /src | |
parent | 4f5abd164cd37ec58b3ae94b3afb997f9f7b1320 (diff) |
Fix
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/asn1/asn1_oid.h | 4 | ||||
-rw-r--r-- | src/lib/utils/parsing.cpp | 2 |
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 } |