Browse Source

make CI happy

master
eater 2 years ago
parent
commit
eeece17518
Signed by: eater GPG Key ID: AD2560A0F84F0759
  1. 5
      src/OpenSSL.php
  2. 2
      src/OpenSSL/C/CBackedObjectWithOwner.php
  3. 1
      src/OpenSSL/PKCS7/Signed.php
  4. 6
      src/OpenSSL/Stack.php

5
src/OpenSSL.php

@ -57,7 +57,8 @@ class OpenSSL
$ffi = static::getFFI();
$errs = [];
while (0 !== ($code = $ffi->ERR_get_error())) {
$errs[] = FFI::string($ffi->ERR_error_string($code, null));
$ptr = $ffi->ERR_error_string($code, null);
$errs[] = FFI::string($ptr);
}
return $errs;
@ -68,7 +69,7 @@ class OpenSSL
return FFI::cast("long long", $data)->cdata;
}
static $caStore = null;
public static $caStore = null;
public static function CAStore()
{

2
src/OpenSSL/C/CBackedObjectWithOwner.php

@ -10,7 +10,7 @@ use FFI\CData;
class CBackedObjectWithOwner extends CBackedObject
{
static private array $known = [];
private static array $known = [];
private int $address = -1;
protected FFI $ffi;

1
src/OpenSSL/PKCS7/Signed.php

@ -15,7 +15,6 @@ class Signed
public function getCerts(): X509Stack
{
$stack = X509Stack::from($this->ffi, $this->data->cert, $this);
$stack->unmanaged();
return $stack;

6
src/OpenSSL/Stack.php

@ -196,9 +196,9 @@ abstract class Stack extends CBackedObjectWithOwner implements Countable, ArrayA
public function __clone()
{
$cObj = $this->ffi->sk_dup($this->cObj);
$this->cObj = $this->ffi->sk_dup($this->cObj);
if ($cObj === null) {
if ($this->cObj === null) {
throw new RuntimeException("Failed to clone stack");
}
@ -206,7 +206,5 @@ abstract class Stack extends CBackedObjectWithOwner implements Countable, ArrayA
foreach ($this as $obj) {
$obj->pushRefCount();
}
return new static($this->ffi, $cObj);
}
}
Loading…
Cancel
Save