diff options
Diffstat (limited to 'ssh.h')
-rw-r--r-- | ssh.h | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -13,7 +13,7 @@ | |||
13 | * | 13 | * |
14 | */ | 14 | */ |
15 | 15 | ||
16 | /* RCSID("$Id: ssh.h,v 1.23 1999/12/30 04:50:55 damien Exp $"); */ | 16 | /* RCSID("$Id: ssh.h,v 1.24 2000/01/14 04:45:52 damien Exp $"); */ |
17 | 17 | ||
18 | #ifndef SSH_H | 18 | #ifndef SSH_H |
19 | #define SSH_H | 19 | #define SSH_H |
@@ -21,6 +21,8 @@ | |||
21 | #include <netinet/in.h> /* For struct sockaddr_in */ | 21 | #include <netinet/in.h> /* For struct sockaddr_in */ |
22 | #include <pwd.h> /* For struct pw */ | 22 | #include <pwd.h> /* For struct pw */ |
23 | #include <stdarg.h> /* For va_list */ | 23 | #include <stdarg.h> /* For va_list */ |
24 | #include <sys/socket.h> /* For struct sockaddr_storage */ | ||
25 | #include "fake-socket.h" /* For struct sockaddr_storage */ | ||
24 | #ifdef HAVE_SYS_SELECT_H | 26 | #ifdef HAVE_SYS_SELECT_H |
25 | # include <sys/select.h> | 27 | # include <sys/select.h> |
26 | #endif | 28 | #endif |
@@ -284,7 +286,7 @@ get_last_login_time(uid_t uid, const char *logname, | |||
284 | */ | 286 | */ |
285 | void | 287 | void |
286 | record_login(int pid, const char *ttyname, const char *user, uid_t uid, | 288 | record_login(int pid, const char *ttyname, const char *user, uid_t uid, |
287 | const char *host, struct sockaddr_in * addr); | 289 | const char *host, struct sockaddr *addr); |
288 | 290 | ||
289 | /* | 291 | /* |
290 | * Records that the user has logged out. This does many thigs normally done | 292 | * Records that the user has logged out. This does many thigs normally done |
@@ -304,7 +306,7 @@ void record_logout(int pid, const char *ttyname); | |||
304 | * packet_set_connection for the connection. | 306 | * packet_set_connection for the connection. |
305 | */ | 307 | */ |
306 | int | 308 | int |
307 | ssh_connect(const char *host, struct sockaddr_in * hostaddr, | 309 | ssh_connect(const char *host, struct sockaddr_storage * hostaddr, |
308 | u_short port, int connection_attempts, | 310 | u_short port, int connection_attempts, |
309 | int anonymous, uid_t original_real_uid, | 311 | int anonymous, uid_t original_real_uid, |
310 | const char *proxy_command); | 312 | const char *proxy_command); |
@@ -320,7 +322,7 @@ ssh_connect(const char *host, struct sockaddr_in * hostaddr, | |||
320 | 322 | ||
321 | void | 323 | void |
322 | ssh_login(int host_key_valid, RSA * host_key, const char *host, | 324 | ssh_login(int host_key_valid, RSA * host_key, const char *host, |
323 | struct sockaddr_in * hostaddr, uid_t original_real_uid); | 325 | struct sockaddr * hostaddr, uid_t original_real_uid); |
324 | 326 | ||
325 | /*------------ Definitions for various authentication methods. -------*/ | 327 | /*------------ Definitions for various authentication methods. -------*/ |
326 | 328 | ||
@@ -380,8 +382,10 @@ const char *get_remote_ipaddr(void); | |||
380 | /* Returns the port number of the peer of the socket. */ | 382 | /* Returns the port number of the peer of the socket. */ |
381 | int get_peer_port(int sock); | 383 | int get_peer_port(int sock); |
382 | 384 | ||
383 | /* Returns the port number of the remote host. */ | 385 | /* Returns the port number of the remote/local host. */ |
384 | int get_remote_port(void); | 386 | int get_remote_port(void); |
387 | int get_local_port(void); | ||
388 | |||
385 | 389 | ||
386 | /* | 390 | /* |
387 | * Tries to match the host name (which must be in all lowercase) against the | 391 | * Tries to match the host name (which must be in all lowercase) against the |
@@ -741,6 +745,9 @@ char *skey_fake_keyinfo(char *username); | |||
741 | int auth_skey_password(struct passwd * pw, const char *password); | 745 | int auth_skey_password(struct passwd * pw, const char *password); |
742 | #endif /* SKEY */ | 746 | #endif /* SKEY */ |
743 | 747 | ||
748 | /* AF_UNSPEC or AF_INET or AF_INET6 */ | ||
749 | extern int IPv4or6; | ||
750 | |||
744 | #ifdef USE_PAM | 751 | #ifdef USE_PAM |
745 | #include "auth-pam.h" | 752 | #include "auth-pam.h" |
746 | #endif /* USE_PAM */ | 753 | #endif /* USE_PAM */ |