]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: add client-side SNI support and PeerCertificates.
authorAdam Langley <agl@golang.org>
Wed, 21 Jul 2010 15:36:01 +0000 (11:36 -0400)
committerAdam Langley <agl@golang.org>
Wed, 21 Jul 2010 15:36:01 +0000 (11:36 -0400)
commit7be849d4a6bb8771ac2914e9166a8e10c7d7300c
tree5526e020307e5ccec28f1f61f8f9ddf61d5b412d
parent8286ee4c5b94d5245cae6a369cb3e417b1d622ee
crypto/tls: add client-side SNI support and PeerCertificates.

SNI (Server Name Indication) is a way for a TLS client to
indicate to the server which name it knows the server by. This
allows the server to have several names and return the correct
certificate for each (virtual hosting).

PeerCertificates returns the list of certificates presented by
server.

R=r
CC=golang-dev
https://golang.org/cl/1741053
src/pkg/crypto/tls/common.go
src/pkg/crypto/tls/conn.go
src/pkg/crypto/tls/handshake_client.go
src/pkg/crypto/tls/handshake_messages.go