Lines Matching defs:rc

154 	int		rc;
156 rc = smbd_authsock_create();
157 if (rc)
158 return (rc);
162 rc = pthread_create(&tid, &attr, smbd_authsvc_listen, &smbd);
164 if (rc) {
166 return (rc);
230 int ls, ns, rc;
283 rc = pthread_create(&tid, &attr, smbd_authsvc_work, ctx);
284 if (rc) {
285 smbd_report("authsvc, thread create failed, %d", rc);
390 int len, rc;
438 rc = smbd_authsvc_dispatch(ctx);
439 if (rc)
480 int rc;
489 rc = smbd_authsvc_oldreq(ctx);
493 rc = smbd_authsvc_clinfo(ctx);
497 rc = smbd_authsvc_esfirst(ctx);
505 rc = smbd_authsvc_esnext(ctx);
509 rc = smbd_authsvc_gettoken(ctx);
522 if (rc != 0) {
526 er->ler_ntstatus = rc;
539 int rc = 0;
557 return (rc);
584 int idx, pref, rc;
600 rc = smbd_raw_ntlmssp_esfirst(ctx);
601 return (rc);
607 rc = spnegoInitFromBinary(ctx->ctx_irawbuf,
609 if (rc != 0) {
614 rc = spnegoGetTokenType(ctx->ctx_itoken, &ctx->ctx_itoktype);
615 if (rc != 0) {
663 rc = mh->mh_init(ctx);
664 if (rc != 0) {
666 return (rc);
672 rc = smbd_authsvc_escmn(ctx);
673 return (rc);
685 int rc;
695 rc = smbd_raw_ntlmssp_esnext(ctx);
696 return (rc);
710 rc = spnegoInitFromBinary(ctx->ctx_irawbuf,
712 if (rc != 0)
715 rc = spnegoGetTokenType(ctx->ctx_itoken, &ctx->ctx_itoktype);
716 if (rc != 0)
722 rc = smbd_authsvc_escmn(ctx);
723 return (rc);
731 int rc;
745 rc = spnegoGetMechToken(ctx->ctx_itoken,
747 switch (rc) {
771 rc = ctx->ctx_mh_work(ctx);
772 if (rc != 0)
773 return (rc);
806 rc = spnegoCreateNegTokenTarg(
819 rc = spnegoTokenGetBinary(ctx->ctx_otoken,
821 if (rc)
822 rc = NT_STATUS_INTERNAL_ERROR;
825 return (rc);
838 int rc;
841 rc = mh->mh_init(ctx);
842 if (rc != 0)
843 return (rc);
849 rc = smbd_raw_ntlmssp_esnext(ctx);
851 return (rc);
864 int rc;
870 rc = ctx->ctx_mh_work(ctx);
876 return (rc);
888 int rc = 0;
909 rc = NT_STATUS_INTERNAL_ERROR;
912 return (rc);
946 int rc;
956 rc = spnegoCreateNegTokenHint(mechList, mechCnt,
958 if (rc != SPNEGO_E_SUCCESS) {
960 "spnegoCreateNegTokenHint, rc=%d", rc);
964 rc = spnegoTokenGetBinary(hSpnegoToken, pBuf, &tLen);
965 if (rc != SPNEGO_E_SUCCESS) {
967 "spnegoTokenGetBinary, rc=%d", rc);