From 1d5002593acb237433a98512c6343587b03ebe5d Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Thu, 22 Feb 2018 19:23:17 -0500 Subject: [PATCH] Don't use asn1.TagNull, it was also introduced in Go 1.9 --- x509.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x509.go b/x509.go index 54f165e..195fd0e 100644 --- a/x509.go +++ b/x509.go @@ -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) {