aboutsummaryrefslogtreecommitdiffstats
path: root/src/cert/cvc/cvc_req.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cert/cvc/cvc_req.h')
-rw-r--r--src/cert/cvc/cvc_req.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/src/cert/cvc/cvc_req.h b/src/cert/cvc/cvc_req.h
new file mode 100644
index 000000000..674598a20
--- /dev/null
+++ b/src/cert/cvc/cvc_req.h
@@ -0,0 +1,61 @@
+/*************************************************
+* EAC1_1 CVC Request Header File *
+* (C) 2008 Falko Strenzke *
+*************************************************/
+
+#ifndef BOTAN_EAC_CVC_REQ_H__
+#define BOTAN_EAC_CVC_REQ_H__
+
+#include <botan/x509_key.h>
+#include <botan/enums.h>
+#include <botan/cvc_gen_cert.h>
+#include <botan/cvc_req.h>
+namespace Botan
+{
+
+ /**
+ * This class represents TR03110 v1.1 EAC CV Certificate Requests.
+ */
+ class EAC1_1_Req : public EAC1_1_gen_CVC<EAC1_1_Req>
+ {
+ friend class EAC1_1_Req_CA;
+ friend class EAC1_1_ADO;
+ friend class EAC1_1_obj<EAC1_1_Req>;
+
+ public:
+ bool operator==(const EAC1_1_Req&) const;
+ /**
+ * Construct a CVC request from a data source.
+ * @param source the data source
+ */
+ EAC1_1_Req(std::tr1::shared_ptr<DataSource> source);
+ /**
+ * Construct a CVC request from a DER encoded CVC reqeust file.
+ * @param str the path to the DER encoded file
+ */
+ EAC1_1_Req(const std::string& str);
+ virtual ~EAC1_1_Req(){}
+
+ protected:
+
+ private:
+ void force_decode();
+ EAC1_1_Req()
+ {}
+
+ };
+
+ /*************************************************
+ *Comparison *
+ *************************************************/
+ inline bool operator!=(EAC1_1_Req const& lhs, EAC1_1_Req const& rhs)
+ {
+ return !(lhs == rhs);
+ }
+
+
+}
+
+#endif // h-guard
+