Re: On gmime signing: Was: compile error from current git master head
Jack via "Discussions of Pan source code hacking." <[email protected]> Tue, 12 Oct 2021 18:50:57 -0400
| Newsgroups | gmane.comp.gnome.apps.pan.devel |
|---|---|
| Message-ID | <[email protected]> |
--=-Ppt/xW2/s7NL86emHkWo
Content-Type: text/plain; charset=us-ascii; DelSp=Yes; Format=Flowed
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Lets try that signing again.
On 2021.10.12 18:42, Jack via Discussions of Pan source code hacking. =20
wrote:
> Well, it turns out I was having problems testing this because my own =20
> gnupg configuration was messed up. I have finally gotten that =20
> fixed, and just posted a test message to comp.security.pgp.test. The =20
> article got posted, and I can see (in Pan) that it has an attachment =20
> signature.asc, but I can't actually see the signature. I have =20
> uploaded my key to keyservers.ubuntu.com. In case it matters, I have =20
> signed this message and also attached my public key. Any ideas =20
> whether I'm missing something, or is there still something missing =20
> from Pan?
>=20
>=20
> On 2021.09.21 20:43, Jack via Discussions of Pan source code hacking. =20
> wrote:
>> I'm keeping the threading, but dropping the context. I think I =20
>> found a clue here to why gpg signing is broken.
>>=20
>> The call to message_add_signed_part in =20
>> pan/usenet-utils/mime-utils.cc fails on one of the gmime calls =20
>> because gpg_ctx (defined as " GMimeCryptoContext *gpg_ctx;" in =20
>> gpg.cc in the same directory is NOT a gmime crypto context.
>>=20
>> In terms of why that is the case, gpg_ctx seems to appear only in =20
>> those two files (gpg.cc and mime-utils.cc, and their .h files.) At =20
>> the very end of gpg.cc, there is:
>>=20
>> void init_gpg()
>> {
>> // gpg_ctx =3D g_mime_gpg_context_new (request_passwd, "gpg2");
>> if (!gpg_ctx) gpg_inited =3D false; else gpg_inited =3D true;
>> // =20
>> g_mime_gpg_context_set_auto_key_retrieve(GMIME_GPG_CONTEXT(gpg_ctx),true=
);
>> // =20
>> g_mime_gpg_context_set_always_trust(GMIME_GPG_CONTEXT(gpg_ctx),false);
>> // g_mime_gpg_context_set_use_agent(GMIME_GPG_CONTEXT(gpg_ctx), =20
>> false);
>> }
>>=20
>> which looks to me like nobody actually ever figured out how to make =20
>> this work, and commented out older attempts. (No, I have not yet =20
>> gone through git logs to see the actual history of this file.) I =20
>> see that the second line tests for gpg_ctx, but the only place it =20
>> ever gets set is the commented out first line, so it can't possibly =20
>> succeed. This is clearly going to take a good bit more digging - =20
>> and I just hope the presence of "gpg2" is for gnupg version 2, and =20
>> doesn't reflect on the gmime2 -> gmime3 migration.
>>=20
>> Jack
>=20
> _______________________________________________
> Pan-devel mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/pan-devel
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCAAdFiEESqvC39GTzDgsgynjy2RXY2/wKDIFAmFmEVEACgkQy2RXY2/w
KDKjEAf/eamItUst6V472cH+uM4mPsFa64mgMIvhYb0bcSqwTBqdjuXylaLmc6XE
HFIoH4rwgmehqLNzMstMnu+yOJRLf2Hzz75tNgG0yLDso7htPE2EgKiuu9DnEFuX
rBgXtgL9+Gria0YLEJsMOWSMcePgcZMUFV9T8yjjzDFOQHJxTrXmtr/TwFwFNlkw
gVe9LP9FG4ILnQjIBr1GEmy6Nc7Sk9vCcjAfO6fnLQCRzS0gVRPDs3+M0MFn0TmK
hdBVWKHb+jltQ5EIFxfwSCtFgTIRxc0cfu6qYbykFkKCoc3zgVmKZ77Y7xUIP4PA
Tt4Aj1rLPl0EmZuEViphQ/Nk2lYJJg=3D=3D
=3DFltg
-----END PGP SIGNATURE-----
--=-Ppt/xW2/s7NL86emHkWo
Content-Type: application/pgp-keys; name="ostroffjh-Rn4VEauK+AKRv+LV9MX5uj4/NUFDJEDkxddQ6fo/[email protected]"
Content-Disposition: attachment; filename="ostroffjh-Rn4VEauK+AKRv+LV9MX5uj4/NUFDJEDkxddQ6fo/[email protected]"
Content-Transfer-Encoding: 7bit
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQENBGFmB6oBCADRNm89sfYBJGuJGqhSJ4G0yO1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text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KUGFuLWRldmVs
IG1haWxpbmcgbGlzdApQYW4tZGV2ZWxAbm9uZ251Lm9yZwpodHRwczovL2xpc3RzLm5vbmdudS5v
cmcvbWFpbG1hbi9saXN0aW5mby9wYW4tZGV2ZWwK
--=-Ppt/xW2/s7NL86emHkWo--