Commit 11dcfe48 authored by Marten Seemann's avatar Marten Seemann

disable session tickets

When resuming a session using session tickets, no certificate chain is
presented, and the callbacks needed to verify the peer identity would
not be called.
parent ec3177f9
...@@ -51,6 +51,7 @@ func NewIdentity(privKey ic.PrivKey) (*Identity, error) { ...@@ -51,6 +51,7 @@ func NewIdentity(privKey ic.PrivKey) (*Identity, error) {
VerifyPeerCertificate: func(_ [][]byte, _ [][]*x509.Certificate) error { VerifyPeerCertificate: func(_ [][]byte, _ [][]*x509.Certificate) error {
panic("tls config not specialized for peer") panic("tls config not specialized for peer")
}, },
SessionTicketsDisabled: true,
}, },
}, nil }, nil
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment