Exit status and failed decryption of session key

Florian Weimer Florian.Weimer@rus.uni-stuttgart.de
23 Apr 2000 10:25:04 +0200

Frank Tobin <ftobin@uiuc.edu> writes:

> > Yes, but status-fd is remarkably terse when it's creating some OpenPGP
> > messages. May I assume that in this case, the exit status indicates
> > whether the operation was successfull or not? I certainly do not want
> > to parse standard error output. :-/
> The question is what does "successful" mean? There can be warnings, total
> failure, partial success/failure, etc. Your wrapper really should try to
> do some processing and parse status-fd.
But there isn't anything to parse in this case! deneb:~$ dd if=/dev/zero count=1 | gpg --batch --output=- --status-fd=2 --encrypt -r fw@deneb > /dev/null 1+0 records in 1+0 records out deneb:~$ dd if=/dev/zero count=1 | gpg --batch --output=- --status-fd=2 --encrypt -r non-existing-id > /dev/null 1+0 records in 1+0 records out gpg: non-existing-id: skipped: public key not found gpg: [stdin]: encryption failed: public key not found deneb:~$ I think 1.0.1e is a bit better (it indicates successful encryption, at least). -- Florian Weimer Florian.Weimer@RUS.Uni-Stuttgart.DE University of Stuttgart http://cert.uni-stuttgart.de/ RUS-CERT +49-711-685-5973/fax +49-711-685-5898 http://ca.uni-stuttgart.de:11371/pks/lookup?op=get&search=0xC06EC3B5