Skip to content

Commit

Permalink
CN as pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
encbladexp committed Sep 28, 2024
1 parent 5704048 commit 0049bc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type Certificate struct {
Revoked *time.Time
Serial string
Filename *string
CN string
CN *string
}

type Certificates struct {
Expand Down Expand Up @@ -65,6 +65,7 @@ func (c *Certificates) process_line(line []string) {
cert.Filename = &line[CERT_FILENAME]
}
cert.Serial = line[CERT_SERIAL]
cert.CN = &line[CERT_CN]
switch cert.Status {
case "V":
c.Certificates = append(c.Certificates, cert)
Expand Down

0 comments on commit 0049bc4

Please sign in to comment.