Skip to content

Commit

Permalink
Don't use asn1.TagNull, it was also introduced in Go 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
fullsailor committed Feb 23, 2018
1 parent 3f0663a commit 1d50025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x509.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ type pssParameters struct {
}

// asn1.NullBytes is not available prior to Go 1.9
var nullBytes = []byte{asn1.TagNull, 0}
var nullBytes = []byte{5, 0}

func getSignatureAlgorithmFromAI(ai pkix.AlgorithmIdentifier) x509.SignatureAlgorithm {
if !ai.Algorithm.Equal(oidSignatureRSAPSS) {
Expand Down

0 comments on commit 1d50025

Please sign in to comment.