]> WPIA git - cassiopeia.git/blob - src/simpleOpensslSigner.h
b2f245fd0a00221b648f4fcd0551f09704a1fd83
[cassiopeia.git] / src / simpleOpensslSigner.h
1 #pragma once
2
3 #include "database.h"
4 #include "signer.h"
5 #include <openssl/ssl.h>
6
7 class SimpleOpensslSigner : public Signer {
8 private:
9     static std::shared_ptr<int> lib_ref;
10     static std::shared_ptr<EVP_PKEY> caKey;
11     static std::shared_ptr<X509> caCert;
12 public:
13     std::shared_ptr<SignedCertificate> sign( std::shared_ptr<TBSCertificate> cert );
14 };