Go to the source code of this file.
◆ SVCAUTH_DESTROY
#define SVCAUTH_DESTROY |
( |
|
cred | ) |
((*(cred)->svc_ah_ops->svc_ah_destroy)()) |
◆ svcauth_destroy
#define svcauth_destroy |
( |
|
cred | ) |
((*(cred)->svc_ah_ops->svc_ah_destroy)()) |
◆ SVCAUTH
◆ _authenticate()
Definition at line 86 of file svc_auth.c.
89{
90 int cred_flavor;
94
95
96
100 cred_flavor = rqst->
rq_cred.oa_flavor;
101 switch (cred_flavor) {
111#ifdef DES_BUILTIN
115#endif
116 default:
117 break;
118 }
119
120
122 for (asp =
Auths; asp; asp = asp->
next) {
123 if (asp->
flavor == cred_flavor) {
125
128 return (as);
129 }
130 }
132
134}
struct opaque_auth _null_auth
struct opaque_auth xp_verf
enum auth_stat(* handler)(struct svc_req *, struct rpc_msg *)
struct opaque_auth rq_cred
enum auth_stat _svcauth_null(struct svc_req *rqst, struct rpc_msg *msg)
static struct authsvc * Auths
enum auth_stat _svcauth_des(struct svc_req *rqst, struct rpc_msg *msg)
enum auth_stat _svcauth_unix(struct svc_req *rqst, struct rpc_msg *msg)
enum auth_stat _svcauth_short(struct svc_req *rqst, struct rpc_msg *msg)
Referenced by svc_getreq_common().
◆ svc_auth_reg()
int svc_auth_reg |
( |
int |
, |
|
|
enum |
auth_stat*)(struct svc_req *, struct rpc_msg * |
|
) |
| |