1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-08 19:02:06 +03:00

pki: Fix build if you don't have ECC support.

This commit is contained in:
Andreas Schneider
2012-01-06 21:54:39 +01:00
parent ae59049347
commit 679cd9efd8
3 changed files with 34 additions and 14 deletions

View File

@@ -730,7 +730,6 @@ int ssh_pki_import_pubkey_blob(const ssh_string key_blob,
ssh_buffer buffer;
ssh_string type_s = NULL;
enum ssh_keytypes_e type;
int nid;
int rc;
if (key_blob == NULL || pkey == NULL) {
@@ -761,13 +760,6 @@ int ssh_pki_import_pubkey_blob(const ssh_string key_blob,
ssh_pki_log("Unknown key type found!");
goto fail;
}
if (type == SSH_KEYTYPE_ECDSA) {
nid = pki_key_ecdsa_nid_from_name(ssh_string_get_char(type_s));
if (nid == -1) {
ssh_pki_log("Unknown nid found!");
goto fail;
}
}
ssh_string_free(type_s);
rc = pki_import_pubkey_buffer(buffer, type, pkey);