Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for SignedCertificateTimestamps (0.59 sec)

  1. src/crypto/tls/ticket.go

    	} else {
    		b.AddUint8(0)
    	}
    	marshalCertificate(&b, Certificate{
    		Certificate:                 certificatesToBytesSlice(s.peerCertificates),
    		OCSPStaple:                  s.ocspResponse,
    		SignedCertificateTimestamps: s.scts,
    	})
    	b.AddUint24LengthPrefixed(func(b *cryptobyte.Builder) {
    		for _, chain := range s.verifiedChains {
    			b.AddUint24LengthPrefixed(func(b *cryptobyte.Builder) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 17:23:54 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  2. src/crypto/tls/handshake_messages_test.go

    		m.certificate.OCSPStaple = randomBytes(rand.Intn(100)+1, rand)
    	}
    	if rand.Intn(10) > 5 {
    		m.scts = true
    		for i := 0; i < rand.Intn(2)+1; i++ {
    			m.certificate.SignedCertificateTimestamps = append(
    				m.certificate.SignedCertificateTimestamps, randomBytes(rand.Intn(500)+1, rand))
    		}
    	}
    	return reflect.ValueOf(m)
    }
    
    func TestRejectEmptySCTList(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  3. src/crypto/tls/handshake_client_tls13.go

    	}
    	if len(certMsg.certificate.Certificate) == 0 {
    		c.sendAlert(alertDecodeError)
    		return errors.New("tls: received empty certificates message")
    	}
    
    	c.scts = certMsg.certificate.SignedCertificateTimestamps
    	c.ocspResponse = certMsg.certificate.OCSPStaple
    
    	if err := c.verifyServerCertificate(certMsg.certificate.Certificate); err != nil {
    		return err
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  4. src/crypto/tls/handshake_server.go

    		if err == errNoCertificates {
    			c.sendAlert(alertUnrecognizedName)
    		} else {
    			c.sendAlert(alertInternalError)
    		}
    		return err
    	}
    	if hs.clientHello.scts {
    		hs.hello.scts = hs.cert.SignedCertificateTimestamps
    	}
    
    	hs.ecdheOk = supportsECDHE(c.config, c.vers, hs.clientHello.supportedCurves, hs.clientHello.supportedPoints)
    
    	if hs.ecdheOk && len(hs.clientHello.supportedPoints) > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  5. src/crypto/tls/handshake_server_tls13.go

    			return err
    		}
    	}
    
    	certMsg := new(certificateMsgTLS13)
    
    	certMsg.certificate = *hs.cert
    	certMsg.scts = hs.clientHello.scts && len(hs.cert.SignedCertificateTimestamps) > 0
    	certMsg.ocspStapling = hs.clientHello.ocspStapling && len(hs.cert.OCSPStaple) > 0
    
    	if _, err := hs.c.writeHandshakeRecord(certMsg, hs.transcript); err != nil {
    		return err
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 17:23:54 UTC 2024
    - 30.5K bytes
    - Viewed (0)
Back to top