Botan: src/asn1/asn1_str.h Source File

Botan 1.10.16

asn1_str.h
Go to the documentation of this file.
1 /*
2 * ASN.1 string type
3 * (C) 1999-2010 Jack Lloyd
4 *
5 * Distributed under the terms of the Botan license
6 */
7
8 #ifndef BOTAN_ASN1_STRING_H__
9 #define BOTAN_ASN1_STRING_H__
10
11 #include <botan/asn1_int.h>
12
13 namespace Botan {
14
15 /**
16 * Simple String
17 */
18 class BOTAN_DLL ASN1_String : public ASN1_Object
19 {
20 public:
21 void encode_into(class DER_Encoder&) const;
22 void decode_from(class BER_Decoder&);
23
24 std::string value() const;
25 std::string iso_8859() const;
26
27 ASN1_Tag tagging() const;
28
29 ASN1_String(const std::string& = "");
30 ASN1_String(const std::string&, ASN1_Tag);
31 private:
32 std::string iso_8859_str;
33 ASN1_Tag tag;
34 };
35
36 }
37
38 #endif
Botan::ASN1_Object
Definition: asn1_int.h:56
Botan::ASN1_String
Definition: asn1_str.h:18
Botan::DER_Encoder
Definition: der_enc.h:22
Botan::ASN1_Tag
ASN1_Tag
Definition: asn1_int.h:19
Botan
Definition: algo_base.h:14
Botan::BER_Decoder
Definition: ber_dec.h:19