copenssl/src/OpenSSL/X509Store.php
eater 2e64118f8c
Some checks failed
continuous-integration/drone/push Build is failing
Initial commit
2019-11-25 00:45:19 +01:00

23 lines
No EOL
421 B
PHP

<?php
namespace Cijber\OpenSSL;
use Cijber\OpenSSL;
use Cijber\OpenSSL\C\CBackedObjectWithOwner;
class X509Store extends CBackedObjectWithOwner
{
public static function new(): X509Store
{
$ffi = OpenSSL::getFFI();
$x509 = $ffi->X509_STORE_new();
return new X509Store($ffi, $x509);
}
public function freeObject()
{
$this->ffi->X509_STORE_free($this->cObj);
}
}