summaryrefslogtreecommitdiff
path: root/ssh-agent.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2010-09-10 11:39:26 +1000
committerDamien Miller <djm@mindrot.org>2010-09-10 11:39:26 +1000
commit6af914a15c0c33e8b5bab5ca61919b8562ff1db9 (patch)
treeb87546d8a88a05e6fd600cbb2b8c0b132278cb10 /ssh-agent.c
parent041ab7c1e7d6514ed84a539a767f79ffb356e807 (diff)
- (djm) [authfd.c authfile.c bufec.c buffer.h configure.ac kex.h kexecdh.c]
[kexecdhc.c kexecdhs.c key.c key.h myproposal.h packet.c readconf.c] [ssh-agent.c ssh-ecdsa.c ssh-keygen.c ssh.c] Disable ECDH and ECDSA on platforms that don't have the requisite OpenSSL support. ok dtucker@
Diffstat (limited to 'ssh-agent.c')
-rw-r--r--ssh-agent.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ssh-agent.c b/ssh-agent.c
index 87939b2b6..8f19fb157 100644
--- a/ssh-agent.c
+++ b/ssh-agent.c
@@ -468,8 +468,10 @@ process_add_identity(SocketEntry *e, int version)
468 int type, success = 0, death = 0, confirm = 0; 468 int type, success = 0, death = 0, confirm = 0;
469 char *type_name, *comment, *curve; 469 char *type_name, *comment, *curve;
470 Key *k = NULL; 470 Key *k = NULL;
471#ifdef OPENSSL_HAS_ECC
471 BIGNUM *exponent; 472 BIGNUM *exponent;
472 EC_POINT *q; 473 EC_POINT *q;
474#endif
473 u_char *cert; 475 u_char *cert;
474 u_int len; 476 u_int len;
475 477
@@ -510,6 +512,7 @@ process_add_identity(SocketEntry *e, int version)
510 key_add_private(k); 512 key_add_private(k);
511 buffer_get_bignum2(&e->request, k->dsa->priv_key); 513 buffer_get_bignum2(&e->request, k->dsa->priv_key);
512 break; 514 break;
515#ifdef OPENSSL_HAS_ECC
513 case KEY_ECDSA: 516 case KEY_ECDSA:
514 k = key_new_private(type); 517 k = key_new_private(type);
515 k->ecdsa_nid = key_ecdsa_nid_from_name(type_name); 518 k->ecdsa_nid = key_ecdsa_nid_from_name(type_name);
@@ -561,6 +564,7 @@ process_add_identity(SocketEntry *e, int version)
561 fatal("%s: bad ECDSA key", __func__); 564 fatal("%s: bad ECDSA key", __func__);
562 BN_clear_free(exponent); 565 BN_clear_free(exponent);
563 break; 566 break;
567#endif /* OPENSSL_HAS_ECC */
564 case KEY_RSA: 568 case KEY_RSA:
565 k = key_new_private(type); 569 k = key_new_private(type);
566 buffer_get_bignum2(&e->request, k->rsa->n); 570 buffer_get_bignum2(&e->request, k->rsa->n);