Some questions

David Shaw dshaw at jabberwocky.com
Mon Jul 29 23:35:02 CEST 2002


On Mon, Jul 29, 2002 at 09:41:18PM +1000, loune wrote:
> Hi,
> 
> As I am making a frontend for gpg, I have some questions:
> 
> 1) Is the attribute-fd/status-fd output in any kind of synchronization with
> stdout when listing keys?
> i.e. does it:
> print (stdout) pub:e:bla:bla
> print (stdout) uid:e:bla:bla
> print (stdout) uat:e:bla:bla
> print (status-fd) ATTRIBUTE bla bla
> print (attribute-fd) <16><JPG DATA>
> -- wait until attribute packet printing finishes, then print the next
> entry --
> print (stdout) uid:e:bla:bla

Yes.  Even if things change in the future, it will always have to at
least keep the status-fd ATTRIBUTE and the attribute-fd data in sync
for them to be useful.

> 2) How can I accurately find the --edit-key uid/subkey ids/order?
> Is there a --with-colons equivalent for that (--edit-key list)?

Sure: --with-colons --edit-key.  You can use them together. :)

> 3) I have found that --edit-key adduid does not take names starting with a
> UTF-8 character (non-ANSI ones), Is this a bug or a feature? the batch
> gen-key seems to accept this....

Hmm.  What is the error that is returned when you do this?

> 4) Lastly, I have some queries about the 5 character length requirement that
> the adduid has in place:
> - Is it required to be OpenPGP compliant?

No.  OpenPGP does not require any details about the contents of a user
ID.  In fact, it's not even required to be text (but there is such a
base of implementations that expect text, someone would be foolish to
put binary data in there). The --allow-freeform-uid flag turns off the
length requirement (as well as the "Name (comment)
<userid at example.com>" syntax check).

> - If it is required, Does the requirement compensate for languages in other
> cultures? -- for example, in the chinese language, normal names are 3
> characters long
> - I tried a 3 character (non-ansi) UTF-8 and it got passed the check. Does
> GPG check the length of the UTF-8 text as if they were ANSI characters?

Yes, it's a strlen() check.

David

-- 
   David Shaw  |  dshaw at jabberwocky.com  |  WWW http://www.jabberwocky.com/
+---------------------------------------------------------------------------+
   "There are two major products that come out of Berkeley: LSD and UNIX.
      We don't believe this to be a coincidence." - Jeremy S. Anderson




More information about the Gnupg-devel mailing list