Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 91 for 0x0202 (0.04 sec)

  1. src/test/java/jcifs/internal/smb2/Smb3KeyDerivationTest.java

            assertNotNull(signingKey, "Should handle large session key");
            assertEquals(16, signingKey.length, "Should still produce 16-byte key");
        }
    
        @ParameterizedTest
        @ValueSource(ints = { 0x0300, 0x0302, 0x0310 }) // Non-3.1.1 dialects
        @DisplayName("Should use SMB 3.0.x context for non-3.1.1 dialects")
        void testDeriveKeys_NonSMB311Dialects(int dialect) {
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/SmbComTransactionTest.java

            assertEquals((byte) 0x08, SmbComTransaction.TRANS2_SET_FILE_INFORMATION);
    
            // Test NET subcommands
            assertEquals(0x0000, SmbComTransaction.NET_SHARE_ENUM);
            assertEquals(0x0068, SmbComTransaction.NET_SERVER_ENUM2);
            assertEquals(0x00D7, SmbComTransaction.NET_SERVER_ENUM3);
    
            // Test TRANS subcommands
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/DcerpcBindTest.java

                // When
                DcerpcException result = bind.getResult();
    
                // Then
                assertNotNull(result, "Should return exception for unknown error result");
                assertEquals("0x0005", result.getMessage(), "Should return hex representation for unknown error code");
            }
    
            @Test
            @DisplayName("getResult should handle large error codes")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/dcerpc/msrpc/netdfs.java

         */
        public static final int DFS_VOLUME_FLAVOR_AD_BLOB = 0x200;
        /**
         * DFS storage state indicating offline status
         */
        public static final int DFS_STORAGE_STATE_OFFLINE = 0x0001;
        /**
         * DFS storage state indicating online status
         */
        public static final int DFS_STORAGE_STATE_ONLINE = 0x0002;
        /**
         * DFS storage state indicating active status
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbComTransaction.java

                dstIndex++;
                dst[dstIndex++] = (byte) 0x00; // Reserved1
                writeInt2(flags, dst, dstIndex);
                dstIndex += 2;
                writeInt4(timeout, dst, dstIndex);
                dstIndex += 4;
                dst[dstIndex++] = (byte) 0x00; // Reserved2
                dst[dstIndex++] = (byte) 0x00;
            }
            writeInt2(parameterCount, dst, dstIndex);
            dstIndex += 2;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/lang/StringUtilTest.java

            assertEquals("abc", StringUtil.substringToLast("abc", "dddd"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToHex() throws Exception {
            assertEquals("010203", StringUtil.toHex(new byte[] { 1, 2, 3 }));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToHex2() throws Exception {
            assertEquals("0001", StringUtil.toHex(1));
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 12K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java

        }
    
        @Test
        void testWriteHeaderReadHeader() {
            byte[] buffer = new byte[32];
            smb.command = ServerMessageBlock.SMB_COM_NEGOTIATE;
            smb.flags = (byte) 0x18;
            smb.flags2 = 0x0001;
            smb.tid = 1;
            smb.pid = 2;
            smb.uid = 3;
            smb.mid = 4;
    
            smb.writeHeaderWireFormat(buffer, 0);
    
            TestServerMessageBlock readSmb = new TestServerMessageBlock();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDescResponseTest.java

            buffer.put((byte) 0x01); // SubAuthorityCount
            buffer.put(new byte[] { 0, 0, 0, 0, 0, 2 }); // IdentifierAuthority
            buffer.putInt(0); // SubAuthority
    
            // DACL at offset 60
            buffer.position(60);
            buffer.put((byte) 0x02); // AclRevision
            buffer.put((byte) 0x00); // Padding
            buffer.putShort((short) 8); // AclSize
            buffer.putShort((short) 0); // AceCount
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/util/HexdumpTest.java

            byte[] data1 = { 0x00, 0x01, 0x02, 0x03 };
            assertEquals("00", Hexdump.toHexString(data1, 0, 2)); // 2 chars = 1 byte
            assertEquals("000", Hexdump.toHexString(data1, 0, 3)); // 3 chars = 1.5 bytes (rounds up to 2)
            assertEquals("0001", Hexdump.toHexString(data1, 0, 4)); // 4 chars = 2 bytes
            assertEquals("000102", Hexdump.toHexString(data1, 0, 6)); // 6 chars = 3 bytes
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java

            }
    
            @Test
            @DisplayName("Should handle ciphers with maximum value")
            void testMaximumCipherValues() throws SMBProtocolDecodingException {
                int[] ciphers = { 0xFFFF, 0x0000, 0x7FFF };
                EncryptionNegotiateContext originalContext = new EncryptionNegotiateContext(mockConfig, ciphers);
    
                int encoded = originalContext.encode(buffer, 0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
Back to top