aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keyedit.c
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <[email protected]>2016-02-08 20:44:07 +0000
committerWerner Koch <[email protected]>2016-02-18 11:15:46 +0000
commit7e7f35a2d7d40267a4dd30791df77420efeebfa7 (patch)
treed485f1667c687e39e76f405eb2ecea1c49f29639 /g10/keyedit.c
parentgpg: Clean up dangling agent_open and agent_closed declarations. (diff)
downloadgnupg-7e7f35a2d7d40267a4dd30791df77420efeebfa7.tar.gz
gnupg-7e7f35a2d7d40267a4dd30791df77420efeebfa7.zip
gpgparsemail: Allow weirdly-mixed pkcs7 signatures.
* tools/gpgparsemail.c: Add and check info->signing_protocol_2. -- Some mailers in the wild will generate messages that have the a weird structure where they use the x- prefix in one part and drop it in another. For example, the main MIME part as a whole has: Content-Type: multipart/signed; protocol="application/x-pkcs7-signature" but the signature sub-part has: Content-Type: application/pkcs7-signature (or vice versa, where the x- prefix is in the sub-part but not the protocol= section on the main MIME object) This change also avoids allocating strings for these comparisons, since the const strings in question are already available in the built executable, and no dynamic labels are needed. === - 2 lines reformatted to keep them below 90 cols. - wk
Diffstat (limited to 'g10/keyedit.c')
0 files changed, 0 insertions, 0 deletions