"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/jcifs/ntlmssp/Type3Message.java" between
jcifs-1.3.18.tgz and jcifs-1.3.19.tgz

About: JCIFS is a client library that implements the CIFS/SMB networking protocol in 100% Java (CIFS is the standard file sharing protocol on the Microsoft Windows platform).

Type3Message.java  (jcifs-1.3.18.tgz):Type3Message.java  (jcifs-1.3.19.tgz)
skipping to change at line 219 skipping to change at line 219
rc4.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(ntlm 2SessionKey, "RC4")); rc4.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(ntlm 2SessionKey, "RC4"));
rc4.update(masterKey, 0, 16, exchangedKey, 0); rc4.update(masterKey, 0, 16, exchangedKey, 0);
} catch (GeneralSecurityException gse) { } catch (GeneralSecurityException gse) {
throw new RuntimeException("", gse); throw new RuntimeException("", gse);
} }
*/ */
setSessionKey(exchangedKey); setSessionKey(exchangedKey);
} else { } else {
masterKey = ntlm2SessionKey; masterKey = ntlm2SessionKey;
setSessionKey(masterKey);
} }
} }
} }
break; break;
case 2: case 2:
byte[] nt = getNTResponse(type2, password); byte[] nt = getNTResponse(type2, password);
setLMResponse(nt); setLMResponse(nt);
setNTResponse(nt); setNTResponse(nt);
break; break;
case 3: case 3:
skipping to change at line 267 skipping to change at line 266
rc4.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(userSess ionKey, "RC4")); rc4.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(userSess ionKey, "RC4"));
rc4.update(masterKey, 0, 16, exchangedKey, 0); rc4.update(masterKey, 0, 16, exchangedKey, 0);
} catch (GeneralSecurityException gse) { } catch (GeneralSecurityException gse) {
throw new RuntimeException("", gse); throw new RuntimeException("", gse);
} }
*/ */
setSessionKey(exchangedKey); setSessionKey(exchangedKey);
} else { } else {
masterKey = userSessionKey; masterKey = userSessionKey;
setSessionKey(masterKey);
} }
} }
break; break;
default: default:
setLMResponse(getLMResponse(type2, password)); setLMResponse(getLMResponse(type2, password));
setNTResponse(getNTResponse(type2, password)); setNTResponse(getNTResponse(type2, password));
} }
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)