From a10f32470b2bd999a21b6584c97908e5bf572c59 Mon Sep 17 00:00:00 2001 From: Brad Murray Date: Mon, 14 Apr 2025 17:43:10 -0400 Subject: [PATCH] Require cross signing keys to be present to verify another device --- crypto/verificationhelper/verificationhelper.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crypto/verificationhelper/verificationhelper.go b/crypto/verificationhelper/verificationhelper.go index 550df942..a8a679d3 100644 --- a/crypto/verificationhelper/verificationhelper.go +++ b/crypto/verificationhelper/verificationhelper.go @@ -607,6 +607,11 @@ func (vh *VerificationHelper) onVerificationRequest(ctx context.Context, evt *ev return } + if vh.mach.CrossSigningKeys == nil { + log.Warn().Msg("Ignoring verification request as we don't have cross signing keys") + return + } + log = log.With(). Any("requested_methods", verificationRequest.Methods). Stringer("transaction_id", verificationRequest.TransactionID).