Lines Matching refs:ctx
40 * Based on code previously in ctx.c (from Boris Popov?)
96 krb5_auth_context ss_auth; /* auth ctx. w/ server (ptr) */
253 struct smb_ctx *ctx = sp->smb_ctx;
259 char *prin = ctx->ct_srvname;
271 if (ctx->ct_vcflags & SMBV_WILL_SIGN)
272 ctx->ct_hflags2 |= SMB_FLAGS2_SECURITY_SIGNATURE;
383 struct smb_ctx *ctx = sp->smb_ctx;
401 memset(ctx->ct_ssn_key, 0, SMBIOC_HASH_SZ);
404 memcpy(ctx->ct_ssn_key, ssn_key->contents, len);
409 if ((ctx->ct_hflags2 & SMB_FLAGS2_SECURITY_SIGNATURE) &&
410 (ctx->ct_mackey == NULL)) {
411 ctx->ct_mackeylen = ssn_key->length;
412 ctx->ct_mackey = malloc(ctx->ct_mackeylen);
413 if (ctx->ct_mackey == NULL) {
414 ctx->ct_mackeylen = 0;
418 memcpy(ctx->ct_mackey, ssn_key->contents,
419 ctx->ct_mackeylen);
424 ctx->ct_mac_seqno = 2;