[Rpm-maint] [rpm-software-management/rpm] OpenPGP: Function `pgpParsePkts` supports only "PGP PUBLIC KEY BLOCK" block, "PGP SIGNATURE" is needed (Issue #2512)
Jaroslav Rohel
notifications at github.com
Sun May 21 18:42:37 UTC 2023
@nwalfield
Here is the PR https://github.com/rpm-software-management/librepo/pull/275 . It contains commit that moves the original implementation of OpenPGP using GpgMe into "gpg_gpgme.c" file and creates a new based on librpm API in the "gpg_rpm.c" file.
There is a function `check_signature` which internally calls `pgpParsePkts` to parse the ASCII armored OpenPGP signature.
I created the code based on the description in the "rpmgpg.h" header file and a bit of librpm reverse engineering. It's not very nice, but somehow it works. The code also implements a keyring.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2512#issuecomment-1556255299
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/2512/1556255299 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20230521/ccc8bf74/attachment.html>
More information about the Rpm-maint
mailing list