mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
auto retrieve keys from PKA. Thsi allows to specify an email address
so that gpg can get the key from DNS. This helps with opportunistic encryption. No integration with the trust modell yet.
This commit is contained in:
parent
433038b4a9
commit
2ce542ad52
10 changed files with 491 additions and 313 deletions
|
@ -1655,13 +1655,8 @@ ask_user_id( int mode )
|
|||
cpr_kill_prompt();
|
||||
if( !*amail || opt.allow_freeform_uid )
|
||||
break; /* no email address is okay */
|
||||
else if( has_invalid_email_chars(amail)
|
||||
|| string_count_chr(amail,'@') != 1
|
||||
|| *amail == '@'
|
||||
|| amail[strlen(amail)-1] == '@'
|
||||
|| amail[strlen(amail)-1] == '.'
|
||||
|| strstr(amail, "..") )
|
||||
tty_printf(_("Not a valid email address\n"));
|
||||
else if ( !is_valid_mailbox (amail) )
|
||||
tty_printf(_("Not a valid email address\n"));
|
||||
else
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue