From 42dda7b958a480f288ff7b627ef0d93d4fd9459b Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 16 Aug 2011 00:58:20 +0200 Subject: pki: Fix ssh_pki_publickey_to_base64() warnings. --- src/pki.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src') diff --git a/src/pki.c b/src/pki.c index 7dc55b7..9bd4f53 100644 --- a/src/pki.c +++ b/src/pki.c @@ -730,12 +730,8 @@ ssh_string ssh_pki_publickey_to_blob(const ssh_key key) int ssh_pki_publickey_to_base64(const ssh_key key, unsigned char **b64_key, enum ssh_keytypes_e *ptype) { - enum ssh_keytypes_e type; ssh_string key_str; - ssh_buffer key_buf; - char *type_c; unsigned char *b64; - int rc; if (key == NULL || b64_key == NULL || ptype == NULL) { return SSH_ERROR; @@ -746,11 +742,10 @@ int ssh_pki_publickey_to_base64(const ssh_key key, unsigned char **b64_key, return SSH_ERROR; } - b64 = bin_to_base64(ssh_string_data(key_str), ssh_string_len(key_str)); ssh_string_free(key_str); - *ptype = type; + *ptype = key->type; *b64_key = b64; return SSH_OK; -- cgit