|
Lines 1599-1608
main(int ac, char **av)
Link Here
|
| 1599 |
/* Get a connection, either from inetd or a listening TCP socket */ |
1599 |
/* Get a connection, either from inetd or a listening TCP socket */ |
| 1600 |
if (inetd_flag) { |
1600 |
if (inetd_flag) { |
| 1601 |
server_accept_inetd(&sock_in, &sock_out); |
1601 |
server_accept_inetd(&sock_in, &sock_out); |
| 1602 |
|
|
|
| 1603 |
if ((options.protocol & SSH_PROTO_1) && |
| 1604 |
sensitive_data.server_key == NULL) |
| 1605 |
generate_ephemeral_server_key(); |
| 1606 |
} else { |
1602 |
} else { |
| 1607 |
server_listen(); |
1603 |
server_listen(); |
| 1608 |
|
1604 |
|
|
Lines 1772-1777
main(int ac, char **av)
Link Here
|
| 1772 |
|
1768 |
|
| 1773 |
sshd_exchange_identification(sock_in, sock_out); |
1769 |
sshd_exchange_identification(sock_in, sock_out); |
| 1774 |
|
1770 |
|
|
|
1771 |
/* In inetd mode, generate ephemeral key only for proto 1 connections */ |
| 1772 |
if (!compat20 && inetd_flag && sensitive_data.server_key == NULL) |
| 1773 |
generate_ephemeral_server_key(); |
| 1774 |
|
| 1775 |
packet_set_nonblocking(); |
1775 |
packet_set_nonblocking(); |
| 1776 |
|
1776 |
|
| 1777 |
/* allocate authentication context */ |
1777 |
/* allocate authentication context */ |