Commit d13d6b33 authored by Dmitri Shuralyov's avatar Dmitri Shuralyov Committed by Brad Fitzpatrick

crypto/x509: improve internal comment

Apply code review suggestion from CL 46715.

The block is doing more than just checking len(r.certs) == len(tc.cns).
It also verifies that certificate common names match.

Change-Id: I28d6926a5da48bd8f6c80aa5e5a1ed6d4990f845
Reviewed-on: https://go-review.googlesource.com/47132Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent dc86c9a6
......@@ -110,7 +110,7 @@ func TestEnvVars(t *testing.T) {
t.Fatal("nil roots")
}
// Verify len(r.certs) == len(tc.cns), otherwise report where the mismatch is.
// Verify that the returned certs match, otherwise report where the mismatch is.
for i, cn := range tc.cns {
if i >= len(r.certs) {
t.Errorf("missing cert %v @ %v", cn, i)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment