summaryrefslogtreecommitdiff
path: root/sshconnect.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshconnect.c')
-rw-r--r--sshconnect.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sshconnect.c b/sshconnect.c
index 1766de0c3..745eeb5c3 100644
--- a/sshconnect.c
+++ b/sshconnect.c
@@ -13,7 +13,7 @@
13 */ 13 */
14 14
15#include "includes.h" 15#include "includes.h"
16RCSID("$OpenBSD: sshconnect.c,v 1.108 2001/06/23 02:34:31 markus Exp $"); 16RCSID("$OpenBSD: sshconnect.c,v 1.109 2001/06/23 15:12:21 itojun Exp $");
17 17
18#include <openssl/bn.h> 18#include <openssl/bn.h>
19 19
@@ -44,7 +44,7 @@ extern int IPv4or6;
44/* 44/*
45 * Connect to the given ssh server using a proxy command. 45 * Connect to the given ssh server using a proxy command.
46 */ 46 */
47int 47static int
48ssh_proxy_connect(const char *host, u_short port, struct passwd *pw, 48ssh_proxy_connect(const char *host, u_short port, struct passwd *pw,
49 const char *proxy_command) 49 const char *proxy_command)
50{ 50{
@@ -144,7 +144,7 @@ ssh_proxy_connect(const char *host, u_short port, struct passwd *pw,
144/* 144/*
145 * Creates a (possibly privileged) socket for use as the ssh connection. 145 * Creates a (possibly privileged) socket for use as the ssh connection.
146 */ 146 */
147int 147static int
148ssh_create_socket(struct passwd *pw, int privileged, int family) 148ssh_create_socket(struct passwd *pw, int privileged, int family)
149{ 149{
150 int sock, gaierr; 150 int sock, gaierr;
@@ -345,7 +345,7 @@ ssh_connect(const char *host, struct sockaddr_storage * hostaddr,
345 * Waits for the server identification string, and sends our own 345 * Waits for the server identification string, and sends our own
346 * identification string. 346 * identification string.
347 */ 347 */
348void 348static void
349ssh_exchange_identification(void) 349ssh_exchange_identification(void)
350{ 350{
351 char buf[256], remote_version[256]; /* must be same size! */ 351 char buf[256], remote_version[256]; /* must be same size! */
@@ -444,7 +444,7 @@ ssh_exchange_identification(void)
444} 444}
445 445
446/* defaults to 'no' */ 446/* defaults to 'no' */
447int 447static int
448read_yes_or_no(const char *prompt, int defval) 448read_yes_or_no(const char *prompt, int defval)
449{ 449{
450 char buf[1024]; 450 char buf[1024];
@@ -500,7 +500,7 @@ read_yes_or_no(const char *prompt, int defval)
500 * is not valid. the user_hostfile will not be updated if 'readonly' is true. 500 * is not valid. the user_hostfile will not be updated if 'readonly' is true.
501 */ 501 */
502 502
503int 503static int
504check_host_key(char *host, struct sockaddr *hostaddr, Key *host_key, 504check_host_key(char *host, struct sockaddr *hostaddr, Key *host_key,
505 int readonly, const char *user_hostfile, const char *system_hostfile) 505 int readonly, const char *user_hostfile, const char *system_hostfile)
506{ 506{