libcryptosec
Asn1Type.h
Go to the documentation of this file.
1 #ifndef ASN1TYPE_H_
2 #define ASN1TYPE_H_
3 
5 
6 #include <openssl/asn1.h>
7 #include <openssl/asn1t.h>
8 #include <openssl/ossl_typ.h>
9 #include <openssl/objects.h>
10 
11 class Asn1Type
12 {
13 public:
14 
15  enum Type
16  {
18  //STRING, //parece que ASN1_STRING é um tipo generico especializado por OCTET_STRING, UTF8STRING, etc
35  SET,
36  };
37 
38  virtual ~Asn1Type();
39 
40  Type getType() const throw();
41 
42  //nao faz copia
43  const ASN1_TYPE* getAsn1Type() const throw();
44  bool operator==(Asn1Type const& c) const throw();
45  bool operator!=(Asn1Type const& c) const throw();
46 
47 protected:
48  Asn1Type();
49  Asn1Type(ASN1_TYPE* asn1Type);
50 
51  ASN1_TYPE* asn1Type;
52 };
53 
54 #endif /*ASN1TYPE_H_*/
Definition: Asn1Type.h:29
Type getType() const
Definition: Asn1Type.cpp:18
Definition: Asn1Type.h:11
Definition: Asn1Type.h:23
Definition: Asn1Type.h:24
Definition: Asn1Type.h:25
Definition: Asn1Type.h:33
virtual ~Asn1Type()
Definition: Asn1Type.cpp:13
Definition: Asn1Type.h:21
Definition: Asn1Type.h:35
ASN1_TYPE * asn1Type
Definition: Asn1Type.h:51
Definition: Asn1Type.h:34
Definition: Asn1Type.h:27
Definition: Asn1Type.h:19
Type
Definition: Asn1Type.h:15
Definition: Asn1Type.h:22
const ASN1_TYPE * getAsn1Type() const
Definition: Asn1Type.cpp:100
Definition: Asn1Type.h:32
Definition: Asn1Type.h:26
Definition: Asn1Type.h:20
Definition: Asn1Type.h:30
Definition: Asn1Type.h:28
Definition: Asn1Type.h:17
Definition: Asn1Type.h:31