summaryrefslogtreecommitdiff
path: root/ssh.h
diff options
context:
space:
mode:
Diffstat (limited to 'ssh.h')
-rw-r--r--ssh.h47
1 files changed, 46 insertions, 1 deletions
diff --git a/ssh.h b/ssh.h
index 48bcd5ea6..ddc6fe073 100644
--- a/ssh.h
+++ b/ssh.h
@@ -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
772int Raccept (int, struct sockaddr *, socklen_t *);
773int Rbind (int, const struct sockaddr *, socklen_t);
774int Rbindresvport(int , struct sockaddr_in *);
775int Rconnect (int, const struct sockaddr *, socklen_t);
776struct hostent *Rgethostbyname(const char *);
777struct hostent *Rgethostbyname2(const char *, int);
778int Rgetpeername (int, struct sockaddr *, socklen_t *);
779int Rgetsockname (int, struct sockaddr *, socklen_t *);
780ssize_t Rread(int , void *, size_t );
781ssize_t Rreadv(int d, const struct iovec *iov, int iovcnt);
782ssize_t Rrecv (int, void *, size_t, int);
783ssize_t Rrecvfrom (int, void *, size_t, int, struct sockaddr *,
784 socklen_t *);
785ssize_t Rsend (int, const void *, size_t, int);
786ssize_t Rsendmsg (int, const struct msghdr *, int);
787ssize_t Rsendto (int, const void *,
788 size_t, int, const struct sockaddr *, socklen_t);
789ssize_t Rwrite(int , const void *, size_t );
790ssize_t Rwritev(int , const struct iovec *, int );
791#endif /* HAVE_DANTE */
792
748#endif /* SSH_H */ 793#endif /* SSH_H */