summaryrefslogtreecommitdiff
path: root/canohost.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-06-25 05:01:22 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-06-25 05:01:22 +0000
commitbba81213b972ce15fbbaca60b9ffabb42371ce8f (patch)
treee6bd40752969f2b93d179cfb9aaae9074ca45956 /canohost.c
parent34f91883a6f3123656b0a8017d68b658f7cf2403 (diff)
- itojun@cvs.openbsd.org 2001/06/23 15:12:20
[auth1.c auth2.c auth2-chall.c authfd.c authfile.c auth-rhosts.c canohost.c channels.c cipher.c clientloop.c deattack.c dh.c hostfile.c kex.c kexdh.c kexgex.c key.c nchan.c packet.c radix.c readpass.c scp.c servconf.c serverloop.c session.c sftp.c sftp-client.c sftp-glob.c sftp-int.c sftp-server.c ssh-add.c ssh-agent.c ssh.c sshconnect1.c sshconnect2.c sshconnect.c sshd.c ssh-keygen.c ssh-keyscan.c] more strict prototypes. raise warning level in Makefile.inc. markus ok'ed TODO; cleanup headers
Diffstat (limited to 'canohost.c')
-rw-r--r--canohost.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/canohost.c b/canohost.c
index 5d345eb27..6e6a04505 100644
--- a/canohost.c
+++ b/canohost.c
@@ -12,21 +12,21 @@
12 */ 12 */
13 13
14#include "includes.h" 14#include "includes.h"
15RCSID("$OpenBSD: canohost.c,v 1.26 2001/04/18 14:15:00 markus Exp $"); 15RCSID("$OpenBSD: canohost.c,v 1.27 2001/06/23 15:12:17 itojun Exp $");
16 16
17#include "packet.h" 17#include "packet.h"
18#include "xmalloc.h" 18#include "xmalloc.h"
19#include "log.h" 19#include "log.h"
20#include "canohost.h" 20#include "canohost.h"
21 21
22void check_ip_options(int socket, char *ipaddr); 22static void check_ip_options(int, char *);
23 23
24/* 24/*
25 * Return the canonical name of the host at the other end of the socket. The 25 * Return the canonical name of the host at the other end of the socket. The
26 * caller should free the returned string with xfree. 26 * caller should free the returned string with xfree.
27 */ 27 */
28 28
29char * 29static char *
30get_remote_hostname(int socket, int reverse_mapping_check) 30get_remote_hostname(int socket, int reverse_mapping_check)
31{ 31{
32 struct sockaddr_storage from; 32 struct sockaddr_storage from;
@@ -140,7 +140,7 @@ get_remote_hostname(int socket, int reverse_mapping_check)
140 * exit here if we detect any IP options. 140 * exit here if we detect any IP options.
141 */ 141 */
142/* IPv4 only */ 142/* IPv4 only */
143void 143static void
144check_ip_options(int socket, char *ipaddr) 144check_ip_options(int socket, char *ipaddr)
145{ 145{
146 u_char options[200]; 146 u_char options[200];
@@ -202,7 +202,7 @@ get_canonical_hostname(int reverse_mapping_check)
202 * Returns the remote IP-address of socket as a string. The returned 202 * Returns the remote IP-address of socket as a string. The returned
203 * string must be freed. 203 * string must be freed.
204 */ 204 */
205char * 205static char *
206get_socket_address(int socket, int remote, int flags) 206get_socket_address(int socket, int remote, int flags)
207{ 207{
208 struct sockaddr_storage addr; 208 struct sockaddr_storage addr;
@@ -293,7 +293,7 @@ get_remote_name_or_ip(u_int utmp_len, int reverse_mapping_check)
293 293
294/* Returns the local/remote port for the socket. */ 294/* Returns the local/remote port for the socket. */
295 295
296int 296static int
297get_sock_port(int sock, int local) 297get_sock_port(int sock, int local)
298{ 298{
299 struct sockaddr_storage from; 299 struct sockaddr_storage from;
@@ -323,7 +323,7 @@ get_sock_port(int sock, int local)
323 323
324/* Returns remote/local port number for the current connection. */ 324/* Returns remote/local port number for the current connection. */
325 325
326int 326static int
327get_port(int local) 327get_port(int local)
328{ 328{
329 /* 329 /*