summaryrefslogtreecommitdiff
path: root/src/signer.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-01-26 21:35:02 +0000
committerCarl Hetherington <cth@carlh.net>2014-01-26 21:35:02 +0000
commit59886567974bd3e79d30a4a9425d86d50bf425f3 (patch)
tree68e583a64144f5cbffede882e1187ecf737b2e43 /src/signer.h
parent0703842433013ac1d5f79c09d7a8361dc2e565c8 (diff)
It builds again.
Diffstat (limited to 'src/signer.h')
-rw-r--r--src/signer.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/signer.h b/src/signer.h
index 7c2864fd..c57c73cf 100644
--- a/src/signer.h
+++ b/src/signer.h
@@ -17,8 +17,13 @@
*/
-#include <boost/filesystem.hpp>
+/** @file src/signer.h
+ * @brief Signer class.
+ */
+
#include "certificates.h"
+#include "types.h"
+#include <boost/filesystem.hpp>
namespace xmlpp {
class Element;
@@ -27,15 +32,21 @@ namespace xmlpp {
namespace dcp {
+/** @class Signer
+ * @brief A class which can sign XML files.
+ */
class Signer
{
public:
+ /** @param c Certificate chain to sign with.
+ * @param k Key to sign with.
+ */
Signer (CertificateChain c, boost::filesystem::path k)
: _certificates (c)
, _key (k)
{}
- void sign (xmlpp::Element* parent, bool interop) const;
+ void sign (xmlpp::Element* parent, Standard standard) const;
void add_signature_value (xmlpp::Node* parent, std::string ns) const;
CertificateChain const & certificates () const {
@@ -44,8 +55,7 @@ public:
private:
- void add_signer (xmlpp::Element* parent, std::string ns) const;
-
+ /** Certificate chain to sign with */
CertificateChain _certificates;
/** Filename of signer key */
boost::filesystem::path _key;