https://codereview.appspot.com/107400043/diff/40001/src/pkg/crypto/tls/common.go File src/pkg/crypto/tls/common.go (right): https://codereview.appspot.com/107400043/diff/40001/src/pkg/crypto/tls/common.go#newcode234 src/pkg/crypto/tls/common.go:234: // of getCertificateForName will be used. that's not a ...
10 years, 10 months ago
(2014-07-09 21:28:14 UTC)
#2
https://codereview.appspot.com/107400043/diff/60001/src/pkg/crypto/tls/common.go File src/pkg/crypto/tls/common.go (right): https://codereview.appspot.com/107400043/diff/60001/src/pkg/crypto/tls/common.go#newcode234 src/pkg/crypto/tls/common.go:234: // retrieved from NameToCertificate. If NameToCertificate is nil, the ...
10 years, 9 months ago
(2014-07-22 15:56:21 UTC)
#5
Responded to all comments. https://codereview.appspot.com/107400043/diff/60001/src/pkg/crypto/tls/common.go File src/pkg/crypto/tls/common.go (right): https://codereview.appspot.com/107400043/diff/60001/src/pkg/crypto/tls/common.go#newcode234 src/pkg/crypto/tls/common.go:234: // retrieved from NameToCertificate. If ...
10 years, 9 months ago
(2014-08-02 01:42:04 UTC)
#7
10 years, 9 months ago
(2014-08-04 18:31:55 UTC)
#8
https://codereview.appspot.com/107400043/diff/60001/src/pkg/crypto/tls/common.go
File src/pkg/crypto/tls/common.go (right):
https://codereview.appspot.com/107400043/diff/60001/src/pkg/crypto/tls/common...
src/pkg/crypto/tls/common.go:236: CertificateForName func(name string)
(*Certificate, error)
On 2014/08/02 01:42:04, ox1 wrote:
> ECDSAOk depends on the certificate returned by the existing
> config.getCertificateForName() function, and thus isn't yet available to be
> passed to that function. We could pass in the cipher suites sent in the
client
> hello. In fact, it's tempting just to pass the whole client hello (or an
> equivalent struct, since that's private).
Internally we know that we use P-256 for our certs, so ECDSAOk is something that
we can statically calculate, but fair point that such limitations aren't always
true.
I think passing the cipher suites, curves and point formats would be reasonable.
In any case, it's very likely that we'll need to pass more in the future so an
"opts" structure is very likely to be needed.
I've added a new struct to capture some of the client hello information, which I'm ...
10 years, 9 months ago
(2014-08-04 21:01:04 UTC)
#9
I've added a new struct to capture some of the client hello information, which
I'm now passing to the GetCertificate method for dynamically looking up a
certificate.
Okay, I think this may be the one ... https://codereview.appspot.com/107400043/diff/140001/src/pkg/crypto/tls/common.go File src/pkg/crypto/tls/common.go (right): https://codereview.appspot.com/107400043/diff/140001/src/pkg/crypto/tls/common.go#newcode205 src/pkg/crypto/tls/common.go:205: ...
10 years, 9 months ago
(2014-08-05 03:41:44 UTC)
#11
Nearly :) I landed https://codereview.appspot.com/108710046/ in order to clear out my working directory to patch ...
10 years, 9 months ago
(2014-08-05 18:37:37 UTC)
#12
Nearly :)
I landed https://codereview.appspot.com/108710046/ in order to clear out my
working directory to patch this in, but they conflict. If you hg sync and
reupload, it should fix that.
*** Submitted as https://code.google.com/p/go/source/detail?r=957bd50e2b82 *** crypto/tls: Added dynamic alternative to NameToCertificate map for SNI Revised ...
10 years, 9 months ago
(2014-08-06 18:22:08 UTC)
#14
On 2014/08/06 21:59:34, ox.to.a.cart wrote: > Added entry to doc/go1.4.txt Please create another CL just ...
10 years, 9 months ago
(2014-08-07 00:15:38 UTC)
#17
On 2014/08/06 21:59:34, ox.to.a.cart wrote:
> Added entry to doc/go1.4.txt
Please create another CL just for doc/go1.4.txt change, this CL has
already been submitted.
On 2014/08/07 00:15:38, minux wrote: > On 2014/08/06 21:59:34, ox.to.a.cart wrote: > > Added entry ...
10 years, 9 months ago
(2014-08-07 01:35:28 UTC)
#18
On 2014/08/07 00:15:38, minux wrote:
> On 2014/08/06 21:59:34, ox.to.a.cart wrote:
> > Added entry to doc/go1.4.txt
> Please create another CL just for doc/go1.4.txt change, this CL has
> already been submitted.
Done - https://codereview.appspot.com/117670046/
Issue 107400043: code review 107400043: crypto/tls: Added dynamic alternative to NameToCertific...
Created 10 years, 10 months ago by ox
Modified 10 years, 9 months ago
Reviewers: r, ox.to.a.cart, minux
Base URL:
Comments: 17