mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-12 03:00:26 +09:00
Some cleanup for publickey_to_string().
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@543 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
@@ -671,7 +671,7 @@ STRING *publickey_to_string(PUBLIC_KEY *key) {
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
type = string_from_char(ssh_type_to_char(key->type));
|
type = string_from_char(key->type_c);
|
||||||
if (type == NULL) {
|
if (type == NULL) {
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
@@ -680,7 +680,7 @@ STRING *publickey_to_string(PUBLIC_KEY *key) {
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch(key->type){
|
switch (key->type) {
|
||||||
case TYPE_DSS:
|
case TYPE_DSS:
|
||||||
if (dsa_public_to_string(key->dsa_pub, buf) < 0) {
|
if (dsa_public_to_string(key->dsa_pub, buf) < 0) {
|
||||||
goto error;
|
goto error;
|
||||||
|
|||||||
Reference in New Issue
Block a user