0
0
mirror of https://github.com/signalapp/libsignal.git synced 2024-09-19 19:42:19 +02:00
Commit Graph

2468 Commits

Author SHA1 Message Date
gram-signal
9a8d02e65b
SVR - Add Kyber1024 PQ to Noise client connection. 2024-09-06 15:19:20 -07:00
sashaweiss-signal
033eab5349 Drop the displayName field from Contact.Name 2024-09-06 15:07:11 -07:00
Alex Konradi
94b53cde8b
Add test for chat connection timing/retry behavior 2024-09-06 15:53:16 -04:00
Alex Konradi
d5321d1c75 Bump to version v0.57.0 2024-09-06 09:46:54 -04:00
Alex Konradi
40aaecb9f3
Propagate reason for chat disconnect to listeners 2024-09-05 16:49:55 -04:00
Jordan Rose
823cfcf7e8 check_code_size: note if comparison against main was skipped
...specifically in the case where the most recent commit didn't run
the Java checks, and therefore we don't have a previous run of
check_code_size to compare to. (We could go back until we find one,
but that seems like overkill.)
2024-09-05 12:00:18 -07:00
Alex Konradi
9552d53585
Convert node errors independent of throwing
This lets us bubble up errors in Rust code without throwing them up a JS stack.
2024-09-05 14:59:29 -04:00
Jordan Rose
8771e9759f backup: Disallow directionless messages that aren't updates
Note that updates *with* directions are still allowed; some of them
have associated messages, like calls.
2024-09-05 11:31:54 -07:00
Jordan Rose
de948b5acd backup: Disallow PNIs without E164s, or contacts with no IDs at all 2024-09-05 11:13:25 -07:00
Jordan Rose
4172456abc
Remove Signal-Message-Backup-Tests submodule
The handcrafted tests in the Signal-Message-Backup-Tests repository
have been replaced by a combinatoric generator, but that generator
runs the libsignal validator before producing any test cases. To avoid
a cyclic dependency, we're importing the existing set of tests and
dropping the link between repositories.
2024-09-05 10:56:06 -07:00
Alex Konradi
6d4f923513
Run slow tests with RUST_LOG=debug 2024-09-04 13:30:22 -04:00
Alex Konradi
c39d33858c
Add doc comments for some net items 2024-09-03 13:07:36 -04:00
gram-signal
c65a5763df
SVR - Clean up old protocol code. 2024-08-30 17:03:15 -07:00
gram-signal
1c2113617f
SVR - Add new protocol Rotate trait and test.
Co-authored-by: Max Moiseev <moiseev@signal.org>
2024-08-30 16:28:29 -07:00
Brendan McMillion
f142c25b72
keytrans: Update proto definitions
Co-authored-by: Max Moiseev <moiseev@signal.org>
2024-08-30 13:37:46 -07:00
Jordan Rose
eb860ea051 java: use 'assertThat' from org.hamcrest rather than org.junit
(as preferred by JUnit)
2024-08-30 09:05:04 -07:00
Jordan Rose
b67766d81e swift: Remove workaround in tests for building with an old Xcode 2024-08-30 09:04:53 -07:00
Jordan Rose
de90d87c7c CI: Don't bother building x86_64 Android for every PR
We don't run any "instrumented tests" for Android, so we're mostly
only building in case there are Android-specific issues. We could
consider eliminating one of the ARM slices as well, but Android is the
only target that uses 32-bit ARM, and 64-bit ARM is the dominant
variant (and what we measure the code size of).
2024-08-29 14:50:46 -07:00
gram-signal
303d7a6659
SVR - plumb new protocol into net. 2024-08-29 14:47:47 -07:00
Jordan Rose
e46841ea2c Bump to version v0.56.1 2024-08-29 14:33:20 -07:00
Jordan Rose
9400604090 java: Set up class loader for libsignal_jni_testing.so too
The class loader is a rare process-wide variable for us. When the
testing crates are compiled into the same .so as the main bridge
crates, they all use the same variable, but when we build for Android
we have two separate native library files that get loaded, and so we
need to initialize both.
2024-08-29 11:26:24 -07:00
moiseev-signal
a2d577353f
keytrans: Add a "golden test" for verify_search 2024-08-29 11:26:05 -07:00
Jordan Rose
c1ad2f3ec6
check_code_size: Update comparison against main
- Fix the format matcher after 0147989

- When merging into a branch other than main, compare against that branch

- When running on GitHub on the main branch itself, compare against HEAD^

- Adjust the plot view to have flexible columns
2024-08-28 17:11:01 -07:00
Jordan Rose
89a05ab2e5 backup: FAILED gift badges should have no credential presentation
Also, note that ReceiptCredentialPresentation is a stable format.
2024-08-28 14:43:27 -07:00
moiseev-signal
d767bc5bc3
svr3: Statically guarantee KDF output size 2024-08-28 13:57:32 -07:00
Alex Konradi
a54e6b5b33
Format with group_imports=StdExternalCrate 2024-08-28 14:52:47 -04:00
Alex Konradi
cbb649d07c
Restrict args passed to transport connector 2024-08-28 13:42:07 -04:00
Jordan Rose
dcc12c1187 backup: Be stricter about custom chat colors
- Only support simple gradients from 0.0 to 1.0
- Only support colors with full opacity (alpha channel 0xFF)
- Treat gradient steps as unordered--the position provides the order
2024-08-28 09:52:41 -07:00
Alex Konradi
019e14bfc6
Distinguish between DNS host, SNI, and HTTP host 2024-08-28 11:05:17 -04:00
Alex Konradi
182f7dde55
Fix socks4 example username 2024-08-27 15:01:25 -04:00
Jordan Rose
a8814d16f8 Move all "testing-fns" APIs into libsignal-bridge-testing
This means they'll be shipped to clients, but still filtered out of
the device builds on Android (via having two separate libraries on
disk) and iOS (by not being included in non-simulator builds). The
biggest benefit of this is dropping the :android:makeTestJniLibraries
step for running libsignal's Android tests.
2024-08-27 08:29:06 -07:00
Jordan Rose
d2d68763a2 Gradle: No need to publish a separate libWithDebugSymbols artifact
Follow-up to 9d729ff0.
2024-08-27 08:23:06 -07:00
Alex Konradi
1ff468895b
Add SOCKS proxy transport connector 2024-08-27 10:37:22 -04:00
Alex Konradi
c375408a42
Reverse HTTP client code size jump 2024-08-27 09:00:48 -04:00
Jordan Rose
01479894bc
check_code_size: Warn on PRs that add 100KB or more
And tweak the message to be more useful.
2024-08-26 13:42:00 -07:00
Alex Konradi
e84af68a1b
Use workspace.dependencies for common dependencies 2024-08-26 14:16:06 -04:00
Alex Konradi
9e6061a172
Reduce the number of heap allocations in DNS lookup code
Remove some indirection and heap allocation. Introduce a named type for 
readability. This is a pure refactor; no behavior changes.
2024-08-23 17:57:29 -04:00
Rolfe Schmidt
ace1b575bd
Add dates to SVR domain separation tags 2024-08-23 15:54:30 -06:00
gram-signal
8ed3317422
SVR - add lifetimes to Restore* to avoid copies. 2024-08-23 11:45:50 -07:00
Jordan Rose
97dfb275d6 android: Update to NDK r27 (current latest) 2024-08-23 11:23:05 -07:00
Alex Konradi
a655f12b03
Fix HTTP client bugs and clean up 2024-08-23 13:59:19 -04:00
Alex Konradi
2b377f2499
Upgrade remaining GH images to macos-latest 2024-08-22 16:25:39 -04:00
gram-signal
b59a4ed7bd
SVR - KDF for new protocol. 2024-08-22 10:41:50 -07:00
Graeme Connell
42f3daac11 SVR - client-driven rotation logic for new protocol. 2024-08-22 09:42:26 -07:00
Jordan Rose
9d36753ab1 net: Limit cached DNS results to a 5 minute TTL 2024-08-22 09:23:40 -07:00
Jordan Rose
174b498523 Update .gitignore for replacement of java/shared/resources in 3d1c45f1 2024-08-22 09:23:16 -07:00
Jordan Rose
4470192aa6 java: When running Cargo as part of Gradle, fall back to ~/.cargo/bin
This is important when the Gradle configuration is processed by an IDE
on macOS, which won't have had PATH set by shell login scripts.
2024-08-22 09:23:16 -07:00
Jordan Rose
21dbd79192 java: Update to Gradle 8.6 and AGP 8.4.1 to match Signal-Android 2024-08-22 09:23:16 -07:00
Jordan Rose
4a1ed695b0 java: Specify working directory relative to project root 2024-08-22 09:23:16 -07:00
gram-signal
d090ace5e9
Handle errors better (and modify SVR4 protocol to have unified errors). 2024-08-21 12:14:44 -07:00