Skip to content

Commit

Permalink
Update openssl.php (#903)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
larryb-redflare and AlexMovsesov authored Sep 16, 2020
1 parent c69419b commit 55746ac
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion openssl/openssl.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,14 @@ function openssl_x509_export($x509, &$output, $notext = true) { }
function openssl_x509_export_to_file($x509, $outfilename, $notext = true) { }

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

/**
* Exports a PKCS#12 Compatible Certificate Store File to variable.
Expand Down

0 comments on commit 55746ac

Please sign in to comment.