Don't return Text and Signature when verified.

This commit is contained in:
the-djmaze 2022-01-18 15:06:45 +01:00
parent b8d898bc8a
commit 7ef1a8f14a

View file

@ -727,7 +727,9 @@ trait Messages
// GNUPG_SIGSUM_TOFU_CONFLICT = 'A TOFU conflict was detected.', // GNUPG_SIGSUM_TOFU_CONFLICT = 'A TOFU conflict was detected.',
]; ];
$result['Result'] = [ // Verified, so no need to return $result['Text'] and $result['Signature']
$result = [
'Result' => [
'fingerprint' => $info['fingerprint'], 'fingerprint' => $info['fingerprint'],
'validity' => $info['validity'], 'validity' => $info['validity'],
'status' => $info['status'], 'status' => $info['status'],
@ -735,6 +737,7 @@ trait Messages
'message' => \implode("\n", \array_filter($summary, function($k) use ($info) { 'message' => \implode("\n", \array_filter($summary, function($k) use ($info) {
return $info['summary'] & $k; return $info['summary'] & $k;
}, ARRAY_FILTER_USE_KEY)) }, ARRAY_FILTER_USE_KEY))
]
]; ];
} }