aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-09-06 04:47:27 +0000
committerlloyd <[email protected]>2006-09-06 04:47:27 +0000
commitb3222535e9e8c52cc858691383ebd5cfcbbe38f4 (patch)
treea7d73ded88f81806b53197509be792110d49271f /include
parent7cf425c75ed40800d4499302ec1123e4a4644eed (diff)
Move the declaration of AlgorithmIdentifier into its own header file.
Diffstat (limited to 'include')
-rw-r--r--include/alg_id.h39
-rw-r--r--include/asn1_obj.h23
2 files changed, 40 insertions, 22 deletions
diff --git a/include/alg_id.h b/include/alg_id.h
new file mode 100644
index 000000000..a95781a7a
--- /dev/null
+++ b/include/alg_id.h
@@ -0,0 +1,39 @@
+/*************************************************
+* Algorithm Identifier Header File *
+* (C) 1999-2006 The Botan Project *
+*************************************************/
+
+#ifndef BOTAN_ALGORITHM_IDENTIFIER_H__
+#define BOTAN_ALGORITHM_IDENTIFIER_H__
+
+#include <botan/asn1_int.h>
+#include <botan/asn1_oid.h>
+#include <string>
+
+namespace Botan {
+
+/*************************************************
+* Algorithm Identifier *
+*************************************************/
+class AlgorithmIdentifier : public ASN1_Object
+ {
+ public:
+ enum Encoding_Option { USE_NULL_PARAM };
+
+ void encode_into(class DER_Encoder&) const;
+ void decode_from(class BER_Decoder&);
+
+ AlgorithmIdentifier() {}
+ AlgorithmIdentifier(const OID&, Encoding_Option);
+ AlgorithmIdentifier(const std::string&, Encoding_Option);
+
+ AlgorithmIdentifier(const OID&, const MemoryRegion<byte>&);
+ AlgorithmIdentifier(const std::string&, const MemoryRegion<byte>&);
+
+ OID oid;
+ SecureVector<byte> parameters;
+ };
+
+}
+
+#endif
diff --git a/include/asn1_obj.h b/include/asn1_obj.h
index 4397d2fc3..10f58c916 100644
--- a/include/asn1_obj.h
+++ b/include/asn1_obj.h
@@ -8,34 +8,13 @@
#include <botan/asn1_int.h>
#include <botan/asn1_oid.h>
+#include <botan/alg_id.h>
#include <vector>
#include <map>
namespace Botan {
/*************************************************
-* Algorithm Identifier *
-*************************************************/
-class AlgorithmIdentifier : public ASN1_Object
- {
- public:
- enum Encoding_Option { USE_NULL_PARAM };
-
- void encode_into(class DER_Encoder&) const;
- void decode_from(class BER_Decoder&);
-
- AlgorithmIdentifier() {}
- AlgorithmIdentifier(const OID&, Encoding_Option);
- AlgorithmIdentifier(const std::string&, Encoding_Option);
-
- AlgorithmIdentifier(const OID&, const MemoryRegion<byte>&);
- AlgorithmIdentifier(const std::string&, const MemoryRegion<byte>&);
-
- OID oid;
- SecureVector<byte> parameters;
- };
-
-/*************************************************
* Attribute *
*************************************************/
class Attribute : public ASN1_Object