~ubuntu-branches/ubuntu/oneiric/nis/oneiric-proposed

« back to all changes in this revision

Viewing changes to ypserv-2.17/lib/access.h

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant
  • Date: 2005-11-16 23:42:06 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20051116234206-p00omaw5ji5q0qhr
Tags: 3.15-3ubuntu1
Resynchronise with Debian.  (me)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (c) 2000 Thorsten Kukuk
2
 
   Author: Thorsten Kukuk <kukuk@suse.de>
3
 
 
4
 
   The YP Server is free software; you can redistribute it and/or
5
 
   modify it under the terms of the GNU General Public License as
6
 
   published by the Free Software Foundation; either version 2 of the
7
 
   License, or (at your option) any later version.
8
 
 
9
 
   The YP Server is distributed in the hope that it will be useful,
10
 
   but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12
 
   General Public License for more details.
13
 
 
14
 
   You should have received a copy of the GNU General Public
15
 
   License along with the YP Server; see the file COPYING. If
16
 
   not, write to the Free Software Foundation, Inc., 675 Mass Ave,
17
 
   Cambridge, MA 02139, USA. */
18
 
 
19
 
#ifndef __ACCESS_H__
20
 
#define __ACCESS_H__
21
 
 
22
 
#ifdef HAVE_CONFIG_H
23
 
#include "config.h"
24
 
#endif
25
 
 
26
 
#include <rpc/rpc.h>
27
 
 
28
 
/* access.c */
29
 
extern void load_config (void);
30
 
extern int is_valid_domain (const char *domain);
31
 
extern int is_valid (struct svc_req *rqstp, const char *map,
32
 
                     const char *domain);
33
 
 
34
 
/* securenets.c */
35
 
extern void load_securenets (void);
36
 
extern int securenet_host (const struct in_addr sin_addr);
37
 
 
38
 
#endif