Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for marshalCertificate (0.73 sec)

  1. src/crypto/tls/ticket.go

    				b.AddBytes(extra)
    			})
    		}
    	})
    	if s.extMasterSecret {
    		b.AddUint8(1)
    	} else {
    		b.AddUint8(0)
    	}
    	if s.EarlyData {
    		b.AddUint8(1)
    	} else {
    		b.AddUint8(0)
    	}
    	marshalCertificate(&b, Certificate{
    		Certificate:                 certificatesToBytesSlice(s.peerCertificates),
    		OCSPStaple:                  s.ocspResponse,
    		SignedCertificateTimestamps: s.scts,
    	})
    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.go

    		if !m.ocspStapling {
    			certificate.OCSPStaple = nil
    		}
    		if !m.scts {
    			certificate.SignedCertificateTimestamps = nil
    		}
    		marshalCertificate(b, certificate)
    	})
    
    	return b.Bytes()
    }
    
    func marshalCertificate(b *cryptobyte.Builder, certificate Certificate) {
    	b.AddUint24LengthPrefixed(func(b *cryptobyte.Builder) {
    		for i, cert := range certificate.Certificate {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
Back to top