summaryrefslogtreecommitdiff
path: root/ssh-pkcs11-helper.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2019-05-17 10:54:51 +1000
committerDarren Tucker <dtucker@dtucker.net>2019-05-17 10:54:51 +1000
commit97370f6c2c3b825f8c577b7e6c00b1a98d30a6cf (patch)
tree217d73211fcf07d34c96c7294a295bbe589d81fd /ssh-pkcs11-helper.c
parent633703babf8d9a88da85f23b800e1b88dec7cdbd (diff)
Fix building w/out ECC.
Ifdef out ECC specific code so that that it'll build against an OpenSSL configured w/out ECC. With & ok djm@
Diffstat (limited to 'ssh-pkcs11-helper.c')
-rw-r--r--ssh-pkcs11-helper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ssh-pkcs11-helper.c b/ssh-pkcs11-helper.c
index 807ceb660..cb873e20b 100644
--- a/ssh-pkcs11-helper.c
+++ b/ssh-pkcs11-helper.c
@@ -206,6 +206,7 @@ process_sign(void)
206 slen = ret; 206 slen = ret;
207 ok = 0; 207 ok = 0;
208 } 208 }
209#ifdef OPENSSL_HAS_ECC
209 } else if (key->type == KEY_ECDSA) { 210 } else if (key->type == KEY_ECDSA) {
210 u_int xslen = ECDSA_size(key->ecdsa); 211 u_int xslen = ECDSA_size(key->ecdsa);
211 212
@@ -219,6 +220,7 @@ process_sign(void)
219 error("%s: ECDSA_sign" 220 error("%s: ECDSA_sign"
220 " returns %d", __func__, ret); 221 " returns %d", __func__, ret);
221 slen = xslen; 222 slen = xslen;
223#endif /* OPENSSL_HAS_ECC */
222 } else 224 } else
223 error("%s: don't know how to sign with key " 225 error("%s: don't know how to sign with key "
224 "type %d", __func__, (int)key->type); 226 "type %d", __func__, (int)key->type);