Request for a new status code for untrusted keys

Daiki Ueno ueno at unixuser.org
Tue Jan 30 06:52:10 CET 2007


>>>>> In <87y7nl3gql.fsf at wheatstone.g10code.de> 
>>>>>	Werner Koch <wk at gnupg.org> wrote:
> > When I encrypt to a user whose key is not marked as trusted, gpg shows
> > detail information about the key and asks me to confirm.  However, if
> > --no-tty is specified, there is no status code to indicate which
> > (sub)key is untrusted.

> What about this?

>   $ gpg2 --no-tty --status-fd=1 --command-fd=0 -r B15813FE --encrypt -o /dev/null /dev/null 
>   gpg: 2A9BEA2D: There is no assurance this key belongs to the named user
>   [GNUPG:] USERID_HINT 4447461B2A9BEA2D Daiki Ueno <ueno at unixuser.org>
>   [GNUPG:] GET_BOOL untrusted_key.override

> This has the advantage of reusing the USERID_HINT as used with the
> passphrase prompt.

> It will display the subkey but that should not be a problem.

Good idea.  I just made a change to epg.el to utilize it.

Thanks.
-- 
Daiki Ueno



More information about the Gnupg-devel mailing list