mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-06 03:50:08 +02:00
parse Autocrypt-Prefer-Encrypt from private key armor header
This commit is contained in:
parent
3bac36d833
commit
fe8f8605c0
5 changed files with 27 additions and 11 deletions
|
@ -811,7 +811,7 @@ char* mrmsg_get_setupcodebegin(mrmsg_t* msg)
|
|||
goto cleanup;
|
||||
}
|
||||
|
||||
if( !mr_split_armored_data(buf, &buf_headerline, &buf_setupcodebegin, NULL)
|
||||
if( !mr_split_armored_data(buf, &buf_headerline, &buf_setupcodebegin, NULL, NULL)
|
||||
|| strcmp(buf_headerline, "-----BEGIN PGP MESSAGE-----")!=0 || buf_setupcodebegin==NULL ) {
|
||||
goto cleanup;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue