Initial work for sending encrypted OpenPGP mail
Categories
(MailNews Core :: Security: OpenPGP, enhancement)
Tracking
(Not tracked)
People
(Reporter: KaiE, Assigned: KaiE)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 1 obsolete file)
1.10 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
66.50 KB,
patch
|
KaiE
:
review+
|
Details | Diff | Splinter Review |
I'd like to land initial code that hooks up the backend encryption code, and adds the necessary RNP bindings.
Because we don't have UI hooked up yet, my initial patch forces to always send encrypted, if the MOZ_OPENPGP build option is enabled. If keys for all recipients cannot be found automatically, sending will fail.
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
Assignee | ||
Comment 3•5 years ago
|
||
This fixes a bug in keyObj.jsm, in both getSigningValidity() and getEncryptionValidity(), which I mentioned to Patrick (elsewhere).
If RNP imports a key, which has signatures on it, but the signing keys are unknown (not present in key store), then RNP will treat those keys as invalid, and will reject to encrypt with them. This is an acknowledged bug, and I assume we'll get a fix for that. Until then, only experiment using cleaned up keys, which only have a self-signature.
(Tracked upstream at: https://github.com/rnpgp/rnp/issues/1001 )
Patch enables RNP library error logging to stderr.
The patch loads the enigmail code from enigmailMsgComposeHelper.js and enigmailMsgComposeOverlay.js, however the dynamic loading of some UI overlays is disabled.
Also code that attempts to update UI status elements is disabled.
Updated•5 years ago
|
Comment 4•5 years ago
|
||
Comment 5•5 years ago
|
||
Updated•5 years ago
|
Assignee | ||
Comment 6•5 years ago
|
||
(In reply to Patrick Brunschwig from comment #5)
if you want to stay in line with the rest of the code, use
EnigmailLog.DEBUG().
I'm using console output also as a way to learn about the flow of the enigmail code, and the involved objects.
Only console functions allow me to dump objects, and allow me to click/expand their structure, which is why I currently prefer to use that.
Using console.debug is a good suggestion.
Assignee | ||
Comment 7•5 years ago
|
||
updated to use console.debug as requested
Pushed by kaie@kuix.de:
https://hg.mozilla.org/comm-central/rev/0767ec016375
Initial work for sending encrypted OpenPGP mail, loader code. r=mkmelin DONTBUILD
https://hg.mozilla.org/comm-central/rev/64408ab633c4
Initial work for sending encrypted OpenPGP mail. r=patrick DONTBUILD
Assignee | ||
Updated•5 years ago
|
Description
•