🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #182541

Re: PGP 2.6 exit status values

#182541
From: Igenlode
Date: Sun, 06 Mar 2005 21:22
62 lines
3484 bytes
On 3 Mar 2005 BiKiKii Admin wrote:

> On Wed, 02 Mar 2005, Igenlode wrote:

[snip]

> >So what is the meaning of this exit code? Should the program be
> >checking for "exit code value not above 1" rather than "exit code
> >value equals zero" in order to detect whether the PGP call succeeded?
> >
> 
> Here are the exit codes I have, you go from there.
[snip]
> General Errors
> 
> Error            Explanation
> 0               Exit Ok, No Error
> 1               invalid file
> 2               File Not Found

[snip]

> Decode Errors
> 
> Error             Description
> 30               Signature Check Error
> 31               Public Key Decryption Error
> 32               Decryption Error
> 33               Decompression Error
> 
<sigh> Well, I don't know what's going on.

It occurred to me that it might be something to do with the innermost
file's having been encoded by GnuPG, but I tested the software with a
message from the blackhole nym server and got the same result. I get a
return code of 1 on *every* successful decryption of incoming messages
during the multi-stage process, with (as expected) a 31 for attempting
to decrypt a public key encryption as if it were a single-key
encryption, and a 32 for using the wrong passphrase (e.g. when testing
with a message not addressed to that nym).

What, if anything, it means by 'invalid file' I can't guess.

The syntax being used is "pgp verbose=0 +batchmode <filename> -z
"passphrase" -o <filename> " plus OS-level redirection to channel
command-line error messages into a bug record, or "pgp verbose=0
+batchmode <filename> -z "passphrase" -o <filename> +PUBRING=<public
keyring>" plus redirection, for the innermost layer. Both the input and
output (and bug) files exist after the command has been run, and are
therefore presumably 'valid'.

I shall just have to ignore an error level of 1, I suppose; it never
caused problems until I started actually checking it... (I used to
check for the existence of the output file -- but this had to be
hardwired in separately for every different expected output in the
program, so it seemed easier to check exit code status!)
-- 
Igenlode Wordsmith <Igenlode_W@nym.alias.net>

See my film reviews at  http://comments.imdb.com/user/ur1448185/comments
                                    *latest update 27 Feb 2005*
Technical Details
Message-ID: <20050307003529.12649.qmail@riot.eu.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.pgp.20140428.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!proxad.net!news.wiretrip.org!news.dizum.com!sewer-output!mail2news-x2!mail2news
References: <20050303013226.14475.qmail@riot.eu.org> <21E21DE4FD7@bikikii.ath.cx>

Show Full Headers
Complete Article Headers
Message-ID: <20050307003529.12649.qmail@riot.eu.org>
Subject: Re: PGP 2.6 exit status values
Date: Sun, 06 Mar 2005 21:22:02 GMT
From: Igenlode <Use-Author-Supplied-Address-Header@[127.1]>
References: <20050303013226.14475.qmail@riot.eu.org> <21E21DE4FD7@bikikii.ath.cx>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.pgp.20140428.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!proxad.net!news.wiretrip.org!news.dizum.com!sewer-output!mail2news-x2!mail2news
Author-Supplied-Address: tethys <AT> blackhole <DOT> riot <DOT> eu <DOT> org
Newsgroups: alt.privacy.anon-server,alt.privacy.pgp
Reply-To: Igenlode_W@nym.alias.net
Organization: The Ivory Tower ( http://curry.250x.com/Tower )
Mail-To-News-Contact: abuse@dizum.com
Lines: 62