UID ordering

Christian Danner gnupg-devel_list at danner-net.de
Sat Feb 17 11:49:06 CET 2007


Hello David!

On Fri, 16 Feb 2007 15:00:42 -0500, David Shaw <dshaw at jabberwocky.com>
wrote:

>No.  Like I said, there is a signature subpacket that tags the UID as
>the primary one.  If you don't tag any UID, then GnuPG will sort the
>most recent one first, but that doesn't make it primary.

>The most recent of the UIDs tagged as primary will be treated as the
>"true" primary.

I finally got it: I have to parse the output of a '--list-sigs
--list-options show-sig-subpackets --with-colons --fixed-list-mode
--with-fingerprint' command for subpackets type 25 'primary user ID'
('spk:25:') and, based on those, select the primary uid with the most
recent self-signature. If there are none the 'normal' uid with the
most recent self-signature wins, which, however, is arbitrary.

Many thanks and
kind regards

Christian
-- 
OmniMix .. protect your privacy
http://www.danner-net.de/om.htm



More information about the Gnupg-devel mailing list