From: Adam Langley Date: Thu, 10 Mar 2016 23:31:11 +0000 (-0800) Subject: crypto/x509: correct OID for DSA-with-SHA-256. X-Git-Tag: go1.7beta1~1379 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ec158cebd9f0115235f0dc836f663e4b8c285ab7;p=gostls13.git crypto/x509: correct OID for DSA-with-SHA-256. I copied this down incorrectly. See https://tools.ietf.org/html/rfc5758#section-3.1. Thankfully it's incredibly obscure. Fixes #14663. Change-Id: I4792ee979916cc15aa2e300c8bc989bc4f9c63ac Reviewed-on: https://go-review.googlesource.com/20549 Reviewed-by: Brad Fitzpatrick Run-TryBot: Adam Langley --- diff --git a/src/crypto/x509/x509.go b/src/crypto/x509/x509.go index d8470bb1d0..d35c29434c 100644 --- a/src/crypto/x509/x509.go +++ b/src/crypto/x509/x509.go @@ -270,7 +270,7 @@ var ( oidSignatureSHA384WithRSA = asn1.ObjectIdentifier{1, 2, 840, 113549, 1, 1, 12} oidSignatureSHA512WithRSA = asn1.ObjectIdentifier{1, 2, 840, 113549, 1, 1, 13} oidSignatureDSAWithSHA1 = asn1.ObjectIdentifier{1, 2, 840, 10040, 4, 3} - oidSignatureDSAWithSHA256 = asn1.ObjectIdentifier{2, 16, 840, 1, 101, 4, 3, 2} + oidSignatureDSAWithSHA256 = asn1.ObjectIdentifier{2, 16, 840, 1, 101, 3, 4, 3, 2} oidSignatureECDSAWithSHA1 = asn1.ObjectIdentifier{1, 2, 840, 10045, 4, 1} oidSignatureECDSAWithSHA256 = asn1.ObjectIdentifier{1, 2, 840, 10045, 4, 3, 2} oidSignatureECDSAWithSHA384 = asn1.ObjectIdentifier{1, 2, 840, 10045, 4, 3, 3}