summaryrefslogtreecommitdiffstats
path: root/g10/keygen.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2005-07-28 20:59:36 +0200
committerWerner Koch <wk@gnupg.org>2005-07-28 20:59:36 +0200
commit986a137c58cae8dc7210ccf51cdea38ec6e8828f (patch)
tree4f847f04509fc74a1fa6db4839abd5d41c80eb9c /g10/keygen.c
parentConverted all m_free to xfree etc. (diff)
downloadgnupg2-986a137c58cae8dc7210ccf51cdea38ec6e8828f.tar.xz
gnupg2-986a137c58cae8dc7210ccf51cdea38ec6e8828f.zip
Implemented PKA trust model
Diffstat (limited to 'g10/keygen.c')
-rw-r--r--g10/keygen.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/g10/keygen.c b/g10/keygen.c
index ca20ed8e8..a657c13c9 100644
--- a/g10/keygen.c
+++ b/g10/keygen.c
@@ -1609,27 +1609,6 @@ ask_expiredate()
return x? make_timestamp() + x : 0;
}
-static int
-has_invalid_email_chars( const char *s )
-{
- int at_seen=0;
- static char valid_chars[] = "01234567890_-."
- "abcdefghijklmnopqrstuvwxyz"
- "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
-
- for( ; *s; s++ ) {
- if( *s & 0x80 )
- return 1;
- if( *s == '@' )
- at_seen=1;
- else if( !at_seen && !( !!strchr( valid_chars, *s ) || *s == '+' ) )
- return 1;
- else if( at_seen && !strchr( valid_chars, *s ) )
- return 1;
- }
- return 0;
-}
-
static char *
ask_user_id( int mode )