summaryrefslogtreecommitdiff
path: root/canohost.h
diff options
context:
space:
mode:
Diffstat (limited to 'canohost.h')
-rw-r--r--canohost.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/canohost.h b/canohost.h
index 982ec5949..da60b3af9 100644
--- a/canohost.h
+++ b/canohost.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: canohost.h,v 1.3 2001/01/29 19:42:35 markus Exp $ */ 1/* $OpenBSD: canohost.h,v 1.4 2001/02/03 10:08:37 markus Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -11,22 +11,17 @@
11 * incompatible with the protocol description in the RFC file, it must be 11 * incompatible with the protocol description in the RFC file, it must be
12 * called by a name other than "ssh" or "Secure Shell". 12 * called by a name other than "ssh" or "Secure Shell".
13 */ 13 */
14/*
15 * Returns the name of the machine at the other end of the socket. The
16 * returned string should be freed by the caller.
17 */
18char *get_remote_hostname(int socket);
19 14
20/* 15/*
21 * Return the canonical name of the host in the other side of the current 16 * Return the canonical name of the host in the other side of the current
22 * connection (as returned by packet_get_connection). The host name is 17 * connection (as returned by packet_get_connection). The host name is
23 * cached, so it is efficient to call this several times. 18 * cached, so it is efficient to call this several times.
24 */ 19 */
25const char *get_canonical_hostname(void); 20const char *get_canonical_hostname(int reverse_mapping_check);
26 21
27/* 22/*
28 * Returns the IP-address of the remote host as a string. The returned 23 * Returns the IP-address of the remote host as a string. The returned
29 * string must not be freed. 24 * string is cached and must not be freed.
30 */ 25 */
31const char *get_remote_ipaddr(void); 26const char *get_remote_ipaddr(void);
32 27