crypto/ocsp
Paul van Brouwershaven d172538b2c x/crypto/ocsp: Accept status for multiple certificates in response
This change add a function select to correct response from a responder
that includes multiple certificates in the case the server uses response
pre-generation.

RFC6960 section 4.2.2 states:

"The response MUST include a SingleResponse for each certificate in
   the request.  The response SHOULD NOT include any additional
   SingleResponse elements, but, for example, OCSP responders that
   pre-generate status responses might include additional SingleResponse
   elements if necessary to improve response pre-generation performance
   or cache efficiency (according to [RFC5019], Section 2.2.1)."

Change-Id: I39eeaa3daf16a7d7eb030e34229f16cf4295f9d7
Reviewed-on: https://go-review.googlesource.com/10611
Reviewed-by: Russ Cox <rsc@golang.org>
2016-10-06 17:47:01 +00:00
..
ocsp.go x/crypto/ocsp: Accept status for multiple certificates in response 2016-10-06 17:47:01 +00:00
ocsp_test.go x/crypto/ocsp: Accept status for multiple certificates in response 2016-10-06 17:47:01 +00:00