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.

25 lines
421 B
PHP

<?php
namespace Cijber\OpenSSL;
use Cijber\OpenSSL;
use Cijber\OpenSSL\C\CBackedObjectWithOwner;
class X509 extends CBackedObjectWithOwner
{
const TYPE = "X509*";
public static function new(): X509
{
$ffi = OpenSSL::getFFI();
$x509 = $ffi->X509_new();
return new X509($ffi, $x509);
}
public function freeObject()
{
$this->ffi->X509_free($this->cObj);
}
}