mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 18:43:10 -06:00
Add field tag for key_id
This commit is contained in:
parent
4ed090d9b9
commit
9b48180fb5
|
|
@ -234,7 +234,7 @@ func loadConfig(
|
|||
for _, key := range c.Global.OldVerifyKeys {
|
||||
switch {
|
||||
case key.KeyID == "":
|
||||
return nil, fmt.Errorf("key ID must be specified for old_verify_keys")
|
||||
return nil, fmt.Errorf("key ID must be specified if public_key is specified")
|
||||
|
||||
case len(key.PublicKey) == ed25519.PublicKeySize:
|
||||
continue
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ type OldVerifyKeys struct {
|
|||
PublicKey gomatrixserverlib.Base64Bytes `yaml:"public_key"`
|
||||
|
||||
// The key ID of the private key.
|
||||
KeyID gomatrixserverlib.KeyID `yaml:"-"`
|
||||
KeyID gomatrixserverlib.KeyID `yaml:"key_id"`
|
||||
|
||||
// When the private key was designed as "expired", as a UNIX timestamp
|
||||
// in millisecond precision.
|
||||
|
|
|
|||
Loading…
Reference in a new issue