diff options
Diffstat (limited to 'ssh.h')
-rw-r--r-- | ssh.h | 47 |
1 files changed, 46 insertions, 1 deletions
@@ -13,7 +13,7 @@ | |||
13 | * | 13 | * |
14 | */ | 14 | */ |
15 | 15 | ||
16 | /* RCSID("$Id: ssh.h,v 1.22 1999/12/30 04:08:44 damien Exp $"); */ | 16 | /* RCSID("$Id: ssh.h,v 1.23 1999/12/30 04:50:55 damien Exp $"); */ |
17 | 17 | ||
18 | #ifndef SSH_H | 18 | #ifndef SSH_H |
19 | #define SSH_H | 19 | #define SSH_H |
@@ -745,4 +745,49 @@ int auth_skey_password(struct passwd * pw, const char *password); | |||
745 | #include "auth-pam.h" | 745 | #include "auth-pam.h" |
746 | #endif /* USE_PAM */ | 746 | #endif /* USE_PAM */ |
747 | 747 | ||
748 | #ifdef HAVE_DANTE | ||
749 | /* | ||
750 | * The following defines map the normal socket operations to SOCKSified | ||
751 | * versions coming from the Dante SOCKS package. | ||
752 | */ | ||
753 | #define accept Raccept | ||
754 | #define bind Rbind | ||
755 | #define bindresvport Rbindresvport | ||
756 | #define connect Rconnect | ||
757 | #define gethostbyname Rgethostbyname | ||
758 | #define gethostbyname2 Rgethostbyname2 | ||
759 | #define getpeername Rgetpeername | ||
760 | #define getsockname Rgetsockname | ||
761 | #define read Rread | ||
762 | #define readv Rreadv | ||
763 | #define recv Rrecv | ||
764 | #define recvmsg Rrecvmsg | ||
765 | #define recvfrom Rrecvfrom | ||
766 | #define rresvport Rrresvport | ||
767 | #define send Rsend | ||
768 | #define sendmsg Rsendmsg | ||
769 | #define sendto Rsendto | ||
770 | #define write Rwrite | ||
771 | #define writev Rwritev | ||
772 | int Raccept (int, struct sockaddr *, socklen_t *); | ||
773 | int Rbind (int, const struct sockaddr *, socklen_t); | ||
774 | int Rbindresvport(int , struct sockaddr_in *); | ||
775 | int Rconnect (int, const struct sockaddr *, socklen_t); | ||
776 | struct hostent *Rgethostbyname(const char *); | ||
777 | struct hostent *Rgethostbyname2(const char *, int); | ||
778 | int Rgetpeername (int, struct sockaddr *, socklen_t *); | ||
779 | int Rgetsockname (int, struct sockaddr *, socklen_t *); | ||
780 | ssize_t Rread(int , void *, size_t ); | ||
781 | ssize_t Rreadv(int d, const struct iovec *iov, int iovcnt); | ||
782 | ssize_t Rrecv (int, void *, size_t, int); | ||
783 | ssize_t Rrecvfrom (int, void *, size_t, int, struct sockaddr *, | ||
784 | socklen_t *); | ||
785 | ssize_t Rsend (int, const void *, size_t, int); | ||
786 | ssize_t Rsendmsg (int, const struct msghdr *, int); | ||
787 | ssize_t Rsendto (int, const void *, | ||
788 | size_t, int, const struct sockaddr *, socklen_t); | ||
789 | ssize_t Rwrite(int , const void *, size_t ); | ||
790 | ssize_t Rwritev(int , const struct iovec *, int ); | ||
791 | #endif /* HAVE_DANTE */ | ||
792 | |||
748 | #endif /* SSH_H */ | 793 | #endif /* SSH_H */ |