aboutsummaryrefslogtreecommitdiff
path: root/libssh/keys.c
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-04-18 10:59:53 +0000
committerAndreas Schneider <mail@cynapses.org>2009-04-18 10:59:53 +0000
commit263b8d4f9c561c5759af76ce6c37c9654549b5a8 (patch)
treec45546e232f6cca434ce9bc22f53ba820df36252 /libssh/keys.c
parentd20ae18b00e8926df925167a2a63234f654e3817 (diff)
downloadlibssh-263b8d4f9c561c5759af76ce6c37c9654549b5a8.tar.gz
libssh-263b8d4f9c561c5759af76ce6c37c9654549b5a8.tar.xz
libssh-263b8d4f9c561c5759af76ce6c37c9654549b5a8.zip
Some cleanup for publickey_to_string().
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@543 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/keys.c')
-rw-r--r--libssh/keys.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libssh/keys.c b/libssh/keys.c
index 039f8f1..02ec200 100644
--- a/libssh/keys.c
+++ b/libssh/keys.c
@@ -671,7 +671,7 @@ STRING *publickey_to_string(PUBLIC_KEY *key) {
return NULL;
}
- type = string_from_char(ssh_type_to_char(key->type));
+ type = string_from_char(key->type_c);
if (type == NULL) {
goto error;
}
@@ -680,7 +680,7 @@ STRING *publickey_to_string(PUBLIC_KEY *key) {
goto error;
}
- switch(key->type){
+ switch (key->type) {
case TYPE_DSS:
if (dsa_public_to_string(key->dsa_pub, buf) < 0) {
goto error;