|
|
@ -437,17 +437,20 @@ class enigma_driver_gnupg extends enigma_driver
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
protected function parse_signature($sig)
|
|
|
|
protected function parse_signature($sig)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$user = $sig->getUserId();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$data = new enigma_signature();
|
|
|
|
$data = new enigma_signature();
|
|
|
|
|
|
|
|
|
|
|
|
$data->id = $sig->getId();
|
|
|
|
$data->id = $sig->getId();
|
|
|
|
$data->valid = $sig->isValid();
|
|
|
|
$data->valid = $sig->isValid();
|
|
|
|
$data->fingerprint = $sig->getKeyFingerprint();
|
|
|
|
$data->fingerprint = $sig->getKeyFingerprint();
|
|
|
|
$data->created = $sig->getCreationDate();
|
|
|
|
$data->created = $sig->getCreationDate();
|
|
|
|
$data->expires = $sig->getExpirationDate();
|
|
|
|
$data->expires = $sig->getExpirationDate();
|
|
|
|
$data->name = $user->getName();
|
|
|
|
|
|
|
|
$data->comment = $user->getComment();
|
|
|
|
// In case of ERRSIG user may not be set
|
|
|
|
$data->email = $user->getEmail();
|
|
|
|
if ($user = $sig->getUserId()) {
|
|
|
|
|
|
|
|
$data->name = $user->getName();
|
|
|
|
|
|
|
|
$data->comment = $user->getComment();
|
|
|
|
|
|
|
|
$data->email = $user->getEmail();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return $data;
|
|
|
|
return $data;
|
|
|
|
}
|
|
|
|
}
|
|
|
|