Lines Matching refs:ctx
106 smb_negprot(struct smb_ctx *ctx, struct mbdata *oblob)
108 struct smb_sopt *sv = &ctx->ct_sopt;
109 struct smb_iods *is = &ctx->ct_iods;
120 * Note: ctx->ct_hflags* are copied into the
129 ctx->ct_hflags =
132 ctx->ct_hflags2 =
145 if (ctx->ct_vopt & SMBVOPT_EXT_SEC)
146 ctx->ct_hflags2 |= SMB_FLAGS2_EXT_SEC;
161 ctx->ct_mac_seqno = 0;
162 if (ctx->ct_mackey != NULL) {
163 free(ctx->ct_mackey);
164 ctx->ct_mackey = NULL;
165 ctx->ct_mackeylen = 0;
168 sv = &ctx->ct_sopt;
171 err = smb_rq_init(ctx, SMB_COM_NEGOTIATE, &rqp);
190 err = smb_rq_internal(ctx, rqp);
276 if (ctx->ct_vopt & SMBVOPT_SIGNING_ENABLED)
284 if (ctx->ct_vopt & SMBVOPT_SIGNING_REQUIRED) {
293 ctx->ct_vcflags |= SMBV_WILL_SIGN;
299 ctx->ct_vcflags |= SMBV_UNICODE;
301 ctx->ct_hflags2 &= ~SMB_FLAGS2_UNICODE;
320 ctx->ct_hflags2 &= ~SMB_FLAGS2_ERR_STATUS;
325 ctx->ct_vcflags |= SMBV_WIN95;
368 ctx->ct_hflags2 &= ~SMB_FLAGS2_EXT_SEC;
380 err = md_get_mem(mbp, ctx->ct_srv_chal,
445 ctx->ct_clnt_caps = sv->sv_caps & smb_clnt_caps_mask;
448 (void) smb_get_urandom(ctx->ct_clnonce, NTLM_CHAL_SZ);