Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for 65 (0.81 sec)

  1. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java

            // Set incorrect structure size (should be 65)
            SMBUtil.writeInt2(64, malformedBuffer, 0);
    
            SMBProtocolDecodingException exception = assertThrows(SMBProtocolDecodingException.class, () -> {
                response.readBytesWireFormat(malformedBuffer, 0);
            });
    
            assertTrue(exception.getMessage().contains("Structure size is not 65"));
            assertTrue(exception.getMessage().contains("got: 64"));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbFileOutputStreamTest.java

                    SmbConstants.O_CREAT | SmbConstants.O_WRONLY | SmbConstants.O_TRUNC, SmbConstants.FILE_WRITE_DATA,
                    SmbConstants.DEFAULT_SHARING);
    
            // When
            outputStream.write(65); // Write 'A'
    
            // Then
            verify(mockTreeHandle, atLeastOnce()).send(any(Smb2WriteRequest.class), any());
        }
    
        @Test
        void testWriteByteArray() throws IOException, CIFSException {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

            setReceivedMethod.invoke(resp);
        }
    
        private byte[] createValidNegotiateResponseBuffer() {
            byte[] buffer = new byte[256];
            int offset = 0;
    
            // Structure size (65)
            SMBUtil.writeInt2(65, buffer, offset);
    
            // Security mode
            SMBUtil.writeInt2(Smb2Constants.SMB2_NEGOTIATE_SIGNING_REQUIRED, buffer, offset + 2);
    
            // Dialect revision
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

            if (buffer == null || buffer.length < bufferIndex + 65) {
                throw new SMBProtocolDecodingException("Buffer too small for SMB2 negotiate response (minimum 65 bytes required)");
            }
    
            final int structureSize = SMBUtil.readInt2(buffer, bufferIndex);
            if (structureSize != 65) {
                throw new SMBProtocolDecodingException("Structure size is not 65, got: " + structureSize);
            }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  5. src/test/java/jcifs/netbios/NodeStatusResponseTest.java

            src[srcIndex + 16] = 0x00; // hex code
            src[srcIndex + 17] = (byte) 0xFE; // All flags except one: 11111110
            // Bit 7: group (1)
            // Bits 6-5: owner node type (11 = 3)
            // Bit 4: being deleted (1)
            // Bit 3: in conflict (1)
            // Bit 2: active (1)
            // Bit 1: permanent (1)
    
            // MAC address
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/util/MD4.java

            A = GG(A, B, C, D, X[1], 3);
            D = GG(D, A, B, C, X[5], 5);
            C = GG(C, D, A, B, X[9], 9);
            B = GG(B, C, D, A, X[13], 13);
            A = GG(A, B, C, D, X[2], 3);
            D = GG(D, A, B, C, X[6], 5);
            C = GG(C, D, A, B, X[10], 9);
            B = GG(B, C, D, A, X[14], 13);
            A = GG(A, B, C, D, X[3], 3);
            D = GG(D, A, B, C, X[7], 5);
            C = GG(C, D, A, B, X[11], 9);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 9.6K bytes
    - Viewed (0)
Back to top