Implement of "Protected Headers for Cryptographic E-mail". T742
ClosedPublic

Authored by knauss on Mar 31 2020, 12:57 AM.

Details

Summary

Currently protected headers are in draft status for an RFC:
https://datatracker.ietf.org/doc/draft-autocrypt-lamps-protected-headers/

Test Plan

run autotests successfully

Diff Detail

Repository
R94 PIM: Message Library
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
knauss created this revision.Mar 31 2020, 12:57 AM
Restricted Application added a project: KDE PIM. · View Herald TranscriptMar 31 2020, 12:57 AM
Restricted Application added a subscriber: kde-pim. · View Herald Transcript
knauss requested review of this revision.Mar 31 2020, 12:57 AM
mlaurent requested changes to this revision.Mar 31 2020, 5:16 AM
mlaurent added a subscriber: mlaurent.
mlaurent added inline comments.
messagecomposer/autotests/encryptjobtest.cpp
254

Mem leak as it never deleted no ?

messagecomposer/src/job/encryptjob.cpp
127

add missing space before (

messagecomposer/src/job/encryptjob.h
57

Message *skeletonMessage

messagecomposer/src/job/protectedheaders.cpp
70

add missing space before (

134

const auto &header ?

135

const

This revision now requires changes to proceed.Mar 31 2020, 5:16 AM
knauss updated this revision to Diff 79292.Apr 4 2020, 1:45 PM
knauss marked 5 inline comments as done.

Address laurents comments and improve the test a little bit.

knauss updated this revision to Diff 79295.Apr 4 2020, 1:58 PM
knauss marked an inline comment as done.

Upload the new patch ;)

knauss updated this revision to Diff 79663.Apr 8 2020, 6:52 PM

Add a job chain test.

mlaurent requested changes to this revision.Apr 9 2020, 4:47 AM
mlaurent added inline comments.
messagecomposer/autotests/encryptjobtest.cpp
274

endsWith('\n')

messagecomposer/autotests/setupenv.cpp
100

const auto

messagecomposer/src/job/protectedheaders.cpp
134

const auto headers = d->skeletonMessage->headers();
for (const auto &header : headers) {
}

fix missing space after "for" and '(' too

This revision now requires changes to proceed.Apr 9 2020, 4:47 AM
knauss updated this revision to Diff 79734.Apr 9 2020, 8:45 PM
knauss marked 3 inline comments as done.

fixed raised issues.

mlaurent accepted this revision.Apr 10 2020, 4:50 AM
This revision is now accepted and ready to land.Apr 10 2020, 4:50 AM
This revision was automatically updated to reflect the committed changes.