Skip to content

Commit

Permalink
libsignalgo: update libsignal to v0.52.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Jun 28, 2024
1 parent 1bc7b10 commit 96724bd
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion pkg/libsignalgo/libsignal
Submodule libsignal updated 145 files
48 changes: 24 additions & 24 deletions pkg/libsignalgo/libsignal-ffi.h
Original file line number Diff line number Diff line change
Expand Up @@ -1228,27 +1228,27 @@ SignalFfiError *signal_device_transfer_generate_certificate(SignalOwnedBuffer *o

SignalFfiError *signal_cds2_client_state_new(SignalSgxClientState **out, SignalBorrowedBuffer mrenclave, SignalBorrowedBuffer attestation_msg, uint64_t current_timestamp);

SignalFfiError *signal_sgx_client_state_destroy(SignalSgxClientState *p);
SignalFfiError *signal_hsm_enclave_client_destroy(SignalHsmEnclaveClient *p);

SignalFfiError *signal_sgx_client_state_initial_request(SignalOwnedBuffer *out, const SignalSgxClientState *obj);
SignalFfiError *signal_hsm_enclave_client_new(SignalHsmEnclaveClient **out, SignalBorrowedBuffer trusted_public_key, SignalBorrowedBuffer trusted_code_hashes);

SignalFfiError *signal_sgx_client_state_complete_handshake(SignalSgxClientState *cli, SignalBorrowedBuffer handshake_received);
SignalFfiError *signal_hsm_enclave_client_complete_handshake(SignalHsmEnclaveClient *cli, SignalBorrowedBuffer handshake_received);

SignalFfiError *signal_sgx_client_state_established_send(SignalOwnedBuffer *out, SignalSgxClientState *cli, SignalBorrowedBuffer plaintext_to_send);
SignalFfiError *signal_hsm_enclave_client_established_send(SignalOwnedBuffer *out, SignalHsmEnclaveClient *cli, SignalBorrowedBuffer plaintext_to_send);

SignalFfiError *signal_sgx_client_state_established_recv(SignalOwnedBuffer *out, SignalSgxClientState *cli, SignalBorrowedBuffer received_ciphertext);
SignalFfiError *signal_hsm_enclave_client_established_recv(SignalOwnedBuffer *out, SignalHsmEnclaveClient *cli, SignalBorrowedBuffer received_ciphertext);

SignalFfiError *signal_hsm_enclave_client_destroy(SignalHsmEnclaveClient *p);
SignalFfiError *signal_hsm_enclave_client_initial_request(SignalOwnedBuffer *out, const SignalHsmEnclaveClient *obj);

SignalFfiError *signal_hsm_enclave_client_new(SignalHsmEnclaveClient **out, SignalBorrowedBuffer trusted_public_key, SignalBorrowedBuffer trusted_code_hashes);
SignalFfiError *signal_sgx_client_state_destroy(SignalSgxClientState *p);

SignalFfiError *signal_hsm_enclave_client_initial_request(SignalOwnedBuffer *out, const SignalHsmEnclaveClient *obj);
SignalFfiError *signal_sgx_client_state_initial_request(SignalOwnedBuffer *out, const SignalSgxClientState *obj);

SignalFfiError *signal_hsm_enclave_client_complete_handshake(SignalHsmEnclaveClient *cli, SignalBorrowedBuffer handshake_received);
SignalFfiError *signal_sgx_client_state_complete_handshake(SignalSgxClientState *cli, SignalBorrowedBuffer handshake_received);

SignalFfiError *signal_hsm_enclave_client_established_send(SignalOwnedBuffer *out, SignalHsmEnclaveClient *cli, SignalBorrowedBuffer plaintext_to_send);
SignalFfiError *signal_sgx_client_state_established_send(SignalOwnedBuffer *out, SignalSgxClientState *cli, SignalBorrowedBuffer plaintext_to_send);

SignalFfiError *signal_hsm_enclave_client_established_recv(SignalOwnedBuffer *out, SignalHsmEnclaveClient *cli, SignalBorrowedBuffer received_ciphertext);
SignalFfiError *signal_sgx_client_state_established_recv(SignalOwnedBuffer *out, SignalSgxClientState *cli, SignalBorrowedBuffer received_ciphertext);

SignalFfiError *signal_expiring_profile_key_credential_check_valid_contents(SignalBorrowedBuffer buffer);

Expand Down Expand Up @@ -1510,14 +1510,14 @@ SignalFfiError *signal_group_send_full_token_verify(SignalBorrowedBuffer token,

SignalFfiError *signal_verify_signature(bool *out, SignalBorrowedBuffer cert_pem, SignalBorrowedBuffer body, SignalBorrowedBuffer signature, uint64_t current_timestamp);

SignalFfiError *signal_connection_manager_destroy(SignalConnectionManager *p);

SignalFfiError *signal_connection_manager_new(SignalConnectionManager **out, uint8_t environment, const char *user_agent);

SignalFfiError *signal_connection_manager_set_proxy(const SignalConnectionManager *connection_manager, const char *host, int32_t port);

SignalFfiError *signal_connection_manager_clear_proxy(const SignalConnectionManager *connection_manager);

SignalFfiError *signal_connection_manager_destroy(SignalConnectionManager *p);

SignalFfiError *signal_create_otp(const char **out, const char *username, SignalBorrowedBuffer secret);

SignalFfiError *signal_create_otp_from_base64(const char **out, const char *username, const char *secret);
Expand All @@ -1528,6 +1528,8 @@ SignalFfiError *signal_svr3_restore(SignalCPromiseOwnedBufferOfc_uchar *promise,

SignalFfiError *signal_svr3_remove(SignalCPromisebool *promise, const SignalTokioAsyncContext *async_runtime, const SignalConnectionManager *connection_manager, const char *username, const char *enclave_password);

SignalFfiError *signal_lookup_request_destroy(SignalLookupRequest *p);

SignalFfiError *signal_lookup_request_new(SignalLookupRequest **out);

SignalFfiError *signal_lookup_request_add_e164(const SignalLookupRequest *request, const char *e164);
Expand All @@ -1540,8 +1542,6 @@ SignalFfiError *signal_lookup_request_add_aci_and_access_key(const SignalLookupR

SignalFfiError *signal_lookup_request_set_return_acis_without_uaks(const SignalLookupRequest *request, bool return_acis_without_uaks);

SignalFfiError *signal_lookup_request_destroy(SignalLookupRequest *p);

SignalFfiError *signal_cdsi_lookup_destroy(SignalCdsiLookup *p);

SignalFfiError *signal_cdsi_lookup_new(SignalCPromiseCdsiLookup *promise, const SignalTokioAsyncContext *async_runtime, const SignalConnectionManager *connection_manager, const char *username, const char *password, const SignalLookupRequest *request);
Expand Down Expand Up @@ -1610,10 +1610,10 @@ SignalFfiError *signal_pin_verify_local_hash(bool *out, const char *encoded_hash

SignalFfiError *signal_svr2_client_new(SignalSgxClientState **out, SignalBorrowedBuffer mrenclave, SignalBorrowedBuffer attestation_msg, uint64_t current_timestamp);

SignalFfiError *signal_incremental_mac_calculate_chunk_size(uint32_t *out, uint32_t data_size);

SignalFfiError *signal_incremental_mac_destroy(SignalIncrementalMac *p);

SignalFfiError *signal_incremental_mac_calculate_chunk_size(uint32_t *out, uint32_t data_size);

SignalFfiError *signal_incremental_mac_initialize(SignalIncrementalMac **out, SignalBorrowedBuffer key, uint32_t chunk_size);

SignalFfiError *signal_incremental_mac_update(SignalOwnedBuffer *out, SignalIncrementalMac *mac, SignalBorrowedBuffer bytes, uint32_t offset, uint32_t length);
Expand All @@ -1630,10 +1630,10 @@ SignalFfiError *signal_validating_mac_finalize(int32_t *out, SignalValidatingMac

SignalFfiError *signal_message_backup_key_destroy(SignalMessageBackupKey *p);

SignalFfiError *signal_message_backup_key_new(SignalMessageBackupKey **out, const uint8_t (*master_key)[32], const SignalServiceIdFixedWidthBinaryBytes *aci);

SignalFfiError *signal_message_backup_validation_outcome_destroy(SignalMessageBackupValidationOutcome *p);

SignalFfiError *signal_message_backup_key_new(SignalMessageBackupKey **out, const uint8_t (*master_key)[32], const SignalServiceIdFixedWidthBinaryBytes *aci);

SignalFfiError *signal_message_backup_validation_outcome_get_error_message(const char **out, const SignalMessageBackupValidationOutcome *outcome);

SignalFfiError *signal_message_backup_validation_outcome_get_unknown_fields(SignalStringArray *out, const SignalMessageBackupValidationOutcome *outcome);
Expand All @@ -1655,23 +1655,23 @@ SignalFfiError *signal_username_link_create(SignalOwnedBuffer *out, const char *
SignalFfiError *signal_username_link_decrypt_username(const char **out, SignalBorrowedBuffer entropy, SignalBorrowedBuffer encrypted_username);

#if defined(SIGNAL_MEDIA_SUPPORTED)
SignalFfiError *signal_signal_media_check_available(void);
SignalFfiError *signal_sanitized_metadata_destroy(SignalSanitizedMetadata *p);
#endif

#if defined(SIGNAL_MEDIA_SUPPORTED)
SignalFfiError *signal_mp4_sanitizer_sanitize(SignalSanitizedMetadata **out, const SignalInputStream *input, uint64_t len);
SignalFfiError *signal_sanitized_metadata_clone(SignalSanitizedMetadata **new_obj, const SignalSanitizedMetadata *obj);
#endif

#if defined(SIGNAL_MEDIA_SUPPORTED)
SignalFfiError *signal_webp_sanitizer_sanitize(const SignalSyncInputStream *input);
SignalFfiError *signal_signal_media_check_available(void);
#endif

#if defined(SIGNAL_MEDIA_SUPPORTED)
SignalFfiError *signal_sanitized_metadata_destroy(SignalSanitizedMetadata *p);
SignalFfiError *signal_mp4_sanitizer_sanitize(SignalSanitizedMetadata **out, const SignalInputStream *input, uint64_t len);
#endif

#if defined(SIGNAL_MEDIA_SUPPORTED)
SignalFfiError *signal_sanitized_metadata_clone(SignalSanitizedMetadata **new_obj, const SignalSanitizedMetadata *obj);
SignalFfiError *signal_webp_sanitizer_sanitize(const SignalSyncInputStream *input);
#endif

#if defined(SIGNAL_MEDIA_SUPPORTED)
Expand Down
2 changes: 1 addition & 1 deletion pkg/libsignalgo/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

package libsignalgo

const Version = "v0.51.0"
const Version = "v0.52.0"

0 comments on commit 96724bd

Please sign in to comment.