summaryrefslogtreecommitdiff
path: root/sshkey.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2014-07-19 07:23:55 +1000
committerDarren Tucker <dtucker@zip.com.au>2014-07-19 07:23:55 +1000
commitd1a0421f8e5e933fee6fb58ee6b9a22c63c8a613 (patch)
tree3c065c3739686cbca02914fc6533e2dee92ae245 /sshkey.c
parentf0fe9ea1be62227c130b317769de3d1e736b6dc1 (diff)
- (dtucker) [key.c sshkey.c] Put new ecdsa bits inside ifdef OPENSSL_HAS_ECC.
Diffstat (limited to 'sshkey.c')
-rw-r--r--sshkey.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sshkey.c b/sshkey.c
index f957b061..14110cda 100644
--- a/sshkey.c
+++ b/sshkey.c
@@ -762,6 +762,7 @@ to_blob_buf(const struct sshkey *key, struct sshbuf *b, int force_plain)
(ret = sshbuf_put_bignum2(b, key->dsa->pub_key)) != 0)
return ret;
break;
+# ifdef OPENSSL_HAS_ECC
case KEY_ECDSA:
if (key->ecdsa == NULL)
return SSH_ERR_INVALID_ARGUMENT;
@@ -771,6 +772,7 @@ to_blob_buf(const struct sshkey *key, struct sshbuf *b, int force_plain)
(ret = sshbuf_put_eckey(b, key->ecdsa)) != 0)
return ret;
break;
+# endif
case KEY_RSA:
if (key->rsa == NULL)
return SSH_ERR_INVALID_ARGUMENT;