Lines Matching defs:cl
137 CLIENT *cl = NULL; /* client handle */
184 if ((cl = malloc(sizeof (CLIENT))) == NULL)
236 cl->cl_ops = clnt_dg_ops();
237 cl->cl_private = (caddr_t)cu;
238 cl->cl_auth = authnone_create();
239 cl->cl_tp = NULL;
240 cl->cl_netid = NULL;
243 return (cl);
250 if (cl) {
251 free(cl);
261 clnt_dg_call(CLIENT *cl, rpcproc_t proc, xdrproc_t xargs, caddr_t argsp,
265 struct cu_data *cu = (struct cu_data *)cl->cl_private;
313 if (cl->cl_auth->ah_cred.oa_flavor != RPCSEC_GSS) {
316 (!AUTH_MARSHALL(cl->cl_auth, xdrs)) ||
325 if (!__rpc_gss_wrap(cl->cl_auth, cu->cu_outbuf,
464 if (cl->cl_auth->ah_cred.oa_flavor ==
466 cl->cl_auth->ah_cred.oa_flavor ==
565 if (!AUTH_VALIDATE(cl->cl_auth,
569 } else if (cl->cl_auth->ah_cred.oa_flavor !=
577 } else if (!__rpc_gss_unwrap(cl->cl_auth, &reply_xdrs,
591 AUTH_REFRESH(cl->cl_auth, &reply_msg))
621 clnt_dg_send(CLIENT *cl, rpcproc_t proc, xdrproc_t xargs, caddr_t argsp)
624 struct cu_data *cu = (struct cu_data *)cl->cl_private;
651 if (cl->cl_auth->ah_cred.oa_flavor != RPCSEC_GSS) {
654 (!AUTH_MARSHALL(cl->cl_auth, xdrs)) ||
663 if (!__rpc_gss_wrap(cl->cl_auth, cu->cu_outbuf,
686 clnt_dg_geterr(CLIENT *cl, struct rpc_err *errp)
688 NOTE(ARGUNUSED(cl))
693 clnt_dg_freeres(CLIENT *cl, xdrproc_t xdr_res, caddr_t res_ptr)
696 struct cu_data *cu = (struct cu_data *)cl->cl_private;
714 clnt_dg_control(CLIENT *cl, int request, char *info)
717 struct cu_data *cu = (struct cu_data *)cl->cl_private;
857 clnt_dg_destroy(CLIENT *cl)
860 struct cu_data *cu = (struct cu_data *)cl->cl_private;
871 if (cl->cl_netid && cl->cl_netid[0])
872 free(cl->cl_netid);
873 if (cl->cl_tp && cl->cl_tp[0])
874 free(cl->cl_tp);
875 free(cl);