- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for dialectIndex (0.22 sec)
-
src/test/java/jcifs/internal/smb1/com/SmbComNegotiateResponseTest.java
} } // Helper method to set private dialectIndex field using reflection private void setDialectIndex(SmbComNegotiateResponse response, int dialectIndex) { try { Field field = response.getClass().getDeclaredField("dialectIndex"); field.setAccessible(true); field.set(response, dialectIndex); } catch (Exception e) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComNegotiateResponse.java
} /** * Returns the index of the selected SMB dialect from the negotiation. * * @return the dialectIndex */ public int getDialectIndex() { return this.dialectIndex; } /** * Returns the server capabilities negotiated during the SMB handshake. * * @return the negotiated capabilities */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 15.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbComNegotiateResponse.java
return 0; } @Override int readParameterWordsWireFormat(final byte[] buffer, int bufferIndex) { final int start = bufferIndex; dialectIndex = readInt2(buffer, bufferIndex); bufferIndex += 2; if (dialectIndex > 10) { return bufferIndex - start; } server.securityMode = buffer[bufferIndex] & 0xFF; bufferIndex++;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComNegotiateResponseTest.java
void testReadParameterWordsWireFormat_InvalidDialect() { byte[] paramWords = new byte[2]; paramWords[0] = 11; // dialectIndex > 10 int bytesRead = response.readParameterWordsWireFormat(paramWords, 0); assertEquals(2, bytesRead); assertEquals(11, response.dialectIndex); } @Test void testReadBytesWireFormat_NoExtendedSecurity() throws UnsupportedEncodingException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbTransport.java
final int altPort = port == 0 || port == DEFAULT_PORT ? 139 : DEFAULT_PORT; negotiate(altPort, resp); port = altPort; } if (resp.dialectIndex > 10) { throw new SmbException("This client does not support the negotiated dialect."); } if ((server.capabilities & CAP_EXTENDED_SECURITY) != CAP_EXTENDED_SECURITY && server.encryptionKeyLength != 8
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 31.8K bytes - Viewed (0)