1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
/* -*- mode: c++; indent-tabs-mode: nil -*- */
#ifndef SERIALIZER_V2_H
#define SERIALIZER_V2_H
#include <string>
#include <openssl/objects.h>
#include "util/statusor.h"
// RFC6962-bis (V2) stuff.
namespace rfc6962_bis {
class OID {
public:
static util::StatusOr<OID> FromString(const std::string& oid_string);
static util::StatusOr<OID> FromTagMissingDER(const std::string& der_oid);
OID();
OID(const OID& other);
~OID();
util::StatusOr<std::string> ToTagMissingDER() const;
std::string ToString() const;
private:
// Takes ownership
OID(ASN1_OBJECT* oid);
ASN1_OBJECT *oid_;
};
} // namespace rfc6962_bis
#endif
|