1
0
mirror of https://github.com/golang/go synced 2024-10-04 04:21:22 -06:00
go/src/pkg/crypto
Dave Cheney 67ee9a7db1 crypto/tls: fix data race on conn.err
Fixes #3862.

There were many areas where conn.err was being accessed
outside the mutex. This proposal moves the err value to
an embedded struct to make it more obvious when the error
value is being accessed.

As there are no Benchmark tests in this package I cannot
feel confident of the impact of this additional locking,
although most will be uncontended.

R=dvyukov, agl
CC=golang-dev
https://golang.org/cl/6497070
2012-09-06 17:50:26 +10:00
..
aes crypto/aes: fix comment 2012-05-07 16:45:34 -04:00
cipher crypto/...: more fixes for bug 2841 2012-02-13 12:38:45 -05:00
des crypto/...: more fixes for bug 2841 2012-02-13 12:38:45 -05:00
dsa crypto/dsa: add missing period in package comment 2012-02-17 14:48:44 -08:00
ecdsa crypto/elliptic: explicitly handle P+P, ∞+P and P+∞ 2012-08-03 15:42:14 -04:00
elliptic crypto/elliptic: explicitly handle P+P, ∞+P and P+∞ 2012-08-03 15:42:14 -04:00
hmac build: remove Make.pkg, Make.tool 2012-01-30 23:43:46 -05:00
md5 crypto: housekeeping 2012-05-29 12:45:40 -04:00
rand crypto/rand: Example for Read. 2012-08-08 12:04:54 +10:00
rc4 build: remove Make.pkg, Make.tool 2012-01-30 23:43:46 -05:00
rsa crypto/rsa: left-pad PKCS#1 v1.5 outputs. 2012-07-11 12:47:12 -04:00
sha1 crypto: housekeeping 2012-05-29 12:45:40 -04:00
sha256 crypto: housekeeping 2012-05-29 12:45:40 -04:00
sha512 crypto: housekeeping 2012-05-29 12:45:40 -04:00
subtle build: remove Make.pkg, Make.tool 2012-01-30 23:43:46 -05:00
tls crypto/tls: fix data race on conn.err 2012-09-06 17:50:26 +10:00
x509 syscall: return EINVAL when string arguments have NUL characters 2012-08-05 17:24:32 -04:00
crypto.go crypto/...: changes to address some of bug 2841. 2012-02-03 15:08:53 -05:00