Closed Bug 2054108 Opened 3 months ago Closed 1 month ago

Implement nsCMSMessage::GetEncryptionCert to show the encryption certificate to which an S/MIME message was encrypted

Categories

(MailNews Core :: Security: S/MIME, enhancement)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED
158 Branch

People

(Reporter: KaiE, Assigned: KaiE)

References

Details

Attachments

(1 file)

I notice that the suggested code in bug 229724 provides helper code that we could reuse for finding the recipient encryption certificate of an S/MIME message, to implement nsCMSMessage::GetEncryptionCert().

That would allow the message security info to show it. That's already hooked up with strings prepared, but is not yet implemented.

Assignee: nobody → kaie
Attachment #9606774 - Attachment description: WIP: Bug 2054108 - Implement nsCMSMessage::GetEncryptionCert. → Bug 2054108 - Implement nsCMSMessage::GetEncryptionCert. r=edicharry
Status: NEW → ASSIGNED
Target Milestone: --- → 157 Branch

I didn't land this because when I was trying to land it, I got compile errors on my (MacOS) build, even following a clobber:

E ld64.lld: error: undefined symbol: CERT_FindCertBySubjectKeyID
 9:42.05 E >>> referenced by nsCMS.cpp:161 (./../../../../../comm/mailnews/extensions/smime/nsCMS.cpp:161)
 9:42.05 E >>>               ../../../comm/mailnews/extensions/smime/Unified_cpp_extensions_smime0.o:(symbol nsCMSMessage::GetEncryptionCert(nsIX509Cert**)+0x170)
 9:42.05 E >>> referenced by nsCMS.cpp:161 (./../../../../../comm/mailnews/extensions/smime/nsCMS.cpp:161)
 9:42.05 E >>>               ../../../comm/mailnews/extensions/smime/Unified_cpp_extensions_smime0.o:(symbol nsCMSMessage::GetEncryptionCert(nsIX509Cert**)+0x124)
 9:42.08 E clang++: error: linker command failed with exit code 1 (use -v to see invocation)
 9:42.08 E make[4]: *** [../../../dist/bin/XUL] Error 1
 9:42.08 E make[3]: *** [toolkit/library/build/target] Error 2
 9:42.08 E make[3]: *** Waiting for unfinished jobs....

Thanks for catching the build error before landing. I had been too optimistic and had limited earlier try builds to linux.

New macos try build that adds to nss-extra.symbols as suggested:
https://treeherder.mozilla.org/jobs?repo=try-comm-central&revision=bdb4304358f0a446ca1d2ffcb63bc599c2555895

try build works, thanks!

Target Milestone: 157 Branch → 158 Branch

This failed to apply during landing.

rebased and merged

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/f13c32509770
Implement nsCMSMessage::GetEncryptionCert. r=edicharry

Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: