diff options
Diffstat (limited to 'ssh.h')
-rw-r--r-- | ssh.h | 95 |
1 files changed, 1 insertions, 94 deletions
@@ -13,7 +13,7 @@ | |||
13 | * | 13 | * |
14 | */ | 14 | */ |
15 | 15 | ||
16 | /* RCSID("$Id: ssh.h,v 1.25 2000/01/22 23:32:04 damien Exp $"); */ | 16 | /* RCSID("$Id: ssh.h,v 1.26 2000/02/07 02:20:26 damien Exp $"); */ |
17 | 17 | ||
18 | #ifndef SSH_H | 18 | #ifndef SSH_H |
19 | #define SSH_H | 19 | #define SSH_H |
@@ -752,97 +752,4 @@ extern int IPv4or6; | |||
752 | #include "auth-pam.h" | 752 | #include "auth-pam.h" |
753 | #endif /* USE_PAM */ | 753 | #endif /* USE_PAM */ |
754 | 754 | ||
755 | #if defined(HAVE_DANTE) || defined(HAVE_SOCKS4) | ||
756 | /* | ||
757 | * The following defines map the normal socket operations to SOCKSified | ||
758 | * versions coming from the Dante SOCKS package. | ||
759 | */ | ||
760 | #define accept Raccept | ||
761 | #define bind Rbind | ||
762 | #define bindresvport Rbindresvport | ||
763 | #define connect Rconnect | ||
764 | #define gethostbyname Rgethostbyname | ||
765 | #define gethostbyname2 Rgethostbyname2 | ||
766 | #define getpeername Rgetpeername | ||
767 | #define getsockname Rgetsockname | ||
768 | #define read Rread | ||
769 | #define readv Rreadv | ||
770 | #define recv Rrecv | ||
771 | #define recvmsg Rrecvmsg | ||
772 | #define recvfrom Rrecvfrom | ||
773 | #define rresvport Rrresvport | ||
774 | #define send Rsend | ||
775 | #define sendmsg Rsendmsg | ||
776 | #define sendto Rsendto | ||
777 | #define write Rwrite | ||
778 | #define writev Rwritev | ||
779 | int Raccept (int, struct sockaddr *, socklen_t *); | ||
780 | int Rbind (int, const struct sockaddr *, socklen_t); | ||
781 | int Rbindresvport(int , struct sockaddr_in *); | ||
782 | int Rconnect (int, const struct sockaddr *, socklen_t); | ||
783 | struct hostent *Rgethostbyname(const char *); | ||
784 | struct hostent *Rgethostbyname2(const char *, int); | ||
785 | int Rgetpeername (int, struct sockaddr *, socklen_t *); | ||
786 | int Rgetsockname (int, struct sockaddr *, socklen_t *); | ||
787 | ssize_t Rread(int , void *, size_t ); | ||
788 | ssize_t Rreadv(int d, const struct iovec *iov, int iovcnt); | ||
789 | ssize_t Rrecv (int, void *, size_t, int); | ||
790 | ssize_t Rrecvfrom (int, void *, size_t, int, struct sockaddr *, | ||
791 | socklen_t *); | ||
792 | ssize_t Rsend (int, const void *, size_t, int); | ||
793 | ssize_t Rsendmsg (int, const struct msghdr *, int); | ||
794 | ssize_t Rsendto (int, const void *, | ||
795 | size_t, int, const struct sockaddr *, socklen_t); | ||
796 | ssize_t Rwrite(int , const void *, size_t ); | ||
797 | ssize_t Rwritev(int , const struct iovec *, int ); | ||
798 | #endif /* HAVE_DANTE || HAVE_SOCKS4 */ | ||
799 | |||
800 | #if defined(HAVE_SOCKS5) | ||
801 | /* | ||
802 | * The following defines map the normal socket operations to SOCKSified | ||
803 | * versions coming from the SOCKS package. | ||
804 | */ | ||
805 | #define accept SOCKSaccept | ||
806 | #define bind SOCKSbind | ||
807 | #define bindresvport SOCKSbindresvport | ||
808 | #define connect SOCKSconnect | ||
809 | #define gethostbyname SOCKSgethostbyname | ||
810 | #define gethostbyname2 SOCKSgethostbyname2 | ||
811 | #define getpeername SOCKSgetpeername | ||
812 | #define getsockname SOCKSgetsockname | ||
813 | #define read SOCKSread | ||
814 | #define readv SOCKSreadv | ||
815 | #define recv SOCKSrecv | ||
816 | #define recvmsg SOCKSrecvmsg | ||
817 | #define recvfrom SOCKSrecvfrom | ||
818 | #define rresvport SOCKSrresvport | ||
819 | #define send SOCKSsend | ||
820 | #define sendmsg SOCKSsendmsg | ||
821 | #define sendto SOCKSsendto | ||
822 | #define write SOCKSwrite | ||
823 | #define writev SOCKSwritev | ||
824 | int SOCKSaccept (int, struct sockaddr *, socklen_t *); | ||
825 | int SOCKSbind (int, const struct sockaddr *, socklen_t); | ||
826 | int SOCKSbindresvport(int , struct sockaddr_in *); | ||
827 | int SOCKSconnect (int, const struct sockaddr *, socklen_t); | ||
828 | struct hostent *SOCKSgethostbyname(const char *); | ||
829 | struct hostent *SOCKSgethostbyname2(const char *, int); | ||
830 | int SOCKSgetpeername (int, struct sockaddr *, socklen_t *); | ||
831 | int SOCKSgetsockname (int, struct sockaddr *, socklen_t *); | ||
832 | ssize_t SOCKSread(int , void *, size_t ); | ||
833 | ssize_t SOCKSreadv(int d, const struct iovec *iov, int iovcnt); | ||
834 | ssize_t SOCKSrecv (int, void *, size_t, int); | ||
835 | ssize_t SOCKSrecvfrom (int, void *, size_t, int, struct sockaddr *, | ||
836 | socklen_t *); | ||
837 | ssize_t SOCKSsend (int, const void *, size_t, int); | ||
838 | ssize_t SOCKSsendmsg (int, const struct msghdr *, int); | ||
839 | ssize_t SOCKSsendto (int, const void *, | ||
840 | size_t, int, const struct sockaddr *, socklen_t); | ||
841 | ssize_t SOCKSwrite(int , const void *, size_t ); | ||
842 | ssize_t SOCKSwritev(int , const struct iovec *, int ); | ||
843 | #endif /* SOCKS5 */ | ||
844 | |||
845 | #if defined(DANTE) || defined(SOCKS4) || defined(SOCKS5) | ||
846 | #define SOCKS | ||
847 | #endif /* defined(DANTE) || defined(SOCKS4) || defined(SOCKS5) */ | ||
848 | #endif /* SSH_H */ | 755 | #endif /* SSH_H */ |