mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpg: Re-add the revocation reason to the sigclass in a "rev" record.
* g10/import.c (get_revocation_reason): Fix setting of r_reason.
--
Note that gpgme has not yet support for parsing the revocation reason.
Due to the split of gpgme it was not tested with gpgmeqt which has its
own parser in its regression tests which kicked it when building
debian packages.
GnuPG-bug-id: 7083
Fixes-commit: 3f825b044b
This commit is contained in:
parent
63f64a3d8d
commit
e6592f2f46
2 changed files with 8 additions and 2 deletions
|
@ -3411,6 +3411,7 @@ get_revocation_reason (PKT_signature *sig, char **r_reason,
|
|||
size_t reason_n;
|
||||
const byte *reason_p;
|
||||
int reason_code = 0;
|
||||
const char *reason_string;
|
||||
char *freeme;
|
||||
|
||||
if (r_reason)
|
||||
|
@ -3427,9 +3428,11 @@ get_revocation_reason (PKT_signature *sig, char **r_reason,
|
|||
{
|
||||
reason_code = *reason_p;
|
||||
reason_n--; reason_p++;
|
||||
revocation_reason_code_to_str (reason_code, &freeme);
|
||||
if (r_reason)
|
||||
reason_string = revocation_reason_code_to_str (reason_code, &freeme);
|
||||
if (r_reason && freeme)
|
||||
*r_reason = freeme;
|
||||
else if (r_reason && reason_string)
|
||||
*r_reason = xstrdup (reason_string);
|
||||
else
|
||||
xfree (freeme);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue