xref: /titanic_44/usr/src/cmd/ssh/include/canohost.h (revision bde3d612a7c090234c60e6e4578821237a5db135)
1 /*	$OpenBSD: canohost.h,v 1.8 2001/06/26 17:27:23 markus Exp $	*/
2 
3 #ifndef	_CANOHOST_H
4 #define	_CANOHOST_H
5 
6 #pragma ident	"%Z%%M%	%I%	%E% SMI"
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 
13 /*
14  * Author: Tatu Ylonen <ylo@cs.hut.fi>
15  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
16  *                    All rights reserved
17  *
18  * As far as I am concerned, the code I have written for this software
19  * can be used freely for any purpose.  Any derived versions of this
20  * software must be clearly marked as such, and if the derived work is
21  * incompatible with the protocol description in the RFC file, it must be
22  * called by a name other than "ssh" or "Secure Shell".
23  */
24 
25 const char	*get_canonical_hostname(int);
26 const char	*get_remote_ipaddr(void);
27 const char	*get_remote_name_or_ip(u_int, int);
28 
29 char		*get_peer_ipaddr(int);
30 int		 get_peer_port(int);
31 char		*get_local_ipaddr(int);
32 char		*get_local_name(int);
33 
34 int		 get_remote_port(void);
35 int		 get_local_port(void);
36 
37 #ifdef __cplusplus
38 }
39 #endif
40 
41 #endif /* _CANOHOST_H */
42