Explorar el Código

Use certificate_request specific to TLS 1.3

tls13
Henry D. Case hace 6 años
committed by Henry Dorsett Case
padre
commit
6acee69d6b
Se han modificado 1 ficheros con 6 adiciones y 2 borrados
  1. +6
    -2
      conn.go

+ 6
- 2
conn.go Ver fichero

@@ -1152,8 +1152,12 @@ func (c *Conn) readHandshake() (interface{}, error) {
m = new(certificateMsg)
}
case typeCertificateRequest:
m = &certificateRequestMsg{
hasSignatureAndHash: c.vers >= VersionTLS12,
if c.vers >= VersionTLS13 {
m = new(certificateRequestMsg13)
} else {
m = &certificateRequestMsg{
hasSignatureAndHash: c.vers >= VersionTLS12,
}
}
case typeCertificateStatus:
m = new(certificateStatusMsg)


Cargando…
Cancelar
Guardar