aboutsummaryrefslogtreecommitdiffstats
path: root/src/cert/cvc/cvc_cert.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-10-13 18:53:45 +0000
committerlloyd <[email protected]>2008-10-13 18:53:45 +0000
commit2b9da25f8e1d0d5df5f4e2fb05beba519bb6949f (patch)
tree6a488dcf624adab887901c6082367c9b399d938c /src/cert/cvc/cvc_cert.h
parent15f33368219371fc3430d77bd3a58ac83ab79ce2 (diff)
Doxygen comments and reformatting in CVC code
Diffstat (limited to 'src/cert/cvc/cvc_cert.h')
-rw-r--r--src/cert/cvc/cvc_cert.h134
1 files changed, 64 insertions, 70 deletions
diff --git a/src/cert/cvc/cvc_cert.h b/src/cert/cvc/cvc_cert.h
index 00bdd6679..65ee83d0e 100644
--- a/src/cert/cvc/cvc_cert.h
+++ b/src/cert/cvc/cvc_cert.h
@@ -1,7 +1,7 @@
/*************************************************
* EAC1_1 CVC Header File *
* (C) 2008 Falko Strenzke *
+* 2008 Jack Lloyd *
*************************************************/
#ifndef BOTAN_CVC_EAC_H__
@@ -10,87 +10,81 @@
#include <botan/x509_key.h>
#include <botan/enums.h>
#include <botan/signed_obj.h>
-#include <string>
#include <botan/pubkey.h>
#include <botan/ecdsa.h>
#include <botan/ecdsa_sig.h>
#include <botan/eac_obj.h>
#include <botan/cvc_gen_cert.h>
-namespace Botan
- {
+#include <string>
+namespace Botan {
- /**
- * This class represents TR03110 (EAC) v1.1 CV Certificates
- */
- class EAC1_1_CVC : public EAC1_1_gen_CVC<EAC1_1_CVC>//Signed_Object
+/**
+* This class represents TR03110 (EAC) v1.1 CV Certificates
+*/
+class BOTAN_DLL EAC1_1_CVC : public EAC1_1_gen_CVC<EAC1_1_CVC>//Signed_Object
{
- friend class EAC1_1_obj<EAC1_1_CVC>;
-
public:
-
- /**
- * Get the CAR of the certificate.
- * @result the CAR of the certificate
- */
- ASN1_Car get_car() const;
-
- /**
- * Get the CED of this certificate.
- * @result the CED this certificate
- */
- ASN1_Ced get_ced() const;
- /**
- * Get the CEX of this certificate.
- * @result the CEX this certificate
- */
- ASN1_Cex get_cex() const;
-
- /**
- * Get the CHAT value.
- * @result the CHAT value
- */
- u32bit get_chat_value() const;
-
- bool operator==(const EAC1_1_CVC&) const;
-
- /**
- * Construct a CVC from a data source
- * @param source the data source
- */
- EAC1_1_CVC(std::tr1::shared_ptr<DataSource>& source);
- /**
- * Construct a CVC from a file
- * @param str the path to the certificate file
- */
- EAC1_1_CVC(const std::string& str);
- virtual ~EAC1_1_CVC()
- {}
-
- protected:
-
+ friend class EAC1_1_obj<EAC1_1_CVC>;
+
+ /**
+ * Get the CAR of the certificate.
+ * @result the CAR of the certificate
+ */
+ ASN1_Car get_car() const;
+
+ /**
+ * Get the CED of this certificate.
+ * @result the CED this certificate
+ */
+ ASN1_Ced get_ced() const;
+
+ /**
+ * Get the CEX of this certificate.
+ * @result the CEX this certificate
+ */
+ ASN1_Cex get_cex() const;
+
+ /**
+ * Get the CHAT value.
+ * @result the CHAT value
+ */
+ u32bit get_chat_value() const;
+
+ bool operator==(const EAC1_1_CVC&) const;
+
+ /**
+ * Construct a CVC from a data source
+ * @param source the data source
+ */
+ EAC1_1_CVC(std::tr1::shared_ptr<DataSource>& source);
+
+ /**
+ * Construct a CVC from a file
+ * @param str the path to the certificate file
+ */
+ EAC1_1_CVC(const std::string& str);
+
+ virtual ~EAC1_1_CVC() {}
private:
- void force_decode();
- friend class EAC1_1_CVC_CA;
- EAC1_1_CVC()
- {}
- ASN1_Car m_car;
- ASN1_Ced m_ced;
- ASN1_Cex m_cex;
- byte m_chat_val;
- OID m_chat_oid;
-
-
+ void force_decode();
+ friend class EAC1_1_CVC_CA;
+ EAC1_1_CVC() {}
+
+ ASN1_Car m_car;
+ ASN1_Ced m_ced;
+ ASN1_Cex m_cex;
+ byte m_chat_val;
+ OID m_chat_oid;
};
- /*************************************************
- *Comparison *
- *************************************************/
- inline bool operator!=(EAC1_1_CVC const& lhs, EAC1_1_CVC const& rhs)
- {
- return !(lhs == rhs);
- }
-
+/*************************************************
+* Comparison *
+*************************************************/
+inline bool operator!=(EAC1_1_CVC const& lhs, EAC1_1_CVC const& rhs)
+ {
+ return !(lhs == rhs);
+ }
}