monotone

monotone Mtn Source Tree

Root/botan/asn1_oid.h

1/*************************************************
2* ASN.1 OID Header File *
3* (C) 1999-2005 The Botan Project *
4*************************************************/
5
6#ifndef BOTAN_ASN1_OID_H__
7#define BOTAN_ASN1_OID_H__
8
9#include <botan/types.h>
10#include <string>
11#include <vector>
12
13namespace Botan {
14
15/*************************************************
16* ASN.1 Object Identifier *
17*************************************************/
18class OID
19 {
20 public:
21 std::vector<u32bit> get_id() const { return id; }
22 std::string as_string() const;
23 bool operator==(const OID&) const;
24 void clear();
25
26 OID& operator+=(u32bit);
27 OID(const std::string& = "");
28 private:
29 std::vector<u32bit> id;
30 };
31
32/*************************************************
33* Append another component onto the OID *
34*************************************************/
35OID operator+(const OID&, u32bit);
36
37/*************************************************
38* Compare two OIDs *
39*************************************************/
40bool operator!=(const OID&, const OID&);
41bool operator<(const OID&, const OID&);
42
43}
44
45#endif

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status