Re: [Enigmail] Importing PGP key via code

Patrick Brunschwig <[email protected]> Mon, 2 Nov 2020 13:29:56 +0100
Newsgroups gmane.comp.mozilla.enigmail.general
Message-ID <[email protected]>
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--===============6803737841234984804==
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature";
 boundary="84w3CJQEdfQJAD3sxNE7K78WOm8EXsLW2"

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--84w3CJQEdfQJAD3sxNE7K78WOm8EXsLW2
Content-Type: multipart/mixed; boundary="lOu9CNXR5OavzpaKFprqmLs7MLGC93YGn";
 protected-headers="v1"
From: Patrick Brunschwig <[email protected]>
To: Enigmail user discussion list <[email protected]>
Cc: it_support <[email protected]>
Message-ID: <[email protected]>
Subject: Re: [Enigmail] Importing PGP key via code

--lOu9CNXR5OavzpaKFprqmLs7MLGC93YGn
Content-Type: text/plain; charset=windows-1252
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

On 01/11/2020 19:29, it_support via enigmail-users wrote:
> Hello,
>=20
> i have asked bugzilla how to import a PGP key file via Javascript (i wi=
ll run it from the Thunderbird console).
>=20
> But they told me they don't give add-on support there. So i guess i hav=
e to ask you about this.

That answer is wrong. The code is in Thunderbird, and not in an add-on.
>=20
> Anyway, i have found the functions i need to call to do this:
>=20
> it's getGpgKeyData
>=20
> from https://hg.mozilla.org/comm-central/file/595dddfbd18b/mail/extensi=
ons/openpgp/content/modules/cryptoAPI/gnupg-keylist.jsm
>=20
> or  importKeyFromFileAPI
>=20
> from https://hg.mozilla.org/comm-central/file/595dddfbd18b/mail/extensi=
ons/openpgp/content/modules/cryptoAPI/gnupg-key.jsm
>=20
> But both of them are not implemented. Indeed they do nothing other than=
 throwing a "Not implemented" exception.
>=20
> Are you going to implement those methods soon? Or do you suggest anothe=
r solution?

I can't give a definitive answer because I'm not a Thunderbird staff
member. But from my POV it's most unlikely that these functions will
ever be implemented. Thunderbird uses RNP, and does not support GnuPG
(apart for some basic functions for signing and decryption). I think
these files are a left-over from the code imported from Thunderbird and
are not used anymore.

-Patrick



--lOu9CNXR5OavzpaKFprqmLs7MLGC93YGn--

--84w3CJQEdfQJAD3sxNE7K78WOm8EXsLW2
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

wsFzBAEBCAAGBQJfn/vEACEJENsRh7ndX2k7FiEET5+J9VBawdGiYGMc2xGH
ud1faTsEcw/6AjJMUuNK9C/NngQMncQaaFDfrn73dB5q8oBmWU9YsqfRnsPt
veZDVAmL0m/fsUDksKQRkXJVQ3O9MviqaR/y9XYEnknpencooLuhSFli5Qte
b7QVY8OybouZlz3zoeM3NDCRR8mwRxFxyNw1aFDKb+zPpCxVLLPX5yHQSWf8
41mPTH7WKMYpRq411c/L+OFqZvtxbaR/cChWHA5IEiDOYpBGySsd6Gc7SWtJ
JgO1+quHOelOE7HWGQOnY7m6YuAii6VvMwasQTwu+0ZyN+MPuIZGu2o6/Lrc
aNL/TiWjWTLY4HLczdOI2I85LYbzts3KVpt7gl5MZVrDAfdxP5W7giuakYEO
aSJ7WPCDvIGk20588kq04AhU0QLlpiVWFJmWBICX92sf3wGdzpv2zBoRhesn
mL9DlFzjEaK1x+CI4wg4eXhTy0PCbBuypEnw9StzgE5xPzNbRQGSS/H8lKZW
pdYENY6O7zJkEXVI+U6MfQOOxrzRAvpeO/JMUU91bgBq7YlHSO7Hd4yZM7v+
QLUrcELiNv+z9wPuiHKZNysKi/wsrZFtyHglraOc2X53872bBNqWWe9jPmpb
ibQ0EYo/nAKXfPfsYiuQfFCo3sPICyGm8vihl3mF8cy0CI23nSGhzAdLqPa9
seXynfk28HXnkWjZ2mPz9h3qJGrH60TqKA8=
=CILX
-----END PGP SIGNATURE-----

--84w3CJQEdfQJAD3sxNE7K78WOm8EXsLW2--


--===============6803737841234984804==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
enigmail-users mailing list
[email protected]
To unsubscribe or make changes to your subscription click here:
https://admin.hostpoint.ch/mailman/listinfo/enigmail-users_enigmail.net

--===============6803737841234984804==--