Skip to content

Commit 55746ac

Browse files
Update openssl.php (#903)
* Update openssl.php Enhance PHPDoc details on openssl_x509_verify (Lines 361) * PR-903: fix parameter type to the mixed for the openssl_x509_verify according to the PhpDoc Co-authored-by: Aleksander <[email protected]>
1 parent c69419b commit 55746ac

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

openssl/openssl.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,14 @@ function openssl_x509_export($x509, &$output, $notext = true) { }
359359
function openssl_x509_export_to_file($x509, $outfilename, $notext = true) { }
360360

361361
/**
362+
* Verifies digital signature of x509 certificate against a public key
363+
* @link https://www.php.net/manual/en/function.openssl-x509-verify.php
364+
* @param mixed $x509
365+
* @param mixed $pub_key_id
366+
* @return int Returns 1 if the signature is correct, 0 if it is incorrect, and -1 on error.
362367
* @since 7.4
363368
*/
364-
function openssl_x509_verify($cert, $key){}
369+
function openssl_x509_verify($cert, $pub_key_id) : int {}
365370

366371
/**
367372
* Exports a PKCS#12 Compatible Certificate Store File to variable.

0 commit comments

Comments
 (0)