Find
C
ase-sensitive
R
egexp search
Path
Showing
48f5587e
from
2026-04-05
:
Backed out changeset 1c98edcb1957 (bug
2027629
) for causing test failures. r=backout
comm-central
/
mailnews
/
mime
/
cthandlers
/
pgpmime
Navigation
Enable keyboard shortcuts
Name
Description
Size
Coverage
components.conf
838
-
moz.build
448
-
nsPgpMimeMimeContentTypeHandler.h
1089
-
nsPgpMimeProxy.cpp
Overall description =================== There are three components involved here: MIME, a proxy object (nsPgpMimeProxy) and Enigmail (or any other add-on that registered a decryption object with "@mozilla.org/mime/pgp-mime-js-decrypt;1"). MIME creates and initialises the proxy object in nsPgpMimeProxy::Init(). This creates a decryption object, for example EnigmailMimeDecrypt. When MIME wants to decode something, it calls the Write() method of the proxy, which in turn calls OnDataAvailable() on the decryptor. The decryptor obtains the encrypted data form the proxy via the proxy's Read() method. The decryptor decrypts the data and passes the result back to the proxy, using the OutputDecryptedData() method or by passing a stream to the proxy's OnDataAvailable() method, in which the proxy will read from that stream. The proxy knows how to interface with MIME and passes the data on using some function pointers it got given via nsPgpMimeProxy::SetMimeCallback().
20359
-
nsPgpMimeProxy.h
2043
-