]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: client certificate support.
authorMikkel Krautz <mikkel@krautz.dk>
Mon, 16 Aug 2010 15:22:22 +0000 (11:22 -0400)
committerAdam Langley <agl@golang.org>
Mon, 16 Aug 2010 15:22:22 +0000 (11:22 -0400)
commitc47123d07badbbc7699cd58f112e6449f1cbf343
tree904ed5aa88342872f1fbc45ca6bcb84645d9c06e
parente235a04f372e08b898d3f96478fce0df163116b7
crypto/tls: client certificate support.

This changeset implements client certificate support in crypto/tls
for both handshake_server.go and handshake_client.go

The updated server implementation sends an empty CertificateAuthorities
field in the CertificateRequest, thus allowing clients to send any
certificates they wish. Likewise, the client code will only respond
with its certificate when the server requests a certificate with this
field empty.

R=agl, rsc, agl1
CC=golang-dev
https://golang.org/cl/1975042
src/pkg/crypto/rsa/pkcs1v15.go
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
src/pkg/crypto/tls/handshake_messages_test.go
src/pkg/crypto/tls/handshake_server.go
src/pkg/http/server.go