1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

auth: Add cli_credentials_is_password_nt_hash()

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Andreas Schneider 2023-03-31 10:44:16 +02:00 committed by Andrew Bartlett
parent 97c0982bad
commit 61424dd221
2 changed files with 6 additions and 0 deletions

View File

@ -224,6 +224,7 @@ bool cli_credentials_set_old_utf16_password(struct cli_credentials *cred,
const DATA_BLOB *password_utf16);
void cli_credentials_set_password_will_be_nt_hash(struct cli_credentials *cred,
bool val);
bool cli_credentials_is_password_nt_hash(struct cli_credentials *cred);
bool cli_credentials_set_nt_hash(struct cli_credentials *cred,
const struct samr_Password *nt_hash,
enum credentials_obtained obtained);

View File

@ -458,6 +458,11 @@ _PUBLIC_ void cli_credentials_set_password_will_be_nt_hash(struct cli_credential
cred->password_will_be_nt_hash = val;
}
_PUBLIC_ bool cli_credentials_is_password_nt_hash(struct cli_credentials *cred)
{
return cred->password_will_be_nt_hash;
}
_PUBLIC_ bool cli_credentials_set_nt_hash(struct cli_credentials *cred,
const struct samr_Password *nt_hash,
enum credentials_obtained obtained)