]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: document AuthorityKeyId and don't mutate it.
authorAdam Langley <agl@golang.org>
Wed, 8 Feb 2017 17:28:53 +0000 (09:28 -0800)
committerAdam Langley <agl@golang.org>
Thu, 9 Feb 2017 18:33:41 +0000 (18:33 +0000)
commitbfe7c81906212c69df754d5f4e3baa6413f092b3
tree0f927b78b94700951c24ef84b608244fbf3f8ed6
parent38b3661b45ff62de28abc20057503422337330f7
crypto/x509: document AuthorityKeyId and don't mutate it.

The AuthorityKeyId value from the template was used by
CreateCertificate, but that wasn't documented. Also, CreateCertificate
would stash a value in the template if it needed to override it, which
was wrong: template should be read-only.

Fixes #18962.

Change-Id: Ida15c54c341e5bbf553756e8aa65021d8085f453
Reviewed-on: https://go-review.googlesource.com/36556
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/crypto/x509/x509.go