mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 10:33:11 -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 {
|
for _, key := range c.Global.OldVerifyKeys {
|
||||||
switch {
|
switch {
|
||||||
case key.KeyID == "":
|
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:
|
case len(key.PublicKey) == ed25519.PublicKeySize:
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
|
|
@ -131,7 +131,7 @@ type OldVerifyKeys struct {
|
||||||
PublicKey gomatrixserverlib.Base64Bytes `yaml:"public_key"`
|
PublicKey gomatrixserverlib.Base64Bytes `yaml:"public_key"`
|
||||||
|
|
||||||
// The key ID of the private 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
|
// When the private key was designed as "expired", as a UNIX timestamp
|
||||||
// in millisecond precision.
|
// in millisecond precision.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue