mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-04 02:09:17 +02:00
Do not add 'Modification Detection' feature to subkey binding packet.
This commit is contained in:
parent
1b2e9f9309
commit
caadf7aa99
2 changed files with 44 additions and 51 deletions
|
@ -909,6 +909,7 @@ pgp_add_key_flags(pgp_create_sig_t *sig, uint8_t flags)
|
|||
pgp_write_scalar(sig->output, (unsigned int)flags, 1);
|
||||
}
|
||||
|
||||
#if 0 ///////
|
||||
unsigned
|
||||
pgp_add_key_prefs(pgp_create_sig_t *sig)
|
||||
{
|
||||
|
@ -927,16 +928,17 @@ pgp_add_key_prefs(pgp_create_sig_t *sig)
|
|||
/* Hash algo prefs */
|
||||
pgp_write_ss_header(sig->output, 6, PGP_PTAG_SS_PREFERRED_HASH) &&
|
||||
pgp_write_scalar(sig->output, PGP_HASH_SHA256, 1) &&
|
||||
pgp_write_scalar(sig->output, PGP_HASH_SHA1, 1) &&
|
||||
pgp_write_scalar(sig->output, PGP_HASH_SHA384, 1) &&
|
||||
pgp_write_scalar(sig->output, PGP_HASH_SHA512, 1) &&
|
||||
pgp_write_scalar(sig->output, PGP_HASH_SHA224, 1) &&
|
||||
pgp_write_scalar(sig->output, PGP_HASH_SHA1, 1) && // Edit for Autocrypt/Delta Chat: due to the weak SHA1, it should not be preferred
|
||||
|
||||
/* Compression algo prefs */
|
||||
pgp_write_ss_header(sig->output, 2/*1+number of following items*/, PGP_PTAG_SS_PREF_COMPRESS) &&
|
||||
pgp_write_scalar(sig->output, PGP_C_ZLIB, 1) /*&& -- not sure if Delta Chat will support bzip2 on all platforms, however, this is not that important as typical files are compressed themselves and text is not that big
|
||||
pgp_write_scalar(sig->output, PGP_C_BZIP2, 1) -- if you re-enable this, do not forget to modifiy the header count*/;
|
||||
pgp_write_ss_header(sig->output, 3, PGP_PTAG_SS_PREF_COMPRESS) &&
|
||||
pgp_write_scalar(sig->output, PGP_C_ZLIB, 1) &&
|
||||
pgp_write_scalar(sig->output, PGP_C_BZIP2, 1);
|
||||
}
|
||||
#endif //////
|
||||
|
||||
unsigned
|
||||
pgp_add_key_features(pgp_create_sig_t *sig)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue