Show signer's uid in packet output

Greg Sabino Mullane greg at turnstep.com
Wed Jul 20 20:25:21 CEST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message


Small patch to implement signer's uid in parse-packet. Yes,
I came across someone actually using it! :)

--
Greg Sabino Mullane greg at turnstep.com
PGP Key: 0x14964AC8 200507201421
https://www.biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8


diff -c -r1.118 parse-packet.c
*** parse-packet.c      18 Jun 2005 11:49:50 -0000      1.118
--- parse-packet.c      20 Jul 2005 18:10:07 -0000
***************
*** 928,935 ****
  for( i=0; i < length; i++ )
    fprintf (listfp, " %02X", buffer[i] );
  break;
! case SIGSUBPKT_SIGNERS_UID:
!   p = "signer's user ID";
  break;
  case SIGSUBPKT_REVOC_REASON:
    if( length ) {
--- 928,941 ----
  for( i=0; i < length; i++ )
    fprintf (listfp, " %02X", buffer[i] );
  break;
! case SIGSUBPKT_SIGNERS_UID:
!   if(!length)
!     p="[invalid signer's user ID subpacket]";
!     else {
!       fputs("signer's user ID: \"", listfp );
!       print_string( listfp, buffer, length, '"' );
!       fputs("\"", listfp );
!     }
  break;
  case SIGSUBPKT_REVOC_REASON:
    if( length ) {

-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAkLelqQACgkQvJuQZxSWSshiHACfRqJ5ZJzN2u+r9sHfhXEy2kvi
uuIAoJn7ubUlMN7gK591a/IzL7Tj7V+G
=a2sI
-----END PGP SIGNATURE-----





More information about the Gnupg-devel mailing list