mirror of
				https://github.com/SSLMate/certspotter.git
				synced 2025-07-03 10:47:17 +02:00 
			
		
		
		
	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 {
 | 
			
		||||
		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 != "" {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user