1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

experimental spoolss rpcclient commands

(This used to be commit c86edef90e)
This commit is contained in:
Luke Leighton
1999-11-05 18:40:38 +00:00
parent 0d7f9837e2
commit 32dedee7f0
6 changed files with 196 additions and 40 deletions

View File

@ -998,6 +998,7 @@ static BOOL cli_calc_session_pwds(struct cli_state *cli,
uchar *srv_key = (uchar *)cli->cryptkey;
uchar nt_owf[16];
uchar kr[16];
HMACMD5Context ctx;
SMBgenclientchals(cli->lm_cli_chal,
cli->nt_cli_chal,
@ -1023,6 +1024,11 @@ static BOOL cli_calc_session_pwds(struct cli_state *cli,
cli->nt_cli_chal, cli->nt_cli_chal_len,
&ntpword[cli->nt_cli_chal_len]);
*ntpasslen = cli->nt_cli_chal_len + 16;
hmac_md5_init_limK_to_64(kr, 16, &ctx);
hmac_md5_update(cli->nt_cli_chal, cli->nt_cli_chal_len, &ctx);
hmac_md5_final(cli->sess_key, &ctx);
}
else
{