diff options
Diffstat (limited to 'g10/getkey.c')
-rw-r--r-- | g10/getkey.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/g10/getkey.c b/g10/getkey.c index 87680502a..1f13dcacf 100644 --- a/g10/getkey.c +++ b/g10/getkey.c @@ -2323,13 +2323,14 @@ get_user_id_string( u32 *keyid ) char* -get_user_id_string_native( u32 *keyid ) +get_user_id_string_printable ( u32 *keyid ) { char *p = get_user_id_string( keyid ); char *p2 = utf8_to_native( p, strlen(p), 0 ); - m_free(p); - return p2; + p = make_printable_string (p2, strlen (p2), 0); + m_free (p2); + return p; } @@ -2386,17 +2387,19 @@ get_user_id( u32 *keyid, size_t *rn ) } char* -get_user_id_native( u32 *keyid ) +get_user_id_printable( u32 *keyid ) { size_t rn; - char *p = get_user_id( keyid, &rn ); char *p2 = utf8_to_native( p, rn, 0 ); - m_free(p); - return p2; + p = make_printable_string (p2, strlen (p2), 0); + m_free (p2); + return p; } + + KEYDB_HANDLE get_ctx_handle(GETKEY_CTX ctx) { |