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

28 Commits

Author SHA1 Message Date
Jack Lloyd
9ca168a567 Remove the SenderKey protobufs from Java wrapper 2020-11-06 17:47:56 -05:00
Jack Lloyd
2a2a8a70a8 Fix method signature 2020-11-06 16:40:54 -05:00
Jack Lloyd
26429e15d1 Remove use of IdentityKeyPair protobuf 2020-11-05 17:59:09 -05:00
Jack Lloyd
0fbd07ca81 Modify libsignal-protocol-java to use Rust via JNI
Removes device consistency code (unused)
Removes decryption callbacks (unused)
2020-11-05 17:59:09 -05:00
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
dc7fcc772d Remove some needless macro rules 2020-11-03 13:40:44 -05:00
Jack Lloyd
e85a6a1145 jni cleanups
Avoid needless trailing returns - for some reason clippy doesn't catch these.

Add a variant of get_jbytearray when all we need is a function call,
avoiding the lambda.
2020-11-03 12:18:23 -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
b712fc1ad0
Merge pull request #13 from signalapp/jrose/no-clean-necessary
ffi: Cache cbindgen intermediates from build to build
2020-10-19 15:08:09 -07:00
Jack Lloyd
5ece875587
Merge pull request #12 from signalapp/jack/jni-store-ctor
Remove some intermediate helper functions when creating JNI store objects
2020-10-19 16:53:35 -04:00
Jack Lloyd
aefc781fe2 cargo fmt 2020-10-19 16:44:39 -04:00
Jordan Rose
cc34341a73 ffi: Cache cbindgen intermediates from build to build 2020-10-19 12:22:11 -07:00
Jordan Rose
c3d5f4dbcb
Merge pull request #8 from signalapp/jrose/merge-swift
Merge libsignal-protocol-swift
2020-10-19 11:51:31 -07:00
Jack Lloyd
5c4ee6588c Remove some intermediate helper functions when creating JNI store objects
Closes #7
2020-10-19 14:50:30 -04:00
Jack Lloyd
c1331eb42f Add license headers 2020-10-16 18:30:17 -04:00
Jack Lloyd
3d24f94cef Update paths and workspace config 2020-10-16 18:26:26 -04:00
Jack Lloyd
52ae600210 Merge libsignal-jni history into libsignal-client 2020-10-16 18:19:11 -04:00
Jack Lloyd
e5840644c7 Move libsignal-jni to rust/bridge/jni 2020-10-16 18:17:21 -04: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