0
0
mirror of https://github.com/signalapp/libsignal.git synced 2024-09-20 03:52:17 +02:00
Commit Graph

2433 Commits

Author SHA1 Message Date
Alex Konradi
9355467f01 Add documentation for bridge crates
Explain the difference between libsignal-bridge and libsignal-bridge-types, and
how the pieces fit together.
2024-07-08 15:51:29 -04:00
moiseev-signal
b9efb3cc1b
Regenerate acknowledgements 2024-07-01 15:25:02 -07:00
Max Moiseev
2b48d18d23 Bump to version 0.52.1 2024-06-28 15:16:18 -07:00
Alex Konradi
a9868eccff
Bump NPM publish workflow macOS image version 2024-06-28 15:09:37 -07:00
Alex Konradi
e13e3de8b2 Bump to version v0.52.0 2024-06-28 14:55:58 -04:00
Alex Konradi
4cce5633d1
Avoid calling AsyncRead::read with empty target 2024-06-28 10:11:57 -04:00
Chris Eager
f26fd13631 Add SealedSenderMultiRecipientMessage#serialized 2024-06-26 17:01:01 -05:00
Sergey Skrobotov
4243979826
net: support status codes when responding to server messages 2024-06-26 14:40:04 -07:00
Alex Konradi
fc4e1dbcd6
Switch to JSON5 for backup .jsonproto parsing 2024-06-26 15:35:40 -04:00
Alex Konradi
ff864cce4d
Refactor gen_{ts,java}_decl.py
No behavior change, just moving code into named functions to improve 
readability and maintainability, and applying some Python conventions.

Co-authored-by: moiseev-signal <122060238+moiseev-signal@users.noreply.github.com>
2024-06-26 15:05:21 -04:00
Alex Konradi
bb44874400
Use a single source of truth for version file list 2024-06-26 14:11:04 -04:00
Harry
72aae8c00f
Remove SignalCoreKit dependency in libsignal 2024-06-26 09:44:22 -07:00
moiseev-signal
b85148cc1f
svr3: Implement query function 2024-06-25 14:27:09 -07:00
Alex Konradi
b064ec78c5
Upgrade rustc to latest nightly 2024-06-25 11:31:59 -04:00
Alex Konradi
49f9fa5498
Use --no-fail-fast for cargo test
Fix slow tests workflow
2024-06-24 12:45:37 -04:00
Chris Eager
2b5b51c7b3 Fix error string whitespace 2024-06-21 16:34:27 -07:00
Jordan Rose
6313b9715b ffi: Simplify error attribute getters using trait methods
It ought to be possible to go even further and use bridge_fn for these
now as well, but this is a start.
2024-06-21 16:34:13 -07:00
Jordan Rose
2a2ef524d2 Update to Node 20.11.1 2024-06-21 14:35:17 -07:00
Jordan Rose
628b849de0 bridge: ChatListeners should prioritize cancellation over events
This makes it easier to write tests for replacing listeners.
2024-06-21 14:35:17 -07:00
Alex Konradi
5b4570625b
Split types out of libsignal-bridge crate
Separate `libsignal-bridge` into two crates:
- `libsignal-bridge-types`, which contains types and methods for bridging,
  declares conversion traits, and implements those traits
- `libsignal-bridge`, which defines `extern "C"` functions that get exported
  into the app-language libraries

This will allow creating a second test-only crate, parallel to
`libsignal-bridge`, that can use the same types and macros for exporting
functions.
2024-06-21 16:39:14 -04:00
Alex Konradi
05c86172ec
Run cargo with --keep-going/--no-fail-fast in CI 2024-06-21 14:53:26 -04:00
Jordan Rose
db18a102f2 Use Docker's ADD command for remote resources 2024-06-21 11:35:08 -07:00
Alex Konradi
aeeba5e676
Track ad-hoc calls in message backups 2024-06-21 13:21:25 -04:00
Jordan Rose
2e2896fc23 Bump to version v0.51.1 2024-06-20 17:02:58 -07:00
Fedor Indutny
4f4669ed23 node: update prebuildify to 6.0.1 2024-06-20 15:41:43 -07:00
Jordan Rose
fc5a12834b net: Fix inverted boolean propagating fatal errors in reconnect 2024-06-20 15:23:58 -07:00
moiseev-signal
b463c510c1
net: Add proxy-f config for staging 2024-06-20 12:06:22 -07:00
moiseev-signal
e88138ef72
Use constant instead of hex literal for acceptable advisories 2024-06-20 12:05:51 -07:00
Jordan Rose
8bca9ace30 Update curve25519-dalek 2024-06-20 12:04:44 -07:00
Jordan Rose
44ff1e74e6 Update to a slightly newer rustc 2024-06-20 12:04:44 -07:00
Jordan Rose
8c05c03aa7 Update cargo-about
This includes a new metadata parser that is expected to be more
accurate.
2024-06-20 12:04:44 -07:00
Alex Konradi
66436b7c48
Remove unused dependencies 2024-06-18 16:05:21 -04:00
Jordan Rose
95bf4e7715 Bump to version v0.51.0 2024-06-13 16:42:29 -07:00
Jordan Rose
86c07ee86a bridge: Remove SignalFfiError enum
Now there's a trait, FfiError, which handles conversion to a string
and numeric code, and a helper struct SignalFfiError that mostly just
wraps `Box<dyn FfiError>`. This makes it easier to add new errors --
they only need to be added in two places (a trait impl and possibly
new error codes) instead of three.
2024-06-13 16:00:00 -07:00
Jordan Rose
4e2a7de574 Expose the 'Stopped' event to Swift and Node
Swift: ChatListener.chatServiceConnectionWasInterrupted(_:)
Node: ChatServiceListener.onConnectionInterrupted()
2024-06-13 15:54:21 -07:00
Jordan Rose
cca5b51d28 net: Send a Stopped event if there have been any server requests 2024-06-13 15:54:21 -07:00
Jordan Rose
b603fabbea net: ServerRequest -> ServerEvent, so we can add a non-request event
So far, nothing sends the one non-request event ("stopped").
2024-06-13 15:54:21 -07:00
Jordan Rose
e3a1eb522a swift: Split ChatListener out to its own file
And add some more doc comments.
2024-06-13 15:54:21 -07:00
Jordan Rose
b79637ddc2 node: Add doc comments around ChatListener 2024-06-13 15:54:21 -07:00
Jordan Rose
fee55949cd net: Differentiate chat-server HTTP responses from proxy responses
...by looking for the x-signal-timestamp header, which won't be set by
some intermediate server. For other connections, we don't (yet?) have
anything to key off of, so they'll continue conservatively treating
any HTTP response as having come from the real server.
2024-06-13 13:46:47 -07:00
Jordan Rose
0cbe5079e0 CI: Verify our reproducible Java builds in the Slow Tests 2024-06-13 13:44:54 -07:00
Jordan Rose
3cebfb0ec4 java: Build reproducible jars
The *contents* were already identical, but jars preserve timestamps by
default, and might not sort their inputs. Fortunately Gradle has
options for both of those.
2024-06-13 13:44:54 -07:00
Alex Konradi
24c234a5fe
Update message backup proto definition 2024-06-13 15:37:26 -04:00
Jordan Rose
4791773954 java: Add -P debugLevelLogs as a Gradle build option
Similar to the previous commits, but for Java/Android. If invoking
build_jni.sh directly, use `--debug-level-logs` like build_ffi.sh.

As a consequence, LOGGING IS NO LONGER AUTOMATICALLY ENABLED FOR
JAVA/ANDROID. Clients must call SignalProtocolLoggerProvider.
initializeLogging() in addition to setting a provider.
2024-06-13 12:08:31 -07:00
Jordan Rose
1364e4812c node: Add yarn build-with-debug-level-logs
Similar to the previous commit, but for Node.
2024-06-13 12:08:31 -07:00
Jordan Rose
af4821846e Add a --debug-level-logs option to build_ffi.sh
This allows enabling debug- and trace-level logs even in a release
build. (This also means the job of filtering *out* those logs has been
moved up to build_ffi.sh, where previously it was specified in the
leaf crate's Cargo.toml.)
2024-06-13 12:08:31 -07:00
Sergey Skrobotov
b3ec2cc7f2
net: chat listener bridging to node 2024-06-13 11:20:08 -07:00
Jordan Rose
0a96d32813 net: Pass "fatal" connection errors up through chat connect*()
Applies 38a5f01f to the chat server connection methods as well, so
that the errors added in 9a8429da actually get recognized.
2024-06-12 10:58:31 -07:00
Alex Konradi
408e470724
backup: Track order of all chat items across chats 2024-06-11 10:54:35 -04:00
Chris Eager
eef35d2822 attest: remove obsolete CDSI mrenclave from ACCEPTABLE_SW_ADVISORIES 2024-06-10 16:40:25 -05:00