From a46efb48a9db0a221ed9698cf4dbf814b9d6528a Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Mon, 16 Nov 2020 13:18:25 +0100 Subject: added test data --- x509util/x509util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'x509util/x509util.go') diff --git a/x509util/x509util.go b/x509util/x509util.go index e67b7b5..751aa29 100644 --- a/x509util/x509util.go +++ b/x509util/x509util.go @@ -47,7 +47,7 @@ func NewCertificateList(rest []byte) ([]*x509.Certificate, error) { var block *pem.Block block, rest = pem.Decode(rest) if block == nil { - break + break // TODO: fix such that new line in input is OK? } if block.Type != "CERTIFICATE" { return nil, fmt.Errorf("unexpected pem block type: %v", block.Type) -- cgit v1.2.3