text: /* -*- 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
  