Re: gnupg_verify help needed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tsvetan Nikolov wrote:

> I've been fighting with gnupg_verify for days now and cannot understand how
> it works. It returns an array in the form of:
> 
> array ( 0 => array ( 'fingerprint' => 'BLABLABLA' 'validity' => 0
> 'timestamp' => 1402666925 'status' => 117440521 'summary' => 128 ) )
> 
> I don't understand which part of the array actually shows us that the
> verification went well. Do I have to compare the fingerprint or the status
> is enough. But then I get different statuses and don't know what they all
> mean. Same with summary. On other occasions I get different unexplainable
> results like status=>0 validity=>4. There is no documentation on what each
> of these means.

According to <http://www.php.net/manual/en/function.gnupg-verify.php>:

| Verifies the given signed_text and returns information about the
| signature.
| ...
| On success, this function returns information about the signature. On
| failure, this function returns FALSE.

So for basic verification it should suffice to check that the return
value !== false.

[xpost & fup2 php-general@xxxxxxxxxxxxx]

-- 
Christoph M. Becker

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux