Botan  2.1.0
Crypto and TLS for C++11
asn1_attribute.h
Go to the documentation of this file.
1 /*
2 * ASN.1 Attribute
3 * (C) 1999-2007,2012 Jack Lloyd
4 *
5 * Botan is released under the Simplified BSD License (see license.txt)
6 */
7 
8 #ifndef BOTAN_ASN1_ATTRIBUTE_H__
9 #define BOTAN_ASN1_ATTRIBUTE_H__
10 
11 #include <botan/asn1_obj.h>
12 #include <botan/asn1_oid.h>
13 #include <vector>
14 
15 namespace Botan {
16 
17 /**
18 * Attribute
19 */
20 class BOTAN_DLL Attribute final : public ASN1_Object
21  {
22  public:
23  void encode_into(class DER_Encoder& to) const override;
24  void decode_from(class BER_Decoder& from) override;
25 
26  // public member variable:
28 
29  // public member variable:
30  std::vector<uint8_t> parameters;
31 
32  Attribute() = default;
33  Attribute(const OID&, const std::vector<uint8_t>&);
34  Attribute(const std::string&, const std::vector<uint8_t>&);
35  };
36 
37 }
38 
39 #endif
std::vector< uint8_t > parameters
Definition: alg_id.cpp:13
CK_ATTRIBUTE Attribute
Definition: p11.h:845