Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 162 for So (0.03 sec)

  1. src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java

        void testWriteAndXWireFormatChainsPlainSMB() {
            DummyPlainSMB next = new DummyPlainSMB();
            DummyAndXBlock block = new DummyAndXBlock(next);
            block.customBatchLimit = 2; // batchLevel (0) < limit (2) so chaining allowed
            block.uid = 0x1234;
            block.useUnicode = true;
    
            byte[] buf = new byte[256];
            int n = block.writeAndXWireFormat(buf, 0);
    
            assertTrue(n > 0);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java

            assertEquals("\\third\\path", request.getPath());
    
            // Multiple leading backslashes - only first one gets stripped, then trailing ones get stripped
            // But getPath() adds a backslash at the beginning, so \\fourth\path\\ becomes \fourth\path\
            request.setPath("\\\\fourth\\path\\\\");
            assertEquals("\\\\fourth\\path\\", request.getPath());
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SIDTest.java

            void testEmptyAndBlank() throws Exception {
                // No subauthorities
                SID s1 = new SID("S-1-5");
                assertTrue(s1.isEmpty());
                // isBlank will fail if sub_authority is null, so we skip that check for s1
    
                // All-zero subauthorities
                byte[] ident = new byte[] { 0, 0, 0, 0, 0, 0 };
                rpc.sid_t st = buildSidT((byte) 1, ident, 0, 0);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/netbios/NbtAddress.java

         * href="../../../nbtcodes.html">Here</a> is
         * a fairly complete list of NetBIOS hex codes. Scope is not used but is
         * still functional in other NetBIOS products and so for completeness it has been
         * implemented. A <code>scope</code> of <code>null</code> or <code>""</code>
         * signifies no scope.
         *
         * @param host the name to resolve
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/util/MD4.java

         */
        private static final int BLOCK_LENGTH = 64; //    = 512 / 8;
    
        /**
         * 4 32-bit words (interim result)
         */
        private int[] context = new int[4];
    
        /**
         * Number of bytes processed so far mod. 2 power of 64.
         */
        private long count;
    
        /**
         * 512 bits input buffer = 16 x 32-bit words holds until reaches 512 bits.
         */
        private byte[] buffer = new byte[BLOCK_LENGTH];
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java

                Object arg = inv.getArgument(0);
                if (arg instanceof Smb2CreateRequest) {
                    Smb2CreateRequest create = (Smb2CreateRequest) arg;
                    // Initialize response chain so query exists
                    create.initResponse(cifsContext);
                    Smb2QueryDirectoryRequest q = (Smb2QueryDirectoryRequest) getNextOf(create);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/DcerpcMessageTest.java

                verify(mockBuffer).enc_ndr_long(message.call_id);
                verify(mockBuffer).enc_ndr_long(12345); // From TestDcerpcMessage.encode_in
                // Note: ptype = 2 (RESPONSE) so it's safe to verify
                verify(mockBuffer).enc_ndr_small(DcerpcConstants.RPC_PT_RESPONSE);
            }
        }
    
        @Nested
        @DisplayName("Message Decoding Tests")
        class MessageDecodingTests {
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/ntlmssp/Type3MessageTest.java

            byte[] messageBytes = original.toByteArray();
    
            // When
            Type3Message parsed = new Type3Message(messageBytes);
    
            // Then
            // Note: getType() method does not exist, so we cannot compare message types
            assertEquals(original.getDomain(), parsed.getDomain());
            assertEquals(original.getUser(), parsed.getUser());
            assertEquals(original.getWorkstation(), parsed.getWorkstation());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java

            void testLockSequenceInformation() {
                // Note: lockSequenceNumber and lockSequenceIndex are private and not settable
                // They default to 0, so we test the default encoding
                byte[] buffer = new byte[256];
                request.writeBytesWireFormat(buffer, 0);
    
                int lockSequence = SMBUtil.readInt4(buffer, 4);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java

            // Flags (2 bytes) - should be 0 by default
            assertEquals(0, SMBUtil.readInt2(buffer, 2));
    
            // Reserved (4 bytes) - The implementation skips writing these bytes,
            // so they will have the initial pattern (0xCCCCCCCC)
            // This is expected behavior as seen in the implementation at line 131
            assertEquals((byte) 0xCC, buffer[4]);
            assertEquals((byte) 0xCC, buffer[5]);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
Back to top