Add some comments about script variables
This commit is contained in:
parent
76d30c2033
commit
e682e1e9f8
|
@ -203,7 +203,7 @@ func (info *CertInfo) Environ() []string {
|
||||||
if info.SerialNumberParseError != nil {
|
if info.SerialNumberParseError != nil {
|
||||||
env = append(env, "SERIAL_PARSE_ERROR="+info.SerialNumberParseError.Error())
|
env = append(env, "SERIAL_PARSE_ERROR="+info.SerialNumberParseError.Error())
|
||||||
} else {
|
} else {
|
||||||
env = append(env, "SERIAL="+formatSerialNumber(info.SerialNumber))
|
env = append(env, "SERIAL="+formatSerialNumber(info.SerialNumber)) // generally unsafe to use
|
||||||
}
|
}
|
||||||
|
|
||||||
if info.ValidityParseError != nil {
|
if info.ValidityParseError != nil {
|
||||||
|
@ -285,9 +285,9 @@ func (info *EntryInfo) Environ() []string {
|
||||||
env := []string{
|
env := []string{
|
||||||
"FINGERPRINT=" + info.Fingerprint(), // deprecated, not documented
|
"FINGERPRINT=" + info.Fingerprint(), // deprecated, not documented
|
||||||
"CERT_SHA256=" + info.Fingerprint(),
|
"CERT_SHA256=" + info.Fingerprint(),
|
||||||
"CERT_PARSEABLE=" + yesnoString(info.ParseError == nil),
|
"CERT_PARSEABLE=" + yesnoString(info.ParseError == nil), // seems redundant with PARSE_ERROR
|
||||||
"LOG_URI=" + info.LogUri,
|
"LOG_URI=" + info.LogUri, // questionable utility
|
||||||
"ENTRY_INDEX=" + strconv.FormatInt(info.Entry.Index, 10),
|
"ENTRY_INDEX=" + strconv.FormatInt(info.Entry.Index, 10), // questionable utility
|
||||||
}
|
}
|
||||||
|
|
||||||
if info.Filename != "" {
|
if info.Filename != "" {
|
||||||
|
|
Loading…
Reference in New Issue