diff options
author | Werner Koch <[email protected]> | 2005-08-05 14:46:59 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2005-08-05 14:46:59 +0000 |
commit | 2ce542ad523910effbf5418e3c21550b4038924d (patch) | |
tree | 0dab523a7b3d1525a995315f732a1522e2b9a622 /g10/keygen.c | |
parent | * gpg-zip.in: Add --decrypt functionality. Fix quoting so filenames (diff) | |
download | gnupg-2ce542ad523910effbf5418e3c21550b4038924d.tar.gz gnupg-2ce542ad523910effbf5418e3c21550b4038924d.zip |
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.
Diffstat (limited to 'g10/keygen.c')
-rw-r--r-- | g10/keygen.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/g10/keygen.c b/g10/keygen.c index 6c27cec90..fb93363e8 100644 --- a/g10/keygen.c +++ b/g10/keygen.c @@ -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; } |