link2xt
ffe6efe819
build: increase MSRV to 1.81.0
2024-12-12 04:45:24 +00:00
link2xt
e7a29f0aa7
chore(cargo): update rPGP from 0.13.2 to 0.14.0
2024-11-14 09:31:40 +00:00
link2xt
faad576d10
feat: experimental header protection for Autocrypt
...
This change adds support for receiving
Autocrypt header in the protected part of encrypted message.
Autocrypt header is now also allowed in mailing lists.
Previously Autocrypt header was rejected when
List-Post header was present,
but the check for the address being equal to the From: address
is sufficient.
New experimental `protect_autocrypt` config is disabled
by default because Delta Chat with reception
support should be released first on all platforms.
2024-11-06 23:16:09 +00:00
link2xt
c5b78741d6
refactor: fix clippy::needless_lifetimes warnings
2024-10-15 09:14:23 +00:00
link2xt
f7a705c6da
refactor: use KeyPair::new() in create_keypair()
2024-09-16 20:51:16 +00:00
link2xt
1caf672904
test(test-data): remove public keys that can be derived from secret keys
2024-09-16 17:00:16 +00:00
link2xt
7743072411
refactor: remove addr from KeyPair
2024-09-16 17:00:16 +00:00
link2xt
088008a030
chore(cargo): update rPGP from 0.11 to 0.13
2024-07-09 01:32:38 +00:00
link2xt
910e4bfa37
docs: fix broken references in documentation comments
2024-04-20 05:57:26 +00:00
Hocuri
5d34b225b7
Split off functional contact tools into its own crate ( #5444 )
...
I would like to implement
https://github.com/deltachat/deltachat-core-rust/issues/5422 in its own
crate, but it will depend on some functions that are in the `deltachat`
crate.
So, this PR extracts these functions into its own crate so that I can
add https://github.com/deltachat/deltachat-core-rust/issues/5422 into
the new crate.
2024-04-16 19:01:25 +02:00
link2xt
b970ebe67a
fix: do not compress SecureJoin messages
2024-03-04 21:07:10 +00:00
link2xt
0a18e32d62
chore(cargo): update rpgp to 0.11
...
<https://github.com/rpgp/rpgp/releases/tag/v0.11.0 >
2024-02-22 05:08:00 +00:00
link2xt
660cfd4f01
refactor: rename incorrectly named variables in create_keypair
...
Encryption subkey is incorrectly referred to as public key
in variable names.
This is incorrect because generated encryption key
is secret too just as the signing primary key.
Generated OpenPGP secret key consists of primary signing key
and encryption subkey.
Then OpenPGP public key consisting of
the primary signing public key
and encryption public key is generated.
Keypair consists of the secret OpenPGP key and public OpenPGP key,
each of them has a primary key and subkey inside.
2024-02-17 17:50:33 +00:00
link2xt
b35b893351
refactor(create_keypair): remove unnecessary map_err
2024-02-17 17:50:33 +00:00
link2xt
790e867af0
Merge tag 'v1.122.0'
2023-09-12 18:04:05 +00:00
link2xt
49cc5fb673
feat: add RSA-4096 key generation support
2023-09-12 12:33:34 +00:00
link2xt
68c95dee17
refactor(pgp): add constants for encryption algorithm and hash
...
These constants are current defaults in `pgp` crate,
this change would prevent accidental change due to rPGP upgrade
and make it easier to change in a single place.
2023-09-12 11:12:59 +02:00
link2xt
e59c4ee858
Merge branch 'stable'
2023-08-27 22:18:36 +00:00
link2xt
62aed13880
refactor: hide pgp module from public API
2023-08-27 22:03:00 +00:00
link2xt
d797de7a8d
refactor: use slices and vectors instead of Keyring wrapper
...
This change removes all traces of dc_keyring_t,
which was a C implementation of dynamically sized array.
2023-07-24 18:05:38 +00:00
link2xt
3e65b6f3a6
Update to rPGP 0.10.1
2023-03-30 21:09:29 +00:00
link2xt
7e5a8714a0
Add scripts/codespell.sh and spellcheck
2023-03-03 18:40:36 +00:00
iequidoo
d1923d68a5
Add a config option to sign all messages with Autocrypt header ( #3986 )
...
Although it does a little for security, it will help to protect from unwanted server-side
modifications and bugs. And now we have a time to test "multipart/signed" messages compatibility
with other MUAs.
2023-02-25 10:30:35 -03:00
link2xt
ae19c9b331
Add more documentation
2023-02-15 21:56:33 +00:00
link2xt
fcf73165ed
Inline format arguments
...
This feature has been stable since Rust 1.58.0.
2023-01-30 11:50:11 +03:00
link2xt
ae564ef702
Add documentation
2023-01-28 21:30:43 +00:00
link2xt
4615c84f31
Automatically group imports using nightly rustfmt
2023-01-19 13:13:25 +00:00
link2xt
2cd1da5222
Pass private keyring around as a reference
2022-12-23 18:43:24 +00:00
link2xt
3de53a313f
Make pk_decrypt synchronous
2022-12-23 18:15:38 +00:00
link2xt
2cd63234c1
Do not allow missing documentation by default
2022-12-13 23:45:12 +00:00
Friedel Ziegelmayer
3e2af8537c
refactor: remove dc_ prefix
...
* refactor: remove `dc_` prefix from mods
* refactor: remove dc_ prefix from functions
* fix: avoid temporary `File`s to avoid race conditions
* test(pgp): fix runtime usage in Lazy
Based on #3462
* fixup: undo some comment changes
2022-07-01 12:20:20 +02:00
Friedel Ziegelmayer
290ee20e63
feat: migrate from async-std to tokio
2022-06-27 14:05:21 +02:00
link2xt
0a51db3005
Enable clippy::unused_async lint
2022-06-04 17:46:17 +00:00
link2xt
8cee14fa3a
pgp: replace custom PgpKeygenError with anyhow
2022-05-29 17:11:58 +00:00
link2xt
73341394ee
Reduce unwrap and expect usage
2022-05-21 14:12:23 +00:00
bjoern
01ef053a11
bubble up signing error instead of panicing ( #3304 )
...
.expect() may panic, which is probably not what we want here.
it seems better to bubble up the error (as we are doing in the other cases)
(i was checking some .expect usages after we had a similar issue at #3264 )
2022-05-08 20:17:50 +02:00
link2xt
bfa641cea8
Error handling refactoring
...
- Replace .ok_or_else() and .map_err() with anyhow::Context where possible.
- Use .context() to check Option for None when it's an error
- Resultify Chatlist.get_chat_id()
- Add useful .context() to some errors
- IMAP error handling cleanup
2022-01-07 14:22:37 +00:00
link2xt
6d125028f5
Validate detached signatures
2021-12-10 22:56:42 +00:00
link2xt
7ff3cf4af0
Accept keyring by reference in pk_decrypt
2021-12-10 22:56:42 +00:00
link2xt
bb3353397d
Use return values instead of out arguments for PGP signatures
2021-12-10 22:56:42 +00:00
link2xt
a74377b620
Fix Rust 1.57 compiler and clippy warnings ( #2863 )
...
* Remove unused os_name
* Disable clippy::manual_split_once lint
It's suggestions in stable 1.57 Rust are incorrect: https://github.com/rust-lang/rust-clippy/issues/7889
* Allow unused fields in OAuth2 response
* Fix clippy warning about `select_pk_for_encryption`
2021-12-04 18:56:14 +03:00
link2xt
2b7bf11b05
Rust documentation improvements
...
Document all public modules and some methods.
Make some internal public symbols private.
2021-08-22 15:34:14 +02:00
B. Petersen
475fa24876
move links to angle brackets to avoid rustdoc errors
2021-06-19 01:39:04 +03:00
Floris Bruynooghe
355e0145c0
Depend on anyhow directly
...
This removes the proxy via crate::error to depend on anyhow directly.
There is no benefit to this indirection and this makes it simpler to
see which error types are used.
2021-01-24 17:29:52 +03:00
Alexander Krotov
5e8e77dfb6
clippy: forbid wildcard_imports
2021-01-12 12:06:13 +03:00
Alexander Krotov
67cddedf7e
Switch from lazy_static to once_cell
2020-10-18 15:47:21 +03:00
Friedel Ziegelmayer
0c03024b97
feat: update dependencies
...
* feat: update dependencies
updates
- pgp
- async-std
- surf
- mailparse
* simplify dev deps
* more deps
* fixup
* fixup
2020-09-21 23:53:53 +02:00
Floris Bruynooghe
ee27c7d9d4
Run clippy on tests and examples
2020-09-05 18:13:16 +02:00
Alexander Krotov
18e4abc1df
Remove some and deny new indexing and slicing
2020-07-11 21:43:02 +03:00
Alexander Krotov
baba91c054
pgp: refactor and document pk_decrypt()
...
Avoid unnecessary indexing, decompress only once and check if the message
is Signed before trying to verify it.
2020-06-17 11:48:29 +03:00