Botan 2.1.0 Crypto and TLS for C++11

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

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:
27 OID oid;
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
Botan::ASN1_Object
Definition: asn1_obj.h:61
Botan::DER_Encoder
Definition: der_enc.h:22
Botan::Attribute::oid
OID oid
Definition: asn1_attribute.h:27
Botan::Attribute::parameters
std::vector< uint8_t > parameters
Definition: asn1_attribute.h:30
Botan
Definition: alg_id.cpp:13
Botan::PKCS11::Attribute
CK_ATTRIBUTE Attribute
Definition: p11.h:845
Botan::OID
Definition: asn1_oid.h:20
Botan::BER_Decoder
Definition: ber_dec.h:19
Botan::Attribute
Definition: asn1_attribute.h:20