diff options
author | Leah Neukirchen <leah@vuxu.org> | 2019-01-10 16:42:18 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2019-01-10 16:42:18 +0100 |
commit | 08a46e684855ad8c51c154f843fb1d8527045d33 (patch) | |
tree | 1c7dda7f6495a0904f0c9981a720149f6faf3069 /contrib | |
parent | d9aaac690357d55629b8bbdc885235f68e508783 (diff) | |
download | mblaze-08a46e684855ad8c51c154f843fb1d8527045d33.tar.gz mblaze-08a46e684855ad8c51c154f843fb1d8527045d33.tar.xz mblaze-08a46e684855ad8c51c154f843fb1d8527045d33.zip |
contrib/mverify: use gpg2
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/mverify | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/mverify b/contrib/mverify index d5b21e7..24db88d 100755 --- a/contrib/mverify +++ b/contrib/mverify @@ -1,7 +1,7 @@ #!/bin/sh # mverify MSG - verify a OpenPGP or SMIME message -# Needs gpg (for OpenPGP) and openssl (for SMIME). +# Needs gpg2 (for OpenPGP) and openssl (for SMIME). [ "$#" -eq 0 ] && set -- . @@ -14,7 +14,7 @@ signed && content && !signature && indent == si+2 { signature = 0+$1; type = $2 function q(a) { gsub("\\47", "\47\\\47\47", a); return "\47"a"\47" } END { if (type == "" && plain) { // guess plain text armored signature - exit(system("mshow -r " q(msg) " | gpg --verify")); + exit(system("mshow -r " q(msg) " | gpg2 --verify")); } else if (type == "") { print("No signature found.") exit(100) @@ -22,7 +22,7 @@ END { exit(system("mshow -r -O " q(msg) " " q(content) \ " | sed $DOS2UNIX | " \ " { mshow -O " q(msg) " " q(signature) \ - " | gpg --verify - /dev/fd/3; } 3<&0")) + " | gpg2 --verify - /dev/fd/3; } 3<&0")) } else if (type == "application/pkcs7-signature") { exit(system("mshow -r -O " q(msg) " " q(signed) \ " | openssl smime -verify")) |