diff options
author | Darren Tucker <dtucker@zip.com.au> | 2014-07-19 07:23:55 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2014-07-19 07:23:55 +1000 |
commit | d1a0421f8e5e933fee6fb58ee6b9a22c63c8a613 (patch) | |
tree | 3c065c3739686cbca02914fc6533e2dee92ae245 /sshkey.c | |
parent | f0fe9ea1be62227c130b317769de3d1e736b6dc1 (diff) |
- (dtucker) [key.c sshkey.c] Put new ecdsa bits inside ifdef OPENSSL_HAS_ECC.
Diffstat (limited to 'sshkey.c')
-rw-r--r-- | sshkey.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -762,6 +762,7 @@ to_blob_buf(const struct sshkey *key, struct sshbuf *b, int force_plain) | |||
762 | (ret = sshbuf_put_bignum2(b, key->dsa->pub_key)) != 0) | 762 | (ret = sshbuf_put_bignum2(b, key->dsa->pub_key)) != 0) |
763 | return ret; | 763 | return ret; |
764 | break; | 764 | break; |
765 | # ifdef OPENSSL_HAS_ECC | ||
765 | case KEY_ECDSA: | 766 | case KEY_ECDSA: |
766 | if (key->ecdsa == NULL) | 767 | if (key->ecdsa == NULL) |
767 | return SSH_ERR_INVALID_ARGUMENT; | 768 | return SSH_ERR_INVALID_ARGUMENT; |
@@ -771,6 +772,7 @@ to_blob_buf(const struct sshkey *key, struct sshbuf *b, int force_plain) | |||
771 | (ret = sshbuf_put_eckey(b, key->ecdsa)) != 0) | 772 | (ret = sshbuf_put_eckey(b, key->ecdsa)) != 0) |
772 | return ret; | 773 | return ret; |
773 | break; | 774 | break; |
775 | # endif | ||
774 | case KEY_RSA: | 776 | case KEY_RSA: |
775 | if (key->rsa == NULL) | 777 | if (key->rsa == NULL) |
776 | return SSH_ERR_INVALID_ARGUMENT; | 778 | return SSH_ERR_INVALID_ARGUMENT; |