Lines Matching refs:ct_password
759 if (strlen(passwd) >= sizeof (ctx->ct_password)) { in smb_ctx_setpassword()
772 memset(ctx->ct_password, 0, sizeof (ctx->ct_password)); in smb_ctx_setpassword()
774 (void) smb_simpledecrypt(ctx->ct_password, passwd); in smb_ctx_setpassword()
776 strlcpy(ctx->ct_password, passwd, in smb_ctx_setpassword()
777 sizeof (ctx->ct_password)); in smb_ctx_setpassword()
782 if (ctx->ct_password[0]) { in smb_ctx_setpassword()
783 err = ntlm_compute_nt_hash(ctx->ct_nthash, ctx->ct_password); in smb_ctx_setpassword()
786 err = ntlm_compute_lm_hash(ctx->ct_lmhash, ctx->ct_password); in smb_ctx_setpassword()
808 if (ctx->ct_password[0] == '\0') in smb_ctx_setpwhash()
809 strlcpy(ctx->ct_password, "$HASH", in smb_ctx_setpwhash()
810 sizeof (ctx->ct_password)); in smb_ctx_setpwhash()
1130 if (ctx->ct_password[0] == '\0') in smb_ctx_resolve()