mirror of
				https://github.com/SSLMate/certspotter.git
				synced 2025-07-03 10:47:17 +02:00 
			
		
		
		
	Allow public key to be omitted from log JSON file
In which case signatures are not checked.
This commit is contained in:
		
							parent
							
								
									2c8cb1f402
								
							
						
					
					
						commit
						1fc964732b
					
				
							
								
								
									
										6
									
								
								logs.go
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								logs.go
									
									
									
									
									
								
							| @ -30,7 +30,11 @@ func (info *LogInfo) FullURI () string { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| func (info *LogInfo) ParsedPublicKey () (crypto.PublicKey, error) { | func (info *LogInfo) ParsedPublicKey () (crypto.PublicKey, error) { | ||||||
| 	return x509.ParsePKIXPublicKey(info.Key) | 	if info.Key != nil { | ||||||
|  | 		return x509.ParsePKIXPublicKey(info.Key) | ||||||
|  | 	} else { | ||||||
|  | 		return nil, nil | ||||||
|  | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| var DefaultLogs = []LogInfo{ | var DefaultLogs = []LogInfo{ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Andrew Ayer
						Andrew Ayer