Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for serverHelloBytes (0.16 sec)

  1. src/crypto/tls/handshake_messages_test.go

    		random: random[:],
    		scts:   [][]byte{sct},
    	}
    	serverHelloBytes := mustMarshal(t, serverHello)
    
    	var serverHelloCopy serverHelloMsg
    	if !serverHelloCopy.unmarshal(serverHelloBytes) {
    		t.Fatal("Failed to unmarshal initial message")
    	}
    
    	// Change serverHelloBytes so that the SCT list is empty
    	i := bytes.Index(serverHelloBytes, sct)
    	if i < 0 {
    		t.Fatal("Cannot find SCT in ServerHello")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  2. src/crypto/tls/handshake_client_test.go

    		alpnProtocol: "how-about-this",
    	}
    	serverHelloBytes := mustMarshal(t, serverHello)
    
    	s.Write([]byte{
    		byte(recordTypeHandshake),
    		byte(VersionTLS12 >> 8),
    		byte(VersionTLS12 & 0xff),
    		byte(len(serverHelloBytes) >> 8),
    		byte(len(serverHelloBytes)),
    	})
    	s.Write(serverHelloBytes)
    	s.Close()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 88.7K bytes
    - Viewed (0)
Back to top