summaryrefslogtreecommitdiff
path: root/ssh.h
diff options
context:
space:
mode:
Diffstat (limited to 'ssh.h')
-rw-r--r--ssh.h95
1 files changed, 1 insertions, 94 deletions
diff --git a/ssh.h b/ssh.h
index 390f463e5..281ef1388 100644
--- a/ssh.h
+++ b/ssh.h
@@ -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
779int Raccept (int, struct sockaddr *, socklen_t *);
780int Rbind (int, const struct sockaddr *, socklen_t);
781int Rbindresvport(int , struct sockaddr_in *);
782int Rconnect (int, const struct sockaddr *, socklen_t);
783struct hostent *Rgethostbyname(const char *);
784struct hostent *Rgethostbyname2(const char *, int);
785int Rgetpeername (int, struct sockaddr *, socklen_t *);
786int Rgetsockname (int, struct sockaddr *, socklen_t *);
787ssize_t Rread(int , void *, size_t );
788ssize_t Rreadv(int d, const struct iovec *iov, int iovcnt);
789ssize_t Rrecv (int, void *, size_t, int);
790ssize_t Rrecvfrom (int, void *, size_t, int, struct sockaddr *,
791 socklen_t *);
792ssize_t Rsend (int, const void *, size_t, int);
793ssize_t Rsendmsg (int, const struct msghdr *, int);
794ssize_t Rsendto (int, const void *,
795 size_t, int, const struct sockaddr *, socklen_t);
796ssize_t Rwrite(int , const void *, size_t );
797ssize_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
824int SOCKSaccept (int, struct sockaddr *, socklen_t *);
825int SOCKSbind (int, const struct sockaddr *, socklen_t);
826int SOCKSbindresvport(int , struct sockaddr_in *);
827int SOCKSconnect (int, const struct sockaddr *, socklen_t);
828struct hostent *SOCKSgethostbyname(const char *);
829struct hostent *SOCKSgethostbyname2(const char *, int);
830int SOCKSgetpeername (int, struct sockaddr *, socklen_t *);
831int SOCKSgetsockname (int, struct sockaddr *, socklen_t *);
832ssize_t SOCKSread(int , void *, size_t );
833ssize_t SOCKSreadv(int d, const struct iovec *iov, int iovcnt);
834ssize_t SOCKSrecv (int, void *, size_t, int);
835ssize_t SOCKSrecvfrom (int, void *, size_t, int, struct sockaddr *,
836 socklen_t *);
837ssize_t SOCKSsend (int, const void *, size_t, int);
838ssize_t SOCKSsendmsg (int, const struct msghdr *, int);
839ssize_t SOCKSsendto (int, const void *,
840 size_t, int, const struct sockaddr *, socklen_t);
841ssize_t SOCKSwrite(int , const void *, size_t );
842ssize_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 */