]> WPIA git - cassiopeia.git/blob - src/simpleOpensslSigner.h
chg: Build two binaries for the signer
[cassiopeia.git] / src / simpleOpensslSigner.h
1 #pragma once
2
3 #include <openssl/ssl.h>
4
5 #include "database.h"
6 #include "sslUtil.h"
7 #include "signer.h"
8
9 class SimpleOpensslSigner : public Signer {
10 private:
11     static std::shared_ptr<int> lib_ref;
12     Profile& prof;
13     std::shared_ptr<BIGNUM> nextSerial( uint16_t profile );
14 public:
15     SimpleOpensslSigner( Profile& prof );
16     ~SimpleOpensslSigner();
17     std::shared_ptr<SignedCertificate> sign( std::shared_ptr<TBSCertificate> cert );
18 };