]> WPIA git - cassiopeia.git/blob - src/simpleOpensslSigner.h
add: Put the profile id into the serial
[cassiopeia.git] / src / simpleOpensslSigner.h
1 #pragma once
2
3 #include <openssl/ssl.h>
4
5 #include "database.h"
6 #include "signer.h"
7
8 class SimpleOpensslSigner : public Signer {
9 private:
10     static std::shared_ptr<int> lib_ref;
11     std::shared_ptr<EVP_PKEY> caKey;
12     std::shared_ptr<X509> caCert;
13     std::shared_ptr<BIGNUM> nextSerial( uint16_t profile );
14 public:
15     SimpleOpensslSigner();
16     ~SimpleOpensslSigner();
17     std::shared_ptr<SignedCertificate> sign( std::shared_ptr<TBSCertificate> cert );
18 };