Lines Matching defs:ctx
80 smb_get_authentication(struct smb_ctx *ctx)
90 ctx->ct_authflags &= ~SMB_AT_KRB5;
92 if (ctx->ct_flags & SMBCF_KCFOUND) {
95 ctx->ct_flags |= SMBCF_KCBAD;
98 if (ctx->ct_flags & SMBCF_NOPWD)
107 memset(ctx->ct_password, 0, sizeof (ctx->ct_password));
108 strlcpy(ctx->ct_password, npw, sizeof (ctx->ct_password));
123 if (ctx->ct_password[0]) {
124 err = ntlm_compute_lm_hash(ctx->ct_lmhash, ctx->ct_password);
127 err = ntlm_compute_nt_hash(ctx->ct_nthash, ctx->ct_password);
137 smb_browse(struct smb_ctx *ctx, int anon)