Home
last modified time | relevance | path

Searched refs:rqst (Results 1 – 23 of 23) sorted by relevance

/freebsd/sys/rpc/
H A Dsvc_auth.c79 _authenticate(struct svc_req *rqst, struct rpc_msg *msg) in _authenticate() argument
84 rqst->rq_cred = msg->rm_call.cb_cred; in _authenticate()
85 rqst->rq_auth.svc_ah_ops = &svc_auth_null_ops; in _authenticate()
86 rqst->rq_auth.svc_ah_private = NULL; in _authenticate()
87 cred_flavor = rqst->rq_cred.oa_flavor; in _authenticate()
90 dummy = _svcauth_null(rqst, msg); in _authenticate()
93 if ((rqst->rq_xprt->xp_tls & RPCTLS_FLAGS_DISABLED) != 0) in _authenticate()
95 dummy = _svcauth_unix(rqst, msg); in _authenticate()
98 if ((rqst->rq_xprt->xp_tls & RPCTLS_FLAGS_DISABLED) != 0) in _authenticate()
100 dummy = _svcauth_short(rqst, msg); in _authenticate()
[all …]
H A Dsvc_auth_unix.c54 _svcauth_unix(struct svc_req *rqst, struct rpc_msg *msg) in _svcauth_unix() argument
62 xcr = rqst->rq_clntcred; in _svcauth_unix()
121 rqst->rq_verf = _null_auth; in _svcauth_unix()
140 _svcauth_short(struct svc_req *rqst, struct rpc_msg *msg) in _svcauth_short() argument
/freebsd/sys/fs/nfsclient/
H A Dnfs_clkrpc.c65 nfscb_program(struct svc_req *rqst, SVCXPRT *xprt) in nfscb_program() argument
74 if (rqst->rq_proc != NFSPROC_NULL && in nfscb_program()
75 rqst->rq_proc != NFSV4PROC_CBCOMPOUND) { in nfscb_program()
76 svcerr_noproc(rqst); in nfscb_program()
77 svc_freereq(rqst); in nfscb_program()
80 nd.nd_procnum = rqst->rq_proc; in nfscb_program()
88 nd.nd_mrep = rqst->rq_args; in nfscb_program()
89 rqst->rq_args = NULL; in nfscb_program()
93 nd.nd_nam = svc_getrpccaller(rqst); in nfscb_program()
94 nd.nd_nam2 = rqst->rq_addr; in nfscb_program()
[all …]
/freebsd/crypto/krb5/src/lib/rpc/
H A Dsvc_auth_gss.c78 (*log_miscerr)(rqst, msg, arg, log_miscerr_data)
178 svcauth_gss_accept_sec_context(struct svc_req *rqst, in svcauth_gss_accept_sec_context() argument
189 gd = SVCAUTH_PRIVATE(rqst->rq_xprt->xp_auth); in svcauth_gss_accept_sec_context()
190 gc = (struct rpc_gss_cred *)rqst->rq_clntcred; in svcauth_gss_accept_sec_context()
196 if (!svc_getargs(rqst->rq_xprt, (xdrproc_t)xdr_rpc_gss_init_args, in svcauth_gss_accept_sec_context()
212 svc_freeargs(rqst->rq_xprt, (xdrproc_t)xdr_rpc_gss_init_args, in svcauth_gss_accept_sec_context()
218 badauth(gr->gr_major, gr->gr_minor, rqst->rq_xprt); in svcauth_gss_accept_sec_context()
284 rqst->rq_xprt->xp_verf.oa_flavor = RPCSEC_GSS; in svcauth_gss_accept_sec_context()
285 rqst->rq_xprt->xp_verf.oa_base = gd->checksum.value; in svcauth_gss_accept_sec_context()
286 rqst->rq_xprt->xp_verf.oa_length = gd->checksum.length; in svcauth_gss_accept_sec_context()
[all …]
H A Dsvc_auth_gssapi.c136 (*log_miscerr)(rqst, msg, arg, log_miscerr_data)
157 struct svc_req *rqst, in gssrpc__svcauth_gssapi() argument
182 rqst->rq_xprt->xp_auth = &svc_auth_none; in gssrpc__svcauth_gssapi()
223 if (creds.auth_msg && rqst->rq_proc == AUTH_GSSAPI_EXIT) { in gssrpc__svcauth_gssapi()
225 svc_sendreply(rqst->rq_xprt, xdr_void, NULL); in gssrpc__svcauth_gssapi()
238 if (creds.auth_msg && rqst->rq_proc == AUTH_GSSAPI_INIT) { in gssrpc__svcauth_gssapi()
282 rqst->rq_xprt->xp_auth = &client_data->svcauth; in gssrpc__svcauth_gssapi()
298 if (rqst->rq_proc != AUTH_GSSAPI_INIT && rqst->rq_proc != in gssrpc__svcauth_gssapi()
301 rqst->rq_proc)); in gssrpc__svcauth_gssapi()
309 if (! svc_getargs(rqst->rq_xprt, (xdrproc_t)xdr_authgssapi_init_arg, in gssrpc__svcauth_gssapi()
[all …]
H A Dsvc_auth.c85 struct svc_req *rqst, in gssrpc__authenticate() argument
91 rqst->rq_cred = msg->rm_call.cb_cred; in gssrpc__authenticate()
92 rqst->rq_xprt->xp_verf.oa_flavor = gssrpc__null_auth.oa_flavor; in gssrpc__authenticate()
93 rqst->rq_xprt->xp_verf.oa_length = 0; in gssrpc__authenticate()
94 cred_flavor = rqst->rq_cred.oa_flavor; in gssrpc__authenticate()
99 return ((*(svcauthsw[i].authenticator))(rqst, in gssrpc__authenticate()
H A Dsvc_auth_unix.c56 struct svc_req *rqst, in gssrpc__svcauth_unix() argument
71 rqst->rq_xprt->xp_auth = &svc_auth_none; in gssrpc__svcauth_unix()
73 area = (struct area *) rqst->rq_clntcred; in gssrpc__svcauth_unix()
120 rqst->rq_xprt->xp_verf.oa_flavor = AUTH_NULL; in gssrpc__svcauth_unix()
121 rqst->rq_xprt->xp_verf.oa_length = 0; in gssrpc__svcauth_unix()
136 struct svc_req *rqst, in gssrpc__svcauth_short() argument
140 rqst->rq_xprt->xp_auth = &svc_auth_none; in gssrpc__svcauth_short()
H A Dsvc_auth_none.c68 gssrpc__svcauth_none(struct svc_req *rqst, struct rpc_msg *msg, in gssrpc__svcauth_none() argument
71 rqst->rq_xprt->xp_auth = &svc_auth_none; in gssrpc__svcauth_none()
/freebsd/sys/fs/nfsserver/
H A Dnfs_nfsdkrpc.c124 nfssvc_program(struct svc_req *rqst, SVCXPRT *xprt) in nfssvc_program() argument
137 if (rqst->rq_vers == NFS_VER2) { in nfssvc_program()
138 if (rqst->rq_proc > NFSV2PROC_STATFS || in nfssvc_program()
139 newnfs_nfsv3_procid[rqst->rq_proc] == NFSPROC_NOOP) { in nfssvc_program()
140 svcerr_noproc(rqst); in nfssvc_program()
141 svc_freereq(rqst); in nfssvc_program()
144 nd.nd_procnum = newnfs_nfsv3_procid[rqst->rq_proc]; in nfssvc_program()
146 } else if (rqst->rq_vers == NFS_VER3) { in nfssvc_program()
147 if (rqst->rq_proc >= NFS_V3NPROCS) { in nfssvc_program()
148 svcerr_noproc(rqst); in nfssvc_program()
[all …]
/freebsd/lib/libc/rpc/
H A Dsvc_auth.c58 * flavorx_auth(rqst, msg)
59 * struct svc_req *rqst;
79 * set rqst->rq_xprt->verf to the appropriate response verifier;
80 * sets rqst->rq_client_cred to the "cooked" form of the credentials.
82 * NB: rqst->rq_cxprt->verf must be pre-allocated;
87 * rqst->rq_client_cred, the cooked credentials.
93 _authenticate(struct svc_req *rqst, struct rpc_msg *msg) in _authenticate() argument
101 rqst->rq_cred = msg->rm_call.cb_cred; in _authenticate()
102 SVC_AUTH(rqst->rq_xprt).svc_ah_ops = &svc_auth_null_ops; in _authenticate()
103 SVC_AUTH(rqst in _authenticate()
155 _svcauth_null(struct svc_req * rqst,struct rpc_msg * msg) _svcauth_null() argument
[all...]
H A Dsvc_auth_unix.c54 _svcauth_unix(struct svc_req *rqst, struct rpc_msg *msg) in _svcauth_unix() argument
69 assert(rqst != NULL); in _svcauth_unix()
72 area = (struct area *) rqst->rq_clntcred; in _svcauth_unix()
120 rqst->rq_xprt->xp_verf.oa_flavor = in _svcauth_unix()
122 rqst->rq_xprt->xp_verf.oa_base = in _svcauth_unix()
124 rqst->rq_xprt->xp_verf.oa_length = in _svcauth_unix()
127 rqst->rq_xprt->xp_verf.oa_flavor = AUTH_NULL; in _svcauth_unix()
128 rqst->rq_xprt->xp_verf.oa_length = 0; in _svcauth_unix()
143 _svcauth_short(struct svc_req *rqst, struct rpc_msg *msg) in _svcauth_short() argument
H A Dsvc_auth_des.c108 _svcauth_des(struct svc_req *rqst, struct rpc_msg *msg)
132 area = (struct area *)rqst->rq_clntcred;
300 * Serialize the reply verifier, and update rqst
307 rqst->rq_xprt->xp_verf.oa_flavor = AUTH_DES;
308 rqst->rq_xprt->xp_verf.oa_base = msg->rm_call.cb_verf.oa_base;
309 rqst->rq_xprt->xp_verf.oa_length =
63 __svcauth_des(struct svc_req * rqst,struct rpc_msg * msg) __svcauth_des() argument
/freebsd/crypto/krb5/src/lib/krad/
H A Dclient.c124 request *rqst; in request_new() local
130 rqst = calloc(1, sizeof(request)); in request_new()
131 if (rqst == NULL) in request_new()
135 rqst->count++; in request_new()
137 rqst->rc = rc; in request_new()
138 rqst->code = code; in request_new()
139 rqst->cb = cb; in request_new()
140 rqst->data = data; in request_new()
141 rqst->timeout = timeout / rqst->count; in request_new()
142 rqst->retries = retries; in request_new()
[all …]
H A Dt_packet.c114 const krad_packet *rqst, krb5_boolean *auth) in do_auth() argument
132 request = krad_packet_encode(rqst); in do_auth()
152 if (req != rqst) { in do_auth()
H A Dremote.c92 request_new(krad_remote *rr, krad_packet *rqst, int timeout, size_t retries, in request_new() argument
102 tmp->request = rqst; in request_new()
/freebsd/lib/librpcsec_gss/
H A Dsvc_rpcsec_gss.c592 struct svc_req *rqst, in svc_rpc_gss_accept_sec_context() argument
607 if (!svc_getargs(rqst->rq_xprt, in svc_rpc_gss_accept_sec_context()
620 if (sname->sn_program == rqst->rq_prog in svc_rpc_gss_accept_sec_context()
621 && sname->sn_version == rqst->rq_vers) { in svc_rpc_gss_accept_sec_context()
804 struct svc_req *rqst, u_int seq) in svc_rpc_gss_nextverf() argument
827 rqst->rq_xprt->xp_verf.oa_flavor = RPCSEC_GSS; in svc_rpc_gss_nextverf()
828 rqst->rq_xprt->xp_verf.oa_base = (caddr_t)client->cl_verf.value; in svc_rpc_gss_nextverf()
829 rqst->rq_xprt->xp_verf.oa_length = (u_int)client->cl_verf.length; in svc_rpc_gss_nextverf()
835 svc_rpc_gss_callback(struct svc_rpc_gss_client *client, struct svc_req *rqst) in svc_rpc_gss_callback() argument
848 if (scb->cb_callback.program == rqst->rq_prog in svc_rpc_gss_callback()
[all …]
/freebsd/sys/rpc/rpcsec_gss/
H A Dsvc_rpcsec_gss.c919 struct svc_req *rqst, in svc_rpc_gss_accept_sec_context() argument
954 if (!svc_getargs(rqst, in svc_rpc_gss_accept_sec_context()
969 if (sname->sn_program == rqst->rq_prog in svc_rpc_gss_accept_sec_context()
970 && sname->sn_version == rqst->rq_vers) { in svc_rpc_gss_accept_sec_context()
1227 struct svc_req *rqst, u_int seq) in svc_rpc_gss_nextverf() argument
1252 rqst->rq_verf.oa_flavor = RPCSEC_GSS; in svc_rpc_gss_nextverf()
1253 rqst->rq_verf.oa_length = mic.length; in svc_rpc_gss_nextverf()
1254 bcopy(mic.value, rqst->rq_verf.oa_base, mic.length); in svc_rpc_gss_nextverf()
1262 svc_rpc_gss_callback(struct svc_rpc_gss_client *client, struct svc_req *rqst) in svc_rpc_gss_callback() argument
1275 if (scb->cb_callback.program == rqst->rq_prog in svc_rpc_gss_callback()
[all …]
/freebsd/crypto/krb5/src/lib/rpc/unit-test/
H A Dserver.c31 void log_miscerr(struct svc_req *rqst, struct rpc_msg *msg, char
36 struct svc_req *rqst, struct rpc_msg *msg,
166 struct svc_req *rqst, struct rpc_msg *msg, in rpc_test_badverf() argument
178 inet_ntoa(rqst->rq_xprt->xp_raddr.sin_addr), in rpc_test_badverf()
179 ntohs(rqst->rq_xprt->xp_raddr.sin_port), in rpc_test_badverf()
219 void log_miscerr(struct svc_req *rqst, struct rpc_msg *msg, in log_miscerr() argument
224 a = inet_ntoa(rqst->rq_xprt->xp_raddr.sin_addr); in log_miscerr()
/freebsd/crypto/krb5/src/plugins/preauth/otp/
H A Dotp_state.c625 callback(krb5_error_code retval, const krad_packet *rqst, in callback() argument
691 request *rqst = NULL; in otp_state_verify() local
700 rqst = calloc(1, sizeof(request)); in otp_state_verify()
701 if (rqst == NULL) { in otp_state_verify()
705 rqst->state = state; in otp_state_verify()
706 rqst->data = data; in otp_state_verify()
707 rqst->cb = cb; in otp_state_verify()
709 retval = krad_attrset_copy(state->attrs, &rqst->attrs); in otp_state_verify()
713 retval = krad_attrset_add(rqst->attrs, KRAD_ATTR_USER_PASSWORD, in otp_state_verify()
719 &rqst->tokens); in otp_state_verify()
[all …]
/freebsd/sys/rpc/rpcsec_tls/
H A Drpctls_impl.c430 _svcauth_rpcsec_tls(struct svc_req *rqst, struct rpc_msg *msg) in _svcauth_rpcsec_tls() argument
447 rqst->rq_verf = rpctls_null_verf; in _svcauth_rpcsec_tls()
450 if (rqst->rq_cred.oa_length != 0 || in _svcauth_rpcsec_tls()
457 if (rqst->rq_proc != NULLPROC) { in _svcauth_rpcsec_tls()
476 xprt = rqst->rq_xprt; in _svcauth_rpcsec_tls()
485 call_stat = svc_sendreply(rqst, (xdrproc_t)xdr_void, NULL); in _svcauth_rpcsec_tls()
/freebsd/crypto/krb5/src/include/gssrpc/
H A Dauth_gssapi.h68 struct svc_req *rqst,
73 (struct svc_req *rqst,
H A Dsvc_auth.h76 extern enum auth_stat gssrpc__authenticate(struct svc_req *rqst,
/freebsd/crypto/krb5/src/kadmin/server/
H A Dovsec_kadmd.c207 struct svc_req *rqst, struct rpc_msg *msg, char *data) in log_badverf() argument
261 a = client_addr(rqst->rq_xprt); in log_badverf()
291 log_miscerr(struct svc_req *rqst, struct rpc_msg *msg, char *error, char *data) in log_miscerr() argument
294 client_addr(rqst->rq_xprt), error); in log_miscerr()