Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for spec_version (0.24 seconds)

  1. tests/test_stream_cancellation.py

            if message["type"] == "http.response.body":
                chunks.append(message.get("body", b""))
    
        scope = {
            "type": "http",
            "asgi": {"version": "3.0", "spec_version": "2.0"},
            "http_version": "1.1",
            "method": "GET",
            "path": path,
            "query_string": b"",
            "root_path": "",
            "headers": [],
            "server": ("test", 80),
        }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 27 18:56:47 GMT 2026
    - 2.7K bytes
    - Click Count (0)
  2. src/test/java/jcifs/pac/PacTest.java

            // Create PAC with unaligned buffer offset
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            writeLittleEndianInt(baos, 1); // bufferCount
            writeLittleEndianInt(baos, PacConstants.PAC_VERSION); // version
            writeLittleEndianInt(baos, PacConstants.LOGON_INFO); // type
            writeLittleEndianInt(baos, 10); // size
            writeLittleEndianLong(baos, 25); // Unaligned offset (not multiple of 8)
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  3. src/test/java/jcifs/pac/PacConstantsTest.java

         * This prevents accidental modification of these critical constants.
         */
        @Test
        void testConstantValues() {
            // Verify the PAC version
            assertEquals(0, PacConstants.PAC_VERSION, "PAC_VERSION should be 0");
    
            // Verify PAC buffer types
            assertEquals(1, PacConstants.LOGON_INFO, "LOGON_INFO should be 1");
            assertEquals(2, PacConstants.CREDENTIAL_TYPE, "CREDENTIAL_TYPE should be 2");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 2K bytes
    - Click Count (0)
  4. src/main/java/jcifs/pac/PacConstants.java

     * Defines buffer types and other constants used in PAC parsing and validation.
     */
    public interface PacConstants {
    
        /**
         * PAC structure version number.
         */
        int PAC_VERSION = 0;
    
        /**
         * Buffer type for user logon information.
         */
        int LOGON_INFO = 1;
        /**
         * Buffer type for credential information.
         */
        int CREDENTIAL_TYPE = 2;
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  5. src/test/java/jcifs/pac/kerberos/KerberosPacAuthDataTest.java

            DataOutputStream dos = new DataOutputStream(baos);
    
            // Write header with no buffers
            dos.writeInt(Integer.reverseBytes(0));
            dos.writeInt(Integer.reverseBytes(PacConstants.PAC_VERSION));
    
            byte[] noBufPac = baos.toByteArray();
    
            PACDecodingException e = assertThrows(PACDecodingException.class, () -> {
                new KerberosPacAuthData(noBufPac, keys);
            });
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 6.3K bytes
    - Click Count (0)
  6. src/main/java/jcifs/pac/Pac.java

                    throw new PACDecodingException("Empty PAC");
                }
    
                int bufferCount = pacStream.readInt();
                int version = pacStream.readInt();
    
                if (version != PacConstants.PAC_VERSION) {
                    throw new PACDecodingException("Unrecognized PAC version " + version);
                }
    
                for (int bufferIndex = 0; bufferIndex < bufferCount; bufferIndex++) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 7.3K bytes
    - Click Count (0)
Back to Top