1
0
mirror of https://github.com/golang/go synced 2024-10-03 02:41:23 -06:00
go/src
Joël Stemmer ebe3d693d4 crypto/tls: return correct hash function when using client certificates in handshake
Commit f1d669aee9 added support for
AES_256_GCM_SHA384 cipher suites as specified in RFC5289. However, it
did not take the arbitrary hash function into account in the TLS client
handshake when using client certificates.

The hashForClientCertificate method always returned SHA256 as its
hashing function, even if it actually used a different one to calculate
its digest. Setting up the connection would eventually fail with the
error "tls: failed to sign handshake with client certificate:
crypto/rsa: input must be hashed message".

Included is an additional test for this specific situation that uses the
SHA384 hash.

Fixes #9808

Change-Id: Iccbf4ab225633471ef897907c208ad31f92855a3
Reviewed-on: https://go-review.googlesource.com/7040
Reviewed-by: Adam Langley <agl@golang.org>
Run-TryBot: Adam Langley <agl@golang.org>
2015-03-16 23:38:51 +00:00
..
archive archive/zip: remove WriterOptions and replace with SetOffset method 2015-03-12 21:32:09 +00:00
bufio
builtin
bytes bytes, strings: improve documentation for Count functions 2015-01-22 18:28:35 +00:00
cmd cmd/internal/obj: add basic test of line history 2015-03-16 23:07:28 +00:00
compress all: don't refer to code.google.com/p/go{,-wiki}/ 2015-02-06 14:41:47 +00:00
container
crypto crypto/tls: return correct hash function when using client certificates in handshake 2015-03-16 23:38:51 +00:00
database/sql database/sql: reduce lock contention in Stmt.connStmt 2015-01-24 09:56:25 +00:00
debug debug/elf: support reading debug info from 32-bit PPC objects 2015-03-14 01:31:28 +00:00
encoding encoding/binary: cull dead code 2015-03-14 02:51:22 +00:00
errors
expvar expvar: fix build 2015-02-05 13:53:29 +00:00
flag flag: use four spaces before tab, not three 2015-03-12 18:43:06 +00:00
fmt fmt: document existing behavior of nil receivers 2015-03-01 18:17:53 +00:00
go go/build: add GOARCH=arm64 2015-03-16 18:44:35 +00:00
hash os/signal, hash/crc32: add arm64 build tags 2015-03-16 18:46:43 +00:00
html all: don't refer to code.google.com/p/go{,-wiki}/ 2015-02-06 14:41:47 +00:00
image image/jpeg: reject bad Tq values in SOF data. 2015-03-13 05:22:55 +00:00
index/suffixarray
internal cmd/trace: move goroutine analysis code to internal/trace 2015-03-11 12:53:24 +00:00
io
log log/syslog: avoid unix sockets on darwin/arm 2015-03-04 22:13:06 +00:00
math math, math/big: add support for GOARCH=arm64 2015-03-16 18:46:10 +00:00
mime mime/quotedprintable: create the package 2015-02-26 20:09:28 +00:00
net net/http/pprof: Use relative links to profiles in index html 2015-03-12 01:13:26 +00:00
os os/signal, hash/crc32: add arm64 build tags 2015-03-16 18:46:43 +00:00
path path/filepath: clarify the package doc about '/' in returned results. 2015-03-11 20:25:35 +00:00
reflect reflect: add support for GOARCH=arm64 2015-03-16 18:46:27 +00:00
regexp regexp: update URLs in tests 2015-01-26 01:54:28 +00:00
runtime runtime: add support for linux/arm64 2015-03-16 18:45:54 +00:00
sort sort: fixed small typo in comments 2015-02-08 23:38:50 +00:00
strconv strconv: simplify code for binary exponent float format 2015-03-05 16:52:41 +00:00
strings bytes, strings: improve documentation for Count functions 2015-01-22 18:28:35 +00:00
sync sync/atomic: add support for GOARCH=arm64 2015-03-16 18:46:18 +00:00
syscall syscall: add support for GOARCH=arm64 2015-03-16 18:46:02 +00:00
testing testing: pad benchmark names to align results 2015-02-07 21:52:25 +00:00
text text/template: protect against explicit nil in field chains 2015-03-16 22:35:49 +00:00
time time: zoneinfo support for darwin 2015-03-03 15:37:14 +00:00
unicode unicode: Fixed an out of date comment (MaxLatin1, not Latin1Max). 2015-02-16 21:35:33 +00:00
unsafe unsafe: minor doc string improvements 2015-01-28 19:42:15 +00:00
all.bash
all.bat
all.rc
androidtest.bash androidtest.bash: remove use of cp --preserve. 2015-02-13 21:16:25 +00:00
bootstrap.bash build: add bootstrap.bash for bootstrapping new systems 2015-03-02 17:51:56 +00:00
clean.bash
clean.bat
clean.rc
make.bash [dev.cc] cmd/go: fix expansion of 'std', add 'cmd' 2015-02-23 15:13:17 +00:00
make.bat build: update Windows make.bat to use CC_FOR_TARGET. 2015-03-02 02:20:46 +00:00
Make.dist
make.rc all: delete C libraries and cmd/dist code that builds them 2015-03-01 00:40:23 +00:00
nacltest.bash cmd/dist: reactivate vfp detection on linux/arm 2015-02-10 00:17:06 +00:00
race.bash [dev.cc] cmd/go: fix expansion of 'std', add 'cmd' 2015-02-23 15:13:17 +00:00
race.bat [dev.cc] cmd/go: fix expansion of 'std', add 'cmd' 2015-02-23 15:13:17 +00:00
run.bash build: convert run.bash, run.bat, and run.rc into a Go program 2015-03-03 23:22:11 +00:00
run.bat build: convert run.bash, run.bat, and run.rc into a Go program 2015-03-03 23:22:11 +00:00
run.rc build: convert run.bash, run.bat, and run.rc into a Go program 2015-03-03 23:22:11 +00:00