Commit Graph
7 Commits
Author SHA1 Message Date
David Symonds 1fbbd62cfe crypto: add import comments.
Change-Id: I33240faf1b8620d0cd600de661928d8e422ebdbc
Reviewed-on: https://go-review.googlesource.com/1235
Reviewed-by: Andrew Gerrand <adg@golang.org>
2014-12-09 23:26:36 +00:00
Adam Langley 16d76afb29 go.crypto/ocsp: pass in the issuing certificate.
Paul van Brouwershaven pointed out that it would be better to pass in
the issuing certificate and have the verification be done in the OCSP
package than to expect the caller to deal with the difference between
responses with and without a responder certificate.

R=golang-dev, dayveday, paul
CC=golang-dev
https://golang.org/cl/11220043
2013-07-29 15:32:19 -04:00
Adam Langley 3f4ad28b7c go.crypto/ocsp: make the zero value of RequestOptions valid and documented.
R=bradfitz
CC=golang-dev
https://golang.org/cl/10431044
2013-06-21 15:16:14 -04:00
Adam Langley b88b016522 go.crypto/ocsp: allow cert-less responses and support making requests.
Some OCSP responses (notably COMODO's) don't use an intermediate
certificate to sign OCSP responses so this change allowed that.

Additionally, a CreateRequest function is added for creating OCSP
requests.

This change makes one API change: SerialNumber becomes a *big.Int to
match crypto/x509. The original code dates to before encoding/asn1
could cope with big.Ints and using a []byte was a workaround for that.

R=golang-dev
CC=golang-dev
https://golang.org/cl/10402043
2013-06-20 11:11:09 -04:00
Adam Langley ae4d10368a crypto/oscp: update in light of cl/5625045
R=rsc
CC=golang-dev
https://golang.org/cl/5608055
2012-02-20 10:56:33 -05:00
David Symonds 3d6f310da6 go.crypto: Update for new crypto/x509 error.
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5674046
2012-02-15 13:00:29 +11:00
Russ Cox 470549d502 go.crypto: initial code
Manual edits to README.
Moved from main Go repository, deleted Makefiles, ran gofix -r go1rename.

Tested with: go test code.google.com/p/go.crypto/...

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5564059
2012-01-25 15:31:12 -05:00