blob: 8771358035e846c12552fa5b221501a5ed03369b (
plain)
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
35
36
|
/*
* ASN.1 Attribute
* (C) 1999-2007,2012 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#ifndef BOTAN_ASN1_ATTRIBUTE_H__
#define BOTAN_ASN1_ATTRIBUTE_H__
#include <botan/asn1_obj.h>
#include <botan/asn1_oid.h>
#include <vector>
namespace Botan {
/**
* Attribute
*/
class BOTAN_DLL Attribute : public ASN1_Object
{
public:
void encode_into(class DER_Encoder& to) const;
void decode_from(class BER_Decoder& from);
OID oid;
std::vector<byte> parameters;
Attribute() {}
Attribute(const OID&, const std::vector<byte>&);
Attribute(const std::string&, const std::vector<byte>&);
};
}
#endif
|