1
0
Fork 0
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:
B. Petersen 2018-02-17 18:41:12 +01:00
parent 3bac36d833
commit fe8f8605c0
5 changed files with 27 additions and 11 deletions

View file

@ -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;
}