πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #89377

Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7

#89377
From: Russ Allbery
Date: Thu, 26 May 2022 15:00
33 lines
2496 bytes
Julien Γ‰LIE <iulius@nom-de-mon-site.com.invalid> writes:

> gpg seems to check its arguments in order, and it exits with status 2 if
> an argument is not supported.  Why not just run:

>     gpg --allow-weak-digest-algos --version

> If the option is supported, gpg displays several lines and exits
> gracefully.  Otherwise, it raises an error:

> gpg: Invalid option "--allow-weak-digest-algos"
> zsh: exit 2     gpg --allow-weak-digest-algos --version

Thanks, yes, that was exactly the kind of thing I was hoping for but was
too groggy from travel to think through.

I wonder if we could do something like that in configure and pass down
something to pgpverify via INN::Config to tell it whether or not to add
that flag.  This will probably only be needed temporarily, but it looks
like we have at least one user who is going to run into that version
bound, so there will probably be more.

I think it's safe to make the assumption that any version of GnuPG too old
to support that flag will still support the weak digest algorithms,
although I admit that while I researched this while updating PGP::Sign, I
have now forgotten all of my conclusions other than the version bound I
decided to adopt.

-- 
Russ Allbery (eagle@eyrie.org)             <https://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <https://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <87v8tsgwzd.fsf@hope.eyrie.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <t6jf6o$1i26$1@bwh01.blueworldhosting.com> <87zgj5xukm.fsf@hope.eyrie.org> <t6mj2a$coi$1@bwh01.blueworldhosting.com> <87ee0hxg87.fsf@hope.eyrie.org> <87a6b5xfv7.fsf@hope.eyrie.org> <t6mkfu$fsu$1@bwh01.blueworldhosting.com> <875yltxexv.fsf@hope.eyrie.org> <t6nhlc$1fm8c$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <87v8tsgwzd.fsf@hope.eyrie.org>
Subject: Re: INN 2.7.0 rc1 - pgpverify issue - CentOS 7
Date: Thu, 26 May 2022 08:00:22 -0700
From: Russ Allbery <eagle@eyrie.org>
References: <t6jf6o$1i26$1@bwh01.blueworldhosting.com> <87zgj5xukm.fsf@hope.eyrie.org> <t6mj2a$coi$1@bwh01.blueworldhosting.com> <87ee0hxg87.fsf@hope.eyrie.org> <87a6b5xfv7.fsf@hope.eyrie.org> <t6mkfu$fsu$1@bwh01.blueworldhosting.com> <875yltxexv.fsf@hope.eyrie.org> <t6nhlc$1fm8c$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: hope.eyrie.org; logging-data="23672"; mail-complaints-to="news@eyrie.org"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:ohTdHHBJhJAQeDn2ShJvtgebZ5U=