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…
Reference in New Issue