diff options
author | Werner Koch <[email protected]> | 2009-01-08 19:56:30 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2009-01-08 19:56:30 +0000 |
commit | 7784e86a66928fe88ba040b1eecf30300c0a1496 (patch) | |
tree | 0e50de2dfb62e152a80be598498f986c326a65d0 /g10/misc.c | |
parent | Fix error detection (diff) | |
download | gnupg-7784e86a66928fe88ba040b1eecf30300c0a1496.tar.gz gnupg-7784e86a66928fe88ba040b1eecf30300c0a1496.zip |
Add limited support for NetKey 3.0 cards.
Diffstat (limited to '')
-rw-r--r-- | g10/misc.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/g10/misc.c b/g10/misc.c index 5325faab9..b0e5e2ce1 100644 --- a/g10/misc.c +++ b/g10/misc.c @@ -1248,17 +1248,16 @@ unescape_percent_string (const unsigned char *s) } -/* Check whether the string has characters not valid in an RFC822 +/* Check whether the string has characters not valid in an RFC-822 address. To cope with OpenPGP we ignore allow non-ascii characters so that for example umlauts are legal in an email address. An - OpenPGP user ID must be utf-8 encoded and tehre is no strict + OpenPGP user ID must be utf-8 encoded but there is no strict requirement for RFC-822. Thus to avoid IDNA encoding we put the - address verbatim as utf-8 into the user ID under the assumtiopn - that mail programs etc handle IDNA at a lower level and take - OpenPGP user IDS as utf-8. Note that we can't do an utf-8 encoding - checking here becuase in keygen.c this function is called with the - native encoding and native to utf-8 encoding is done only after - checking. */ + address verbatim as utf-8 into the user ID under the assumption + that mail programs handle IDNA at a lower level and take OpenPGP + user IDs as utf-8. Note that we can't do an utf-8 encoding + checking here because in keygen.c this function is called with the + native encoding and native to utf-8 encoding is only done later. */ int has_invalid_email_chars (const char *s) { |