summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sshd.c b/sshd.c
index 52a3789bb..658a4978d 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshd.c,v 1.377 2010/08/16 04:06:06 djm Exp $ */ 1/* $OpenBSD: sshd.c,v 1.378 2010/08/31 11:54:45 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -733,6 +733,7 @@ list_hostkey_types(void)
733 switch (key->type) { 733 switch (key->type) {
734 case KEY_RSA: 734 case KEY_RSA:
735 case KEY_DSA: 735 case KEY_DSA:
736 case KEY_ECDSA:
736 if (buffer_len(&b) > 0) 737 if (buffer_len(&b) > 0)
737 buffer_append(&b, ",", 1); 738 buffer_append(&b, ",", 1);
738 p = key_ssh_name(key); 739 p = key_ssh_name(key);
@@ -748,6 +749,7 @@ list_hostkey_types(void)
748 case KEY_DSA_CERT_V00: 749 case KEY_DSA_CERT_V00:
749 case KEY_RSA_CERT: 750 case KEY_RSA_CERT:
750 case KEY_DSA_CERT: 751 case KEY_DSA_CERT:
752 case KEY_ECDSA_CERT:
751 if (buffer_len(&b) > 0) 753 if (buffer_len(&b) > 0)
752 buffer_append(&b, ",", 1); 754 buffer_append(&b, ",", 1);
753 p = key_ssh_name(key); 755 p = key_ssh_name(key);
@@ -774,6 +776,7 @@ get_hostkey_by_type(int type, int need_private)
774 case KEY_DSA_CERT_V00: 776 case KEY_DSA_CERT_V00:
775 case KEY_RSA_CERT: 777 case KEY_RSA_CERT:
776 case KEY_DSA_CERT: 778 case KEY_DSA_CERT:
779 case KEY_ECDSA_CERT:
777 key = sensitive_data.host_certificates[i]; 780 key = sensitive_data.host_certificates[i];
778 break; 781 break;
779 default: 782 default:
@@ -1576,6 +1579,7 @@ main(int ac, char **av)
1576 break; 1579 break;
1577 case KEY_RSA: 1580 case KEY_RSA:
1578 case KEY_DSA: 1581 case KEY_DSA:
1582 case KEY_ECDSA:
1579 sensitive_data.have_ssh2_key = 1; 1583 sensitive_data.have_ssh2_key = 1;
1580 break; 1584 break;
1581 } 1585 }
@@ -2302,6 +2306,7 @@ do_ssh2_kex(void)
2302 kex->kex[KEX_DH_GRP14_SHA1] = kexdh_server; 2306 kex->kex[KEX_DH_GRP14_SHA1] = kexdh_server;
2303 kex->kex[KEX_DH_GEX_SHA1] = kexgex_server; 2307 kex->kex[KEX_DH_GEX_SHA1] = kexgex_server;
2304 kex->kex[KEX_DH_GEX_SHA256] = kexgex_server; 2308 kex->kex[KEX_DH_GEX_SHA256] = kexgex_server;
2309 kex->kex[KEX_ECDH_SHA2] = kexecdh_server;
2305 kex->server = 1; 2310 kex->server = 1;
2306 kex->client_version_string=client_version_string; 2311 kex->client_version_string=client_version_string;
2307 kex->server_version_string=server_version_string; 2312 kex->server_version_string=server_version_string;