8 #ifndef BOTAN_ASN1_OID_H__
9 #define BOTAN_ASN1_OID_H__
11 #include <botan/asn1_obj.h>
23 void encode_into(
class DER_Encoder&)
const override;
30 bool empty()
const {
return m_id.size() == 0; }
36 const std::vector<uint32_t>&
get_id()
const {
return m_id; }
42 std::string as_string()
const;
66 OID(
const std::string& str =
"");
68 std::vector<uint32_t> m_id;
76 OID BOTAN_DLL
operator+(
const OID& oid, uint32_t new_comp);
84 bool BOTAN_DLL
operator!=(
const OID& a,
const OID& b);
92 bool BOTAN_DLL
operator<(
const OID& a,
const OID& b);
bool operator!=(const AlgorithmIdentifier &a1, const AlgorithmIdentifier &a2)
bool operator==(const AlgorithmIdentifier &a1, const AlgorithmIdentifier &a2)
bool operator<(const OID &a, const OID &b)
OID operator+(const OID &oid, uint32_t component)
std::vector< T, Alloc > & operator+=(std::vector< T, Alloc > &out, const std::vector< T, Alloc2 > &in)
const std::vector< uint32_t > & get_id() const