Backport #30193 by @KN4CK3R Fixes #30189 Can't verify subkeys if they are not loaded. Co-authored-by: KN4CK3R <admin@oldschoolhack.me> (cherry picked from commit e581efe238d1f735787b5dbdfcce9a1d73384ef3)
This commit is contained in:
parent
d573c22a98
commit
89a748b368
1 changed files with 4 additions and 0 deletions
|
@ -46,6 +46,10 @@ func VerifyGPGKey(ctx context.Context, ownerID int64, keyID, token, signature st
|
||||||
return "", ErrGPGKeyNotExist{}
|
return "", ErrGPGKeyNotExist{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err := key.LoadSubKeys(ctx); err != nil {
|
||||||
|
return "", err
|
||||||
|
}
|
||||||
|
|
||||||
sig, err := extractSignature(signature)
|
sig, err := extractSignature(signature)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", ErrGPGInvalidTokenSignature{
|
return "", ErrGPGInvalidTokenSignature{
|
||||||
|
|
Loading…
Reference in a new issue