X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=src%2FX509.h;h=db82dafd93d610135e16494bf78970f5b2622f22;hb=aef2ba57f652658f3bebfa24e706c0083a56e6bf;hp=a9d60e67abd0850f81e7f62d64b97fe6c7aa901c;hpb=cdd9db03550f3aa151f44a2cf2a31db9388df9dd;p=cassiopeia.git diff --git a/src/X509.h b/src/X509.h index a9d60e6..db82daf 100644 --- a/src/X509.h +++ b/src/X509.h @@ -1,7 +1,12 @@ #pragma once + #include +#include + #include +#include "database.h" + class X509Req { private: std::shared_ptr pk; @@ -21,8 +26,7 @@ public: void setIssuerNameFrom( std::shared_ptr ca ); void setPubkeyFrom( std::shared_ptr r ); void setSerialNumber( int num ); - void setExtensions( std::shared_ptr caCert ); - void setTimes( long before, long after ); - std::string sign( std::shared_ptr caKey ); + void setExtensions( std::shared_ptr caCert, std::vector>& sans ); + void setTimes( uint32_t before, uint32_t after ); + std::shared_ptr sign( std::shared_ptr caKey ); }; -