Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for CAP_EXTENDED_SECURITY (0.07 sec)

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

            assertEquals(0x0010, SmbConstants.CAP_NT_SMBS);
            assertEquals(0x0040, SmbConstants.CAP_STATUS32);
            assertEquals(0x1000, SmbConstants.CAP_DFS);
            assertEquals(0x80000000, SmbConstants.CAP_EXTENDED_SECURITY);
        }
    
        /**
         * Test file attribute constants.
         */
        @Test
        @DisplayName("File attribute constants are correct")
        void fileAttributesTest() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/SmbComNegotiateResponseTest.java

        }
    
        @Test
        void testReadBytesWireFormat_ExtendedSecurity() {
            // Setup server data for this scenario
            serverData.capabilities = SmbConstants.CAP_EXTENDED_SECURITY;
            response.byteCount = 16; // GUID length
    
            // Prepare byte array with a GUID
            byte[] guid = new byte[16];
            for (int i = 0; i < 16; i++) {
                guid[i] = (byte) i;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbComSessionSetupAndX.java

                    if (auth == NtlmPasswordAuthentication.ANONYMOUS) {
                        lmHash = new byte[0];
                        ntHash = new byte[0];
                        capabilities &= ~SmbConstants.CAP_EXTENDED_SECURITY;
                    } else if (session.transport.server.encryptedPasswords) {
                        lmHash = auth.getAnsiHash(session.transport.server.encryptionKey);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/com/SmbComSessionSetupAndX.java

                    if (a.isAnonymous()) {
                        this.lmHash = new byte[0];
                        this.ntHash = new byte[0];
                        this.capabilities &= ~SmbConstants.CAP_EXTENDED_SECURITY;
                        if (a.isGuest()) {
                            this.accountName = a.getUsername();
                            if (this.isUseUnicode()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbComNegotiateResponse.java

            return bufferIndex - start;
        }
    
        @Override
        int readBytesWireFormat(final byte[] buffer, int bufferIndex) {
            final int start = bufferIndex;
    
            if ((server.capabilities & CAP_EXTENDED_SECURITY) == 0) {
                server.encryptionKey = new byte[server.encryptionKeyLength];
                System.arraycopy(buffer, bufferIndex, server.encryptionKey, 0, server.encryptionKeyLength);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 6K bytes
    - Viewed (0)
Back to top