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

13 Commits

Author SHA1 Message Date
Jack Lloyd
aaf9b93429
Merge pull request #26 from signalapp/jack/add-public-key-bytes
Add PublicKey::public_key_bytes
2020-11-05 14:54:03 -05:00
Jordan Rose
33b8c6ad8d Run cargo fmt after async changes 2020-11-03 14:35:38 -08:00
Jordan Rose
90a9f76dc6 Thread 'async' through any protocol APIs that take Stores
In preparation for Desktop, which must asynchronously access its
database (rather than putting the entire operation on a background
thread with synchronization at the database layer).

The FFI and JNI wrappers (as well as the tests) use
futures::executor::block_on to turn the operations back into
synchronous ones.
2020-11-03 14:35:38 -08:00
Jack Lloyd
9a7785686b Add PublicKey::public_key_bytes
Signal-Android needs this function, probably Swift will as well.

Also fix the Swift tests on Linux
2020-11-03 17:06:04 -05:00
Jack Lloyd
946e0670f6 Switch to AGPL 3.0 2020-11-02 17:53:10 -05:00
Jordan Rose
3425025134 ffi: Drop dependency on num_traits::ToPrimitive
We were only using it on enums, and unconditionally at that, so Rust's
built-in numeric casts will have the same effect.
2020-10-22 11:34:42 -07:00
Jordan Rose
c1ffb1b805 ffi: Expose named constants for CiphertextMessageType
Also:
- Expose them to Swift as well in a type-safe way
- Verify that each constant matches the encoding used in rust/protocol/
2020-10-22 11:34:25 -07:00
Jordan Rose
cc34341a73 ffi: Cache cbindgen intermediates from build to build 2020-10-19 12:22:11 -07:00
Jordan Rose
5bb6adc81f Build libsignal-ffi as a staticlib for now
We don't want it to get linked into an app multiple times, but we also
have no reason to force the Swift wrapper to be a /separate/ dynamic
library.
2020-10-16 14:25:21 -07:00
Jordan Rose
c8834a875a Add missing license headers to libsignal-ffi sources 2020-10-16 13:01:12 -07:00
Jordan Rose
2fb87a0ab4 ffi: Fold signal_ffi.h generation into the Rust build
We're going to need nightly Rust for other things anyway, so we may as
well drop the extra Makefile and just require Cargo.

Also, delete the pkg-config file now that we no longer need to access
libsignal_ffi from arbitrary locations.
2020-10-16 11:19:00 -07:00
Jordan Rose
0c996fe221 Add ffi to workspace and refer to libsignal-protocol-rust via path 2020-10-16 10:45:49 -07:00
Jordan Rose
e5e55b1cd1 Move libsignal-ffi to rust/bridge/ffi 2020-10-16 10:36:12 -07:00