You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
421 B
PHTML
23 lines
421 B
PHTML
5 years ago
|
<?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);
|
||
|
}
|
||
|
}
|