diff options
author | Luke Leighton <lkcl@samba.org> | 1999-11-05 18:40:38 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-11-05 18:40:38 +0000 |
commit | 32dedee7f006351c505801dc207dbc46ca08044a (patch) | |
tree | e9761c6cd3341f3104fcfee714f64334558c8bc2 /source3/libsmb | |
parent | 0d7f9837e282dc1b441c13d99eb7faf3d03ba1de (diff) | |
download | samba-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')
-rw-r--r-- | source3/libsmb/clientgen.c | 6 |
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 { |