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;
}