From c2bc085d610abaab3f05256ba87271e2378accd4 Mon Sep 17 00:00:00 2001 From: "Stefan J. Betz" Date: Sat, 28 Sep 2024 21:13:40 +0200 Subject: [PATCH] certificate serial as pointer --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index e8dfe89..5842126 100644 --- a/main.go +++ b/main.go @@ -23,7 +23,7 @@ type Certificate struct { Status string Expired *time.Time Revoked *time.Time - Serial string + Serial *string Filename *string CN *string } @@ -64,7 +64,7 @@ func (c *Certificates) process_line(line []string) { if *filename != "unknown" { cert.Filename = &line[CERT_FILENAME] } - cert.Serial = line[CERT_SERIAL] + cert.Serial = &line[CERT_SERIAL] cert.CN = &line[CERT_CN] switch cert.Status { case "V":