Re:Decades-old GnuPG bug allowed hackers to spoof just about...
by xnyanta on Friday June 15, 2018 @01:38PM
(#17321753)
I'm shocked to hear that. What exactly is preventing it from be used as a real library?
[ Parent
| on HN ]
Re:Decades-old GnuPG bug allowed hackers to spoof just about...
by newnewpdro on Friday June 15, 2018 @03:14PM
(#17322664)
IIRC it's deliberately done this way for a number of information security reasons. If you look through the gnupg manual, there are references to things like "on old systems, this program must be setuid root so it may lock memory pages". Presumably it's desirable to require such a thing in an isolated process rather than the entire application utilizing gpg.
Since quality CLI implementations must be provided and exist anyways, why not provide the programmatic interface (libgpgme) as a thin veneer over it, as if the commands are being run from the shell?
Re:Decades-old GnuPG bug allowed hackers to spoof just about...
by vertex-four on Friday June 15, 2018 @02:07PM
(#17322057)
I believe that it's primarily that GPG has been implemented in such a way that console concerns invade most of the program, but I've never actually looked to verify.
Re:Decades-old GnuPG bug allowed hackers to spoof just about...
by binarycrusader on Friday June 15, 2018 @01:57PM
(#17321964)
Probably the license and/or lack of an appropriate licensing exception.
Re:Decades-old GnuPG bug allowed hackers to spoof just about...
by DSMan195276 on Friday June 15, 2018 @02:29PM
(#17322254)
Another posted indicate code issues, but I think you're right this is at least a big reason. GPG is GPL licensed, but GPGME is LGPL licensed. A library version of GPG would have to be GPL licensed as well, which would require any programs linking to it to also be GPL.
With that, for GPGME to be LPGL there can't be an actual coupling of code between the two or else GPGME would have to be GPL licensed itself. (Though you could argue the distinction here a bit murky)