Skip to content

Commit

Permalink
certificate serial as pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
encbladexp committed Sep 28, 2024
1 parent 39c62a7 commit c2bc085
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type Certificate struct {
Status string
Expired *time.Time
Revoked *time.Time
Serial string
Serial *string
Filename *string
CN *string
}
Expand Down Expand Up @@ -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":
Expand Down

0 comments on commit c2bc085

Please sign in to comment.