diff options
Diffstat (limited to 'src/signer.h')
| -rw-r--r-- | src/signer.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/signer.h b/src/signer.h index 92745ff2..6fd17033 100644 --- a/src/signer.h +++ b/src/signer.h @@ -38,9 +38,11 @@ namespace dcp { /** @class Signer * @brief A class which can sign XML files. */ -class Signer : public boost::noncopyable +class Signer { public: + Signer (boost::filesystem::path openssl); + /** @param c Certificate chain to sign with. * @param k Key to sign with as a PEM-format string. */ @@ -55,6 +57,20 @@ public: CertificateChain const & certificates () const { return _certificates; } + + CertificateChain& certificates () { + return _certificates; + } + + std::string key () const { + return _key; + } + + void set_key (std::string k) { + _key = k; + } + + bool valid () const; private: |
