]> Cypherpunks repositories - gostls13.git/commit
crypto/x509: test for negative RSA parameters.
authorAdam Langley <agl@golang.org>
Thu, 31 Jan 2013 17:54:37 +0000 (12:54 -0500)
committerAdam Langley <agl@golang.org>
Thu, 31 Jan 2013 17:54:37 +0000 (12:54 -0500)
commit5c659d736241f4904eb3d513f9f585397a3ed8af
treefa7e61d87140e99e7c6f34edea2891565a9fb648
parent8b6534b78af791b80f371857a15d76bbc10fd012
crypto/x509: test for negative RSA parameters.

Someone found software that generates negative numbers for the RSA
modulus in an X.509 certificate. Our error messages were very poor in
this case so this change improves that.

Update #4728
Return more helpful errors when RSA parameters are negative or zero.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/7228072
src/pkg/crypto/x509/x509.go