Lines Matching defs:cl

130 	CLIENT *cl = NULL;		/* client handle */
177 if ((cl = malloc(sizeof (CLIENT))) == NULL)
228 cl->cl_ops = clnt_dg_ops();
229 cl->cl_private = (caddr_t)cu;
230 cl->cl_auth = authnone_create();
231 cl->cl_tp = NULL;
232 cl->cl_netid = NULL;
235 return (cl);
242 if (cl) {
243 free(cl);
253 clnt_dg_call(CLIENT *cl, rpcproc_t proc, xdrproc_t xargs, caddr_t argsp,
257 struct cu_data *cu = (struct cu_data *)cl->cl_private;
305 if (cl->cl_auth->ah_cred.oa_flavor != RPCSEC_GSS) {
308 (!AUTH_MARSHALL(cl->cl_auth, xdrs)) ||
317 if (!__rpc_gss_wrap(cl->cl_auth, cu->cu_outbuf,
457 if (cl->cl_auth->ah_cred.oa_flavor ==
459 cl->cl_auth->ah_cred.oa_flavor ==
558 if (!AUTH_VALIDATE(cl->cl_auth,
562 } else if (cl->cl_auth->ah_cred.oa_flavor !=
570 } else if (!__rpc_gss_unwrap(cl->cl_auth, &reply_xdrs,
584 AUTH_REFRESH(cl->cl_auth, &reply_msg))
614 clnt_dg_send(CLIENT *cl, rpcproc_t proc, xdrproc_t xargs, caddr_t argsp)
617 struct cu_data *cu = (struct cu_data *)cl->cl_private;
644 if (cl->cl_auth->ah_cred.oa_flavor != RPCSEC_GSS) {
647 (!AUTH_MARSHALL(cl->cl_auth, xdrs)) ||
656 if (!__rpc_gss_wrap(cl->cl_auth, cu->cu_outbuf,
679 clnt_dg_geterr(CLIENT *cl, struct rpc_err *errp)
682 struct cu_data *cu = (struct cu_data *)cl->cl_private;
688 clnt_dg_freeres(CLIENT *cl, xdrproc_t xdr_res, caddr_t res_ptr)
691 struct cu_data *cu = (struct cu_data *)cl->cl_private;
709 clnt_dg_control(CLIENT *cl, int request, char *info)
712 struct cu_data *cu = (struct cu_data *)cl->cl_private;
852 clnt_dg_destroy(CLIENT *cl)
855 struct cu_data *cu = (struct cu_data *)cl->cl_private;
866 if (cl->cl_netid && cl->cl_netid[0])
867 free(cl->cl_netid);
868 if (cl->cl_tp && cl->cl_tp[0])
869 free(cl->cl_tp);
870 free(cl);