X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=src%2FsslUtil.cpp;h=c7944f298bed9765993183a987589bc9beb1f105;hb=a14002d5a4531462c0ae6631323dd038e8d9990e;hp=414bf3a3c32faa126dc753bbc6f7b21564ed610f;hpb=307d57b0cdc0a65cc8ce284b1f707c4de1cd840c;p=cassiopeia.git diff --git a/src/sslUtil.cpp b/src/sslUtil.cpp index 414bf3a..c7944f2 100644 --- a/src/sslUtil.cpp +++ b/src/sslUtil.cpp @@ -172,3 +172,9 @@ std::shared_ptr openSerial( const std::string name ) { std::shared_ptr b( BIO_new_fd( fileno( f ), 0 ), BIO_free ); return b; } + +CAConfig::CAConfig( std::string path ) { + this->path = path; + ca = loadX509FromFile( path + "/ca.crt" ); + caKey = loadPkeyFromFile( path + "/ca.key" ); +}