Skip Menu |

This queue is for tickets about the Crypt-GPG CPAN distribution.

Report information
The Basics
Id: 124020
Status: new
Priority: 0/
Queue: Crypt-GPG

People
Owner: AGUL [...] cpan.org
Requestors: LITTLEFOX [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.64
Fixed in: (no value)



Subject: [Patch] sign without armor
Hello, please apply the attached patch to allow $gpg->sign() when armor is disabled. This is working for our test case, but not tested heavily. Thanks and best regards, Moritz "LittleFox" Grosch
Subject: crypt-gpg.patch
--- old/Crypt/GPG.pm 2014-09-18 21:23:58.000000000 +0200 +++ new/Crypt/GPG.pm 2018-01-05 14:39:16.196000277 +0100 @@ -112,7 +112,10 @@ finish $h; my $info; - if ($self->clearsign) { + if(!$self->armor) { + $info = $out; + } + elsif ($self->clearsign) { $out =~ /(-----BEGIN PGP SIGNED MESSAGE-----.*-----END PGP SIGNATURE-----)/s; $info = $1; }