X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=src%2Fcrypto%2FsslUtil.cpp;h=9487e42a7253a98d581f7509498e477b8f314da4;hb=56358cbe81dd0d11267a06133ce227c2c53f10f7;hp=fd00e8fb85a94db8367299a6d52e676c5cd278bb;hpb=9e866a1a2facc8cb1565cd660c6b6d482f18ecb1;p=cassiopeia.git diff --git a/src/crypto/sslUtil.cpp b/src/crypto/sslUtil.cpp index fd00e8f..9487e42 100644 --- a/src/crypto/sslUtil.cpp +++ b/src/crypto/sslUtil.cpp @@ -168,7 +168,6 @@ std::shared_ptr openSerial( const std::string name ) { } setupSerial( f ); - std::shared_ptr b( BIO_new_fd( fileno( f ), 0 ), BIO_free ); return b; } @@ -178,4 +177,6 @@ CAConfig::CAConfig( std::string name ) { this->path = "ca/" + name; ca = loadX509FromFile( path + "/ca.crt" ); caKey = loadPkeyFromFile( path + "/ca.key" ); + ASN1_TIME* tm = X509_get_notBefore( ca ); + notBefore = std::shared_ptr( tm, ASN1_TIME_free ); }