summaryrefslogtreecommitdiff
path: root/source3/libsmb/clientgen.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-11-05 18:40:38 +0000
committerLuke Leighton <lkcl@samba.org>1999-11-05 18:40:38 +0000
commit32dedee7f006351c505801dc207dbc46ca08044a (patch)
treee9761c6cd3341f3104fcfee714f64334558c8bc2 /source3/libsmb/clientgen.c
parent0d7f9837e282dc1b441c13d99eb7faf3d03ba1de (diff)
downloadsamba-32dedee7f006351c505801dc207dbc46ca08044a.tar.gz
samba-32dedee7f006351c505801dc207dbc46ca08044a.tar.bz2
samba-32dedee7f006351c505801dc207dbc46ca08044a.zip
experimental spoolss rpcclient commands
(This used to be commit c86edef90e7c96d5a99be29e2d2a3679ed26d97d)
Diffstat (limited to 'source3/libsmb/clientgen.c')
-rw-r--r--source3/libsmb/clientgen.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index 4bffb5aa3e..b153654591 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -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
{