Add some comments about script variables

This commit is contained in:
Andrew Ayer 2023-01-20 16:14:49 -05:00
parent 76d30c2033
commit e682e1e9f8
1 changed files with 4 additions and 4 deletions

View File

@ -203,7 +203,7 @@ func (info *CertInfo) Environ() []string {
if info.SerialNumberParseError != nil {
env = append(env, "SERIAL_PARSE_ERROR="+info.SerialNumberParseError.Error())
} else {
env = append(env, "SERIAL="+formatSerialNumber(info.SerialNumber))
env = append(env, "SERIAL="+formatSerialNumber(info.SerialNumber)) // generally unsafe to use
}
if info.ValidityParseError != nil {
@ -285,9 +285,9 @@ func (info *EntryInfo) Environ() []string {
env := []string{
"FINGERPRINT=" + info.Fingerprint(), // deprecated, not documented
"CERT_SHA256=" + info.Fingerprint(),
"CERT_PARSEABLE=" + yesnoString(info.ParseError == nil),
"LOG_URI=" + info.LogUri,
"ENTRY_INDEX=" + strconv.FormatInt(info.Entry.Index, 10),
"CERT_PARSEABLE=" + yesnoString(info.ParseError == nil), // seems redundant with PARSE_ERROR
"LOG_URI=" + info.LogUri, // questionable utility
"ENTRY_INDEX=" + strconv.FormatInt(info.Entry.Index, 10), // questionable utility
}
if info.Filename != "" {