auth_des.c (92889) | auth_des.c (92990) |
---|---|
1 | |
2/* 3 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for 4 * unrestricted use provided that this legend is included on all tape 5 * media and as a part of the software program in whole or part. Users 6 * may copy or modify Sun RPC without charge, but are not authorized 7 * to license or distribute it to anyone else except as part of a product or 8 * program developed by the user. 9 * --- 18 unchanged lines hidden (view full) --- 28 * Mountain View, California 94043 29 */ 30/* 31 * Copyright (c) 1988 by Sun Microsystems, Inc. 32 */ 33/* 34 * auth_des.c, client-side implementation of DES authentication 35 */ | 1/* 2 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for 3 * unrestricted use provided that this legend is included on all tape 4 * media and as a part of the software program in whole or part. Users 5 * may copy or modify Sun RPC without charge, but are not authorized 6 * to license or distribute it to anyone else except as part of a product or 7 * program developed by the user. 8 * --- 18 unchanged lines hidden (view full) --- 27 * Mountain View, California 94043 28 */ 29/* 30 * Copyright (c) 1988 by Sun Microsystems, Inc. 31 */ 32/* 33 * auth_des.c, client-side implementation of DES authentication 34 */ |
35 |
|
36#include "namespace.h" 37#include "reentrant.h" 38#include <err.h> 39#include <errno.h> 40#include <string.h> 41#include <stdlib.h> 42#include <unistd.h> 43#include <sys/cdefs.h> --- 6 unchanged lines hidden (view full) --- 50#include <rpc/xdr.h> 51#include <sys/socket.h> 52#undef NIS 53#include <rpcsvc/nis.h> 54#include "un-namespace.h" 55 56#if defined(LIBC_SCCS) && !defined(lint) 57/* from: static char sccsid[] = "@(#)auth_des.c 2.2 88/07/29 4.0 RPCSRC; from 1.9 88/02/08 SMI"; */ | 36#include "namespace.h" 37#include "reentrant.h" 38#include <err.h> 39#include <errno.h> 40#include <string.h> 41#include <stdlib.h> 42#include <unistd.h> 43#include <sys/cdefs.h> --- 6 unchanged lines hidden (view full) --- 50#include <rpc/xdr.h> 51#include <sys/socket.h> 52#undef NIS 53#include <rpcsvc/nis.h> 54#include "un-namespace.h" 55 56#if defined(LIBC_SCCS) && !defined(lint) 57/* from: static char sccsid[] = "@(#)auth_des.c 2.2 88/07/29 4.0 RPCSRC; from 1.9 88/02/08 SMI"; */ |
58static const char rcsid[] = "$FreeBSD: head/lib/libc/rpc/auth_des.c 92889 2002-03-21 18:49:23Z obrien $"; | |
59#endif | 58#endif |
59#include <sys/cdefs.h> 60__FBSDID("$FreeBSD: head/lib/libc/rpc/auth_des.c 92990 2002-03-22 23:18:37Z obrien $"); |
|
60 61#define USEC_PER_SEC 1000000 62#define RTIME_TIMEOUT 5 /* seconds to wait for sync */ 63 64#define AUTH_PRIVATE(auth) (struct ad_private *) auth->ah_private 65#define ALLOC(object_type) (object_type *) mem_alloc(sizeof(object_type)) 66#define FREE(ptr, size) mem_free((char *)(ptr), (int) size) 67#define ATTEMPT(xdr_op) if (!(xdr_op)) return (FALSE) --- 430 unchanged lines hidden --- | 61 62#define USEC_PER_SEC 1000000 63#define RTIME_TIMEOUT 5 /* seconds to wait for sync */ 64 65#define AUTH_PRIVATE(auth) (struct ad_private *) auth->ah_private 66#define ALLOC(object_type) (object_type *) mem_alloc(sizeof(object_type)) 67#define FREE(ptr, size) mem_free((char *)(ptr), (int) size) 68#define ATTEMPT(xdr_op) if (!(xdr_op)) return (FALSE) --- 430 unchanged lines hidden --- |