Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 99 for 0x4004 (0.33 sec)

  1. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoRequestTest.java

                // Verify info type and file info class
                assertEquals((byte) 0x01, buffer[66]);
                assertEquals((byte) 0x04, buffer[67]);
    
                // Verify output buffer length
                assertEquals(0x8000, SMBUtil.readInt4(buffer, 68));
    
                // Verify input buffer offset (should be 0 when no input buffer)
                assertEquals(0, SMBUtil.readInt2(buffer, 72));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/NtTransQuerySecurityDescTest.java

            ByteBuffer bb = ByteBuffer.allocate(8).order(ByteOrder.LITTLE_ENDIAN);
            bb.putShort((short) fid);
            bb.put((byte) 0x00); // Reserved
            bb.put((byte) 0x00); // Reserved
            bb.putInt(securityInformation);
            return bb.array();
        }
    
        /**
         * Provide a range of values that are valid for the constructor.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/SmbComQueryInformationResponseTest.java

            String result = response.toString();
            assertNotNull(result);
            assertTrue(result.startsWith("SmbComQueryInformationResponse["));
            assertTrue(result.contains("fileAttributes=0x0000"));
            assertTrue(result.contains("lastWriteTime=" + new Date(0L)));
            assertTrue(result.contains("fileSize=0"));
            assertTrue(result.endsWith("]"));
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/net/NetShareEnumTest.java

            assertArrayEquals(expectedDescrBytes, actualDescrBytes);
    
            // Verify level (0x0001 - 2 bytes)
            int descrEnd = 2 + expectedDescrBytes.length;
            assertEquals(0x01, dst[descrEnd]);
            assertEquals(0x00, dst[descrEnd + 1]);
    
            // Verify maxDataCount (2 bytes)
            int maxDataCount = SMBUtil.readInt2(dst, descrEnd + 2);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java

            int bytesWritten = request.writeBytesWireFormat(buffer, offset);
    
            // Then
            assertEquals(4, bytesWritten);
    
            // Expected wire format: [0x04, 0x00, 0x00, 0x00]
            byte[] expected = new byte[] { 0x04, 0x00, 0x00, 0x00 };
            assertArrayEquals(expected, buffer);
        }
    
        @Test
        @DisplayName("Should always return 0 for readBytesWireFormat")
        void testReadBytesWireFormat() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java

        void testConstructor() throws Exception {
            // Verify command is set correctly (SMB2_FLUSH = 0x0007)
            Field commandField = ServerMessageBlock2.class.getDeclaredField("command");
            commandField.setAccessible(true);
            int command = (int) commandField.get(request);
            assertEquals(0x0007, command); // SMB2_FLUSH value
    
            // Verify file ID is set
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/util/SMBUtilTest.java

                    (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF,
                    // 0x0000000000000000L
                    (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00 };
    
            assertEquals(0x123456789ABCDEF0L, SMBUtil.readInt8(src, 0));
            assertEquals(0xFFFFFFFFFFFFFFFFL, SMBUtil.readInt8(src, 8));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

        @DisplayName("Should support AES-256 cipher constants")
        void testAES256CipherConstants() {
            // Verify AES-256 constants are defined
            assertEquals(0x0003, Smb2EncryptionContext.CIPHER_AES_256_CCM, "AES-256-CCM constant should be defined");
            assertEquals(0x0004, Smb2EncryptionContext.CIPHER_AES_256_GCM, "AES-256-GCM constant should be defined");
    
            // Test creating context with AES-256 cipher IDs
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/NetServerEnum2.java

            }
    
            writeInt2(subCommand & 0xFF, dst, dstIndex);
            dstIndex += 2;
            System.arraycopy(descr, 0, dst, dstIndex, descr.length);
            dstIndex += descr.length;
            writeInt2(0x0001, dst, dstIndex);
            dstIndex += 2;
            writeInt2(maxDataCount, dst, dstIndex);
            dstIndex += 2;
            writeInt4(serverTypes, dst, dstIndex);
            dstIndex += 4;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/NtlmContext.java

                    }
    
                    serverChallenge = msg2.getChallenge();
                    ntlmsspFlags &= msg2.getFlags();
    
                    //                  netbiosName = getNtlmsspListItem(token, 0x0001);
    
                    final Type3Message msg3 =
                            new Type3Message(msg2, auth.getPassword(), auth.getDomain(), auth.getUsername(), workstation, ntlmsspFlags);
                    token = msg3.toByteArray();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7K bytes
    - Viewed (0)
Back to top