9 #ifndef _LINUX_SUNRPC_SVCAUTH_H_
10 #define _LINUX_SUNRPC_SVCAUTH_H_
14 #include <linux/string.h>
17 #include <linux/hash.h>
28 static inline void free_svc_cred(
struct svc_cred *
cred)
30 if (cred->cr_group_info)
32 kfree(cred->cr_principal);
61 struct auth_ops *flavour;
110 void (*domain_release)(
struct auth_domain *);
114 #define SVC_GARBAGE 1
117 #define SVC_NEGATIVE 4
125 #define SVC_PENDING 9
126 #define SVC_COMPLETE 10
138 extern int auth_unix_add_addr(
struct net *
net,
struct in6_addr *
addr,
struct auth_domain *dom);
142 extern int auth_unix_forget_old(
struct auth_domain *dom);
150 static inline unsigned long hash_str(
char *
name,
int bits)
152 unsigned long hash = 0;
158 c = (
char)len; len = -1;
168 static inline unsigned long hash_mem(
char *
buf,
int length,
int bits)
170 unsigned long hash = 0;
176 c = (
char)len; len = -1;