aboutsummaryrefslogtreecommitdiffstats
path: root/g10/getkey.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2004-08-23 17:55:49 +0000
committerDavid Shaw <[email protected]>2004-08-23 17:55:49 +0000
commit9d4327ba4dc26fb33531ffecf07f673ba65d0637 (patch)
tree93cb24c58557a8461ccd2c1fae8b0943f99c04c1 /g10/getkey.c
parent* gpgkeys_hkp.c (dehtmlize): Understand the quote character (i.e. (diff)
downloadgnupg-9d4327ba4dc26fb33531ffecf07f673ba65d0637.tar.gz
gnupg-9d4327ba4dc26fb33531ffecf07f673ba65d0637.zip
* keydb.h, getkey.c (get_user_id_printable): Rename to get_user_id_native
and remove the printable stuff since we're print-ifying valid utf8 characters. Change all callers in import.c, sign.c, keylist.c, and encode.c.
Diffstat (limited to 'g10/getkey.c')
-rw-r--r--g10/getkey.c28
1 files changed, 12 insertions, 16 deletions
diff --git a/g10/getkey.c b/g10/getkey.c
index b6c08a5f6..3002e1e9b 100644
--- a/g10/getkey.c
+++ b/g10/getkey.c
@@ -1,5 +1,5 @@
/* getkey.c - Get a key from the database
- * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003
+ * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003,
* 2004 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
@@ -2632,14 +2632,12 @@ get_user_id_string( u32 *keyid )
char*
-get_user_id_string_printable ( u32 *keyid )
+get_user_id_string_native ( u32 *keyid )
{
- char *p = get_user_id_string( keyid );
- char *p2 = utf8_to_native( p, strlen(p), 0 );
- m_free(p);
- p = make_printable_string (p2, strlen (p2), 0);
- m_free (p2);
- return p;
+ char *p = get_user_id_string( keyid );
+ char *p2 = utf8_to_native( p, strlen(p), 0 );
+ m_free(p);
+ return p2;
}
@@ -2696,15 +2694,13 @@ get_user_id( u32 *keyid, size_t *rn )
}
char*
-get_user_id_printable( u32 *keyid )
+get_user_id_native( u32 *keyid )
{
- size_t rn;
- char *p = get_user_id( keyid, &rn );
- char *p2 = utf8_to_native( p, rn, 0 );
- m_free(p);
- p = make_printable_string (p2, strlen (p2), 0);
- m_free (p2);
- return p;
+ size_t rn;
+ char *p = get_user_id( keyid, &rn );
+ char *p2 = utf8_to_native( p, rn, 0 );
+ m_free(p);
+ return p2;
}
KEYDB_HANDLE