diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2012-01-06 21:54:39 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2012-02-04 18:37:05 +0100 |
commit | 679cd9efd8e369f7a727314bb2bab00da211b999 (patch) | |
tree | 568877394e31aebdfd222d01b13330b1195ec4f0 /src/pki.c | |
parent | ae59049347eaa325315c3c2d77593ed8000faf7d (diff) | |
download | libssh-679cd9efd8e369f7a727314bb2bab00da211b999.tar.gz libssh-679cd9efd8e369f7a727314bb2bab00da211b999.tar.xz libssh-679cd9efd8e369f7a727314bb2bab00da211b999.zip |
pki: Fix build if you don't have ECC support.
Diffstat (limited to 'src/pki.c')
-rw-r--r-- | src/pki.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -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); |