summaryrefslogtreecommitdiffstats
path: root/include/rpc/auth.h
diff options
context:
space:
mode:
authoreivind <eivind@FreeBSD.org>1997-05-07 02:27:18 +0000
committereivind <eivind@FreeBSD.org>1997-05-07 02:27:18 +0000
commit379be4bd6976e0978a3a320598eacd98708ee1f2 (patch)
tree7257f42f700a2e7b01b98d56a31940970b0d54ef /include/rpc/auth.h
parent173bd2da2e16e77a80909cbb1d6a34c497014e8d (diff)
downloadFreeBSD-src-379be4bd6976e0978a3a320598eacd98708ee1f2.zip
FreeBSD-src-379be4bd6976e0978a3a320598eacd98708ee1f2.tar.gz
Make a lot of include-files self-contained. I excluded the patches changing
int's to gid_t and uid_t - should I commit these, too? Closes PR misc/2625. Submitted by: Julian Assange <proff@iq.org>
Diffstat (limited to 'include/rpc/auth.h')
-rw-r--r--include/rpc/auth.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/rpc/auth.h b/include/rpc/auth.h
index 63dfc2f..0abf438 100644
--- a/include/rpc/auth.h
+++ b/include/rpc/auth.h
@@ -28,7 +28,7 @@
*
* from: @(#)auth.h 1.17 88/02/08 SMI
* from: @(#)auth.h 2.3 88/08/07 4.0 RPCSRC
- * $Id: auth.h,v 1.8 1997/02/23 09:17:21 peter Exp $
+ * $Id: auth.h,v 1.9 1997/05/07 00:58:23 bde Exp $
*/
/*
@@ -44,6 +44,8 @@
#ifndef _RPC_AUTH_H
#define _RPC_AUTH_H
#include <sys/cdefs.h>
+#include <rpc/types.h>
+#include <rpc/xdr.h>
#define MAX_AUTH_BYTES 400
#define MAXNETNAMELEN 255 /* maximum length of network user's name */
@@ -174,7 +176,9 @@ extern AUTH *authdes_create __P((char *, u_int,
struct sockaddr_in *, des_block *));
__END_DECLS
+#ifndef AUTH_NONE /* Protect against <login_cap.h>
#define AUTH_NONE 0 /* no authentication */
+#endif
#define AUTH_NULL 0 /* backward compatibility */
#define AUTH_UNIX 1 /* unix style (uid, gids) */
#define AUTH_SHORT 2 /* short hand unix style */
OpenPOWER on IntegriCloud