Commit graph

66 commits

Author SHA1 Message Date
Tulir Asokan
bc79822eab crypto: save source of megolm sessions
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2026-02-21 01:06:12 +02:00
Tulir Asokan
974f7dc544 crypto/decryptmegolm: allow device key mismatches, but mark as untrusted
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2026-02-19 14:10:20 +02:00
Tulir Asokan
0e4b074b57 event: add detail to not json string parse error 2026-01-17 00:43:41 +02:00
Tulir Asokan
315d2ab17d all: fix staticcheck issues
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2025-12-08 00:07:25 +02:00
Toni Spets
22ea75db96 client,event: MSC4140: Delayed events
Some checks failed
Go / Lint (latest) (push) Has been cancelled
Go / Build (old, libolm) (push) Has been cancelled
Go / Build (latest, libolm) (push) Has been cancelled
Go / Build (old, goolm) (push) Has been cancelled
Go / Build (latest, goolm) (push) Has been cancelled
Includes transparent migration from deprecated MSC fields still used
in Synapse to later revision.
2025-10-14 14:22:47 +03:00
Tulir Asokan
3a300246ac id/userid: split validation into 2 functions
Some checks failed
Go / Lint (latest) (push) Has been cancelled
Go / Build (old, libolm) (push) Has been cancelled
Go / Build (latest, libolm) (push) Has been cancelled
Go / Build (old, goolm) (push) Has been cancelled
Go / Build (latest, goolm) (push) Has been cancelled
2025-10-06 23:10:04 +03:00
Tulir Asokan
e27e00b391 id: move room version from event package and add flags 2025-08-03 15:16:42 +03:00
Matthias Kesler
3a135b6b15
id: fix ServerNameRegex not matching port correctly (#392)
Some checks failed
Go / Lint (latest) (push) Has been cancelled
Go / Build (old, libolm) (push) Has been cancelled
Go / Build (latest, libolm) (push) Has been cancelled
Go / Build (old, goolm) (push) Has been cancelled
Go / Build (latest, goolm) (push) Has been cancelled
fixes #391
2025-06-25 12:35:18 +02:00
Tulir Asokan
522a373c68 id: validate server names in UserID.ParseAndValidate
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2025-06-03 00:32:07 +03:00
Tulir Asokan
8fb04d1806 id/matrixuri: fix parsing url-encoded matrix URIs
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2025-06-02 20:06:52 +03:00
Tulir Asokan
140b20cab9 id: add utilities for validating server names
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2025-05-27 12:04:13 +05:30
Tulir Asokan
826089e020 id: make user id parsing more efficient
Some checks failed
Go / Lint (latest) (push) Has been cancelled
Go / Build (old, libolm) (push) Has been cancelled
Go / Build (latest, libolm) (push) Has been cancelled
Go / Build (old, goolm) (push) Has been cancelled
Go / Build (latest, goolm) (push) Has been cancelled
2025-04-11 17:12:06 +03:00
Tulir Asokan
3678284292 id: remove outdated URI tests
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2024-10-17 20:30:32 +03:00
Tulir Asokan
af360cd534 id: drop support for room alias + event ID links 2024-10-17 20:02:23 +03:00
Tulir Asokan
720648ffdf id: don't panic if URI methods are called with empty/nil values 2024-08-26 17:58:27 +03:00
Tulir Asokan
956c13761e id: fix typo in ContentURI.IsValid 2024-08-03 22:06:39 +03:00
Tulir Asokan
c6bc42f16c bridgev2/matrix: add support for generating public media URLs 2024-08-03 18:00:53 +03:00
Tulir Asokan
20fde3d163 Remove error in ParseCommonIdentifier 2024-03-13 17:01:07 +02:00
Tulir Asokan
5224780563 Split UserID.Parse into generic ParseCommonIdentifier 2024-03-13 16:57:16 +02:00
Sumner Evans
582ce5de49
verificationhelper/qrcode: begin implementing flow
Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-02-09 11:50:13 -07:00
Sumner Evans
7469dcf919
id/crypto: add VerificationTransactionID
Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-02-09 10:30:37 -07:00
Toni Spets
11c2907f2e Database level support for key backup versioning
This doesn't plumb anything in yet but adds the columns and types for an
external implementation.

Key backup version is now typed.
2024-02-01 13:22:32 +02:00
Toni Spets
94664f1c8a Secret sharing implementation 2024-01-24 12:56:46 +02:00
Sumner Evans
96d1d16226
id/crypto: add KeyBackupAlgorithm
Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-01-17 08:15:58 -07:00
Tulir Asokan
57d46e6a23 Don't escape + in user ID localparts 2023-08-31 17:18:51 +03:00
Tulir Asokan
bad1e977ef Fix matrix URI tests 2023-01-20 16:11:40 +02:00
Tulir Asokan
d50a366889 Use PathEscape instead of QueryEscape for forming matrix.to URLs 2023-01-20 15:47:36 +02:00
Tulir Asokan
a64afd0fe6 Run gofmt with Go 1.19 for godocs 2022-08-04 11:37:35 +03:00
Tulir Asokan
260b269287 Add database Scan/Value for ContentURI 2022-08-03 14:08:53 +03:00
Tulir Asokan
d1b82fa15b Stop parsing legacy trust state descriptions 2022-07-12 13:29:50 +03:00
Tulir Asokan
d1d7f999f7 Move DeviceIdentity and Fingerprint to id package 2022-07-05 11:56:45 +03:00
Tulir Asokan
e077017a95 Remove unused TrustState.Description 2022-07-04 15:23:39 +03:00
Tulir Asokan
a4af074c64 Un-pointerify ContentURI stringify methods 2022-06-30 20:16:00 +03:00
Tulir Asokan
9162944672 Add cross-signing TOFU support 2022-06-23 14:42:05 +03:00
Tulir Asokan
d32425a24e Actually fix TrustStateInvalid value 2022-06-22 22:09:47 +03:00
Tulir Asokan
5a09ab007f Add new trust states for forwarded keys and unknown devices 2022-06-22 21:37:18 +03:00
Tulir Asokan
d033119bb5 Fix TrustStateInvalid value 2022-06-22 20:45:59 +03:00
Tulir Asokan
6d5a9d184c Make required trust level in e2be configurable 2022-06-22 20:05:22 +03:00
Tulir Asokan
2c92f0b465 Move bridge permission config from mautrix-whatsapp 2022-05-22 18:20:49 +03:00
Tulir Asokan
0eee489b64 Switch to /v3 paths everywhere 2022-04-17 12:59:34 +03:00
Tulir Asokan
c773e6f4c9 Update user ID encoding spec link 2022-02-21 23:20:51 +02:00
Tulir Asokan
d5c25a5793 Allow setting via parameter in RoomID.URI() 2021-12-24 17:52:53 +02:00
Tulir Asokan
e5a8c0f1a5 Add helper methods to get MatrixURI structs out of opaque strings 2021-12-24 17:48:52 +02:00
Tulir Asokan
99e607dda7 Add missing newline 2021-10-26 17:24:48 +03:00
Tulir Asokan
6b5ccdfd46 Add wrapper for MSC2716 batch send 2021-10-26 17:00:30 +03:00
Tulir Asokan
00ca2be6a5 Run gofmt 2021-09-22 10:52:01 -04:00
Tulir Asokan
81187655c0 Add some tests and fix bugs in matrix: URI parsing 2021-06-15 15:04:48 +03:00
Tulir Asokan
2d9dd44b06 Add generic matrix: URI and matrix.to URL parsing
Closes #34
2021-06-08 16:23:46 +03:00
Tulir Asokan
ecce653670 Add new methods for validating user ID localparts. Fixes #27 2021-02-24 12:08:20 +02:00
Tulir Asokan
c3c3deadb0 Allow empty content URIs in parse methods 2021-02-10 00:08:03 +02:00