187204Smarkm/*
287204Smarkm * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
387204Smarkm * unrestricted use provided that this legend is included on all tape
487204Smarkm * media and as a part of the software program in whole or part.  Users
587204Smarkm * may copy or modify Sun RPC without charge, but are not authorized
687204Smarkm * to license or distribute it to anyone else except as part of a product or
787204Smarkm * program developed by the user or with the express written consent of
887204Smarkm * Sun Microsystems, Inc.
987204Smarkm *
1087204Smarkm * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
1187204Smarkm * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
1287204Smarkm * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
1387204Smarkm *
1487204Smarkm * Sun RPC is provided with no support and without any obligation on the
1587204Smarkm * part of Sun Microsystems, Inc. to assist in its use, correction,
1687204Smarkm * modification or enhancement.
1787204Smarkm *
1887204Smarkm * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
1987204Smarkm * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
2087204Smarkm * OR ANY PART THEREOF.
2187204Smarkm *
2287204Smarkm * In no event will Sun Microsystems, Inc. be liable for any lost revenue
2387204Smarkm * or profits or other special, indirect and consequential damages, even if
2487204Smarkm * Sun has been advised of the possibility of such damages.
2587204Smarkm *
2687204Smarkm * Sun Microsystems, Inc.
2787204Smarkm * 2550 Garcia Avenue
2887204Smarkm * Mountain View, California  94043
2987204Smarkm *
3087204Smarkm * $FreeBSD$
3187204Smarkm */
3287204Smarkm
3387204Smarkm#ifdef YP
3487204Smarkm#define	MAXMAPNAMELEN 256
3587204Smarkm#else
3687204Smarkm#define	YPOP_CHANGE 1			/* change, do not add */
3787204Smarkm#define	YPOP_INSERT 2			/* add, do not change */
3887204Smarkm#define	YPOP_DELETE 3			/* delete this entry */
3987204Smarkm#define	YPOP_STORE  4			/* add, or change */
4087204Smarkm#endif
4187204Smarkm
4292921Simpvoid genkeys(char *, char *, char *);
4392921Simpint setpublicmap(char *, char *, char *);
4492921Simpint mapupdate(char *, char *, u_int, u_int, char *, u_int, char *);
4592921Simpvoid xencrypt(char *, char *);
4692921Simpvoid xdecrypt(char *, char *);
47141480Sstefanfint localupdate(char *, char *, u_int, u_int, char *, u_int, char *);
48