summaryrefslogtreecommitdiffstats
path: root/include/unistd.h
diff options
context:
space:
mode:
authorshin <shin@FreeBSD.org>2000-02-01 15:55:56 +0000
committershin <shin@FreeBSD.org>2000-02-01 15:55:56 +0000
commit9742b65930b8abd4b6bb0418e50cbca5331b631d (patch)
tree391da68b04533321280e67b6f27f0cbdc2bd2d14 /include/unistd.h
parent6f79c7e06bf635130575f20941730e8d7164a7c1 (diff)
downloadFreeBSD-src-9742b65930b8abd4b6bb0418e50cbca5331b631d.zip
FreeBSD-src-9742b65930b8abd4b6bb0418e50cbca5331b631d.tar.gz
sync iruserok() extension API with other BSDs
Some of rcmd related function is need to be updated to support IPv6. Some of them are already updated as standard document. But there is also several de-facto functions and they are not listed in standard documents. They are, iruserok() (used by rlogind, rshd) ruserok() (used by kerberos, etc) KAME package updated those functions in original way. iruserok_af() ruserok_af() But recently there was discussion on IETF IPng mailing list about how to sync those API, and it is decided, -Those function is not standard and not documented. -But let BSDs sync their API as de-facto. And after some discussion, it is announced that -add update to iruserok() as iruserok_sa() -no ruserok() API change(it is only updated internaly) So I sync those API before 4.0 is released. The changes are, -prototype changes -ruserok() internal update (use iruserok_sa() inside) -removal of ruserok_af() -change iruserok_af() as static functioin, and also prefix the name with __. -add iruserok_sa() (Just call __iruserok_af() inside) -adding flag AI_ALL to getipnodebyaddr() called from __icheckhost(). This is necessary to support IPv4 communication via AF_INET6 socket could be correctly authenticated via iruserok_sa() -irusreok_af() call is replaced to iruserok_sa() call in rlogind, and rshd. Approved by: jkh
Diffstat (limited to 'include/unistd.h')
-rw-r--r--include/unistd.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/unistd.h b/include/unistd.h
index 825d6d0..6aaefdb 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -150,7 +150,7 @@ char *getusershell __P((void));
char *getwd __P((char *)); /* obsoleted by getcwd() */
int initgroups __P((const char *, int));
int iruserok __P((unsigned long, int, const char *, const char *));
-int iruserok_af __P((void *, int, const char *, const char *, int));
+int iruserok_sa __P((const void *, int, int, const char *, const char *));
int issetugid __P((void));
int lchown __P((const char *, uid_t, gid_t));
int lockf __P((int, int, off_t));
@@ -177,7 +177,6 @@ pid_t rfork __P((int));
int rresvport __P((int *));
int rresvport_af __P((int *, int));
int ruserok __P((const char *, int, const char *, const char *));
-int ruserok_af __P((const char *, int, const char *, const char *, int));
char *sbrk __P((int));
int select __P((int, fd_set *, fd_set *, fd_set *, struct timeval *));
int setdomainname __P((const char *, int));
OpenPOWER on IntegriCloud