Simon Laux
63be1ae5a9
change muted forever to -1
2020-02-08 13:25:22 +01:00
Simon Laux
b9ba1a4f69
implement ffi part
2020-02-08 13:25:22 +01:00
Floris Bruynooghe
fc0292bf8a
Rename save_self_keypair
...
For the ffi rename to dc_preconfigure_keypair. For the internal API
to store_self_keypair.
2020-02-06 22:00:29 +01:00
Floris Bruynooghe
98b3151c5f
Refactor keypair handling and expose storing keypairs on ffi
...
The user-visible change here is that it allows the FFI API to save
keys in the database for a context. This is primarily intended for
testing purposes as it allows you to get a key without having to
generate it.
Internally the most important change is to start using the
SignedPublicKey and SignedPrivateKey types from rpgp instead of
wrapping them into a single Key object. This allows APIs to be
specific about which they want instead of having to do runtime checks
like .is_public() or so. This means some of the functionality of the
Key impl now needs to be a trait.
A thid API change is to introduce the KeyPair struct, which binds
together the email address, public and private key for a keypair.
All these changes result in a bunch of cleanups, though more more
should be done to completely replace the Key type with the
SignedPublicKye/SignedPrivateKey + traits. But this change is large
enough already.
Testing-wise this adds two new keys which can be loaded from disk and
and avoids a few more key-generating tests. The encrypt/decrypt tests
are moved from the stress tests into the pgp tests and split up.
2020-02-06 22:00:29 +01:00
B. Petersen
63043cb45d
add after_login_hint, refine ffi
2020-01-30 17:47:40 +01:00
B. Petersen
748e54d4c2
add basic provider-functions
2020-01-30 17:47:40 +01:00
B. Petersen
fbe57c4c71
adapt provider-db api to real need
2020-01-30 17:47:39 +01:00
B. Petersen
49fdd6fc5b
clarify documentation
2020-01-26 16:23:30 +01:00
Alexander Krotov
df7253b13e
Document MessageState and fix some typos
2020-01-15 00:48:10 +03:00
Alexander Krotov
61833c32e5
Remove trailing space from deltachat.h
2020-01-01 23:05:08 +00:00
Alexander Krotov
541710147a
Copy correct dc_contact_is_verified documentation from C core
...
instead of dc_contact_is_verified_ex documentation.
2019-12-11 17:54:28 +01:00
Alexander Krotov
c08a1adc9b
Deprecate AcceptInvalidHostnames option
...
Rustls does not offer a documented way to accept valid certificates with
invalid hostnames. Implementation of certificate verification in Rustls
does not have a public API and reimplementing it is error-prone.
2019-12-08 20:54:04 +01:00
B. Petersen
7421b0de6c
adapt the ffi-examples to reality, free stuff
2019-12-06 20:08:57 +01:00
holger krekel
d96dba336b
Update deltachat-ffi/deltachat.h
...
fix doc
2019-12-05 18:57:19 +01:00
holger krekel
74825a0f57
working example
2019-12-05 18:57:19 +01:00
holger krekel
4a23d12df2
add a ffi-definiton for a new get-chat summary function that returns json
2019-12-05 18:57:19 +01:00
B. Petersen
521e44bd54
add ffi for update_device_chats()
2019-12-02 16:33:24 +01:00
holger krekel
76610f1e72
rename to more specific name, also not using the difficult to type "succeeded" word :)
2019-11-27 13:02:07 +01:00
B. Petersen
f53b3c2e7b
add DC_EVENT_SECUREJOIN_SUCCEEDED
2019-11-27 00:43:50 +01:00
B. Petersen
e4e6a00fe4
rename has_device_msg() to was_device_msg_ever_added() what describes better what the function is doing
2019-11-19 13:21:02 +01:00
B. Petersen
700e10bc0e
use dc_add_device_msg() also to add labels-only, this is clearer as having a function with 'skip' in the name
2019-11-19 13:05:01 +01:00
B. Petersen
d3fa289f27
streamline dc_add_device_msg_once|unlabelled() to one function
2019-11-19 11:49:02 +01:00
B. Petersen
1534a07ded
add dc_has_device_msg()
2019-11-18 17:31:03 +01:00
B. Petersen
a4e92694ba
name unlabelled device-messages as such
2019-11-18 16:47:18 +01:00
B. Petersen
035da9e5d7
add dc_skip_device_msg() and belonging tests
2019-11-18 16:47:18 +01:00
B. Petersen
fed6f4ab8a
do not re-add device-messages deleted by the user
2019-11-18 16:47:18 +01:00
B. Petersen
b42d8799b4
add dc_add_device_msg_once() to fii
2019-11-12 16:10:48 +01:00
B. Petersen
154cb2db83
add missing DC_STR_DEVICE_MESSAGES
2019-11-10 16:31:12 +01:00
B. Petersen
34f9961857
restore config-param if configure() fails
2019-11-06 22:59:14 +01:00
B. Petersen
515f0c5089
correct ffi return value of dc_add_device_msg()
2019-11-06 13:33:30 +01:00
B. Petersen
4c30bf80ce
target comments of @flub
2019-11-06 13:33:30 +01:00
B. Petersen
50539465b9
prototype a device-chat
2019-11-06 13:33:30 +01:00
B. Petersen
be08bcb22b
rename DC_CONTACT_ID_DEVICE to DC_CONTACT_ID_INFO to be in-line with dc_msg_is_info()
2019-11-06 13:33:30 +01:00
B. Petersen
ec8dbddcfb
tweak ffi documentation wrt certificate checks
2019-11-01 18:06:01 +01:00
B. Petersen
bc699f17d9
avoid usage of get_subtitle() in repl-tool, remove dc_chat_get_subtitle() from documentation.
2019-11-01 13:19:47 +01:00
B. Petersen
7530abd581
remove unneeded const attribtute
2019-10-30 16:36:28 +01:00
B. Petersen
62019f57e9
fix some doxygen links and overviews
2019-10-30 16:09:04 +01:00
holger krekel
911c0e45dc
expose empty server functionality and test it (also introducing a new DC_EVENT_IMAP_FOLDER_EMPTIED event)
2019-10-29 22:19:13 +01:00
Alexander Krotov
c85f1b20ca
Add constants for certificate checks configuration
2019-10-27 11:51:14 +01:00
B. Petersen
e1fc5863c2
target comments of @hpk42
2019-10-10 00:29:52 +02:00
B. Petersen
f0791149e6
document dc_str_unref()
2019-10-10 00:29:52 +02:00
B. Petersen
297b032bdc
fix doxygen, some rewording
2019-10-10 00:29:52 +02:00
holger krekel
24c0a833bd
address @flub comments
2019-10-09 15:59:31 +02:00
holger krekel
45f011c63c
expose and test set_stock_translation to Python
2019-10-09 15:59:31 +02:00
holger krekel
b82af9fff3
introduce set_stock_translation and remove call to DC_EVENT_GET_STRING
2019-10-09 15:59:31 +02:00
holger krekel
603761e4b7
add DC_EVENT_DELETED_BLOB_FILE
2019-10-03 18:01:56 +02:00
holger krekel
467c09f491
introduce DC_EVENT_NEW_BLOB_FILE event and test for it
2019-10-03 18:01:56 +02:00
holger krekel
509a21ff05
introduce DC_IMAP_MESSAGE_MOVED event and try harder to send out MDNs
2019-10-02 23:51:14 +02:00
holger krekel
96066712bd
add and test for DC_IMAP_MESSAGE_DELETED event
2019-10-02 23:51:14 +02:00
björn petersen
c376de9b5e
add sticker type ( #653 )
...
* add sticker type
this pr adds the message type 'sticker'.
stickers are handled as normal images
but tagged with the header `Chat-Content: sticker`
it's up to the ui to render these stickers appropriate.
* cargo fmt
2019-09-30 20:55:27 +02:00