summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ypserv/yp_extern.h
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1996-02-24 22:01:48 +0000
committerwpaul <wpaul@FreeBSD.org>1996-02-24 22:01:48 +0000
commitad0849d8900b9f782546a46918ebe65e3c52e43b (patch)
treed9a4d7f7d861b659a03bde9ec6da98d6f55f8653 /usr.sbin/ypserv/yp_extern.h
parent8a2d37b3e57ef2cb34c084a48c2a9ec75d6774fc (diff)
downloadFreeBSD-src-ad0849d8900b9f782546a46918ebe65e3c52e43b.zip
FreeBSD-src-ad0849d8900b9f782546a46918ebe65e3c52e43b.tar.gz
Add real securenets support. By default, ypserv now uses /var/yp/securenets
in the same was as the SunOS ypserv (same format, described in ypserv man page). If the user wants tcpwrapper style access control, they can recompile ypserv to use that instead. This way we get securenets without having to ship libwrap.a and tcpd.h with core FreeBSD distribution. If /var/yp/securenets doesn't exist, ypserv allows all connections.
Diffstat (limited to 'usr.sbin/ypserv/yp_extern.h')
-rw-r--r--usr.sbin/ypserv/yp_extern.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ypserv/yp_extern.h b/usr.sbin/ypserv/yp_extern.h
index e94d253..9e5a39f 100644
--- a/usr.sbin/ypserv/yp_extern.h
+++ b/usr.sbin/ypserv/yp_extern.h
@@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: yp_extern.h,v 1.1.1.1 1995/12/16 20:54:17 wpaul Exp $
+ * $Id: yp_extern.h,v 1.2 1995/12/23 21:35:30 wpaul Exp $
*/
#include <stdio.h>
#include <string.h>
@@ -72,3 +72,4 @@ extern char *yp_dnsaddr __P(( const char * ));
extern int yp_access __P((const char *, const struct svc_req * ));
extern int yp_validdomain __P((const char * ));
extern DB *yp_open_db __P(( const char *, const char *));
+extern void load_securenets __P(( void ));
OpenPOWER on IntegriCloud