Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/external/bsd/netpgp/dist/bindings/lua si...



details:   https://anonhg.NetBSD.org/src/rev/a62f244ee72c
branches:  trunk
changeset: 318579:a62f244ee72c
user:      sevan <sevan%NetBSD.org@localhost>
date:      Sun Apr 29 23:30:59 2018 +0000
description:
sign_file function expects 5 parameters, include the output filename.

diffstat:

 crypto/external/bsd/netpgp/dist/bindings/lua/netpgp.lua |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 59116ab50839 -r a62f244ee72c crypto/external/bsd/netpgp/dist/bindings/lua/netpgp.lua
--- a/crypto/external/bsd/netpgp/dist/bindings/lua/netpgp.lua   Sun Apr 29 19:47:34 2018 +0000
+++ b/crypto/external/bsd/netpgp/dist/bindings/lua/netpgp.lua   Sun Apr 29 23:30:59 2018 +0000
@@ -32,7 +32,7 @@
 -- command line args
 dofile "optparse.lua"
 
-opt = OptionParser{usage="%prog [options] file", version="20090711"}                           
+opt = OptionParser{usage="%prog [options] file", version="20180428"}                           
 
 opt.add_option{"-s", "--sign", action="store_true", dest="sign", help="--sign [--detached] [--armour] file"}
 opt.add_option{"-v", "--verify", action="store_true", dest="verify", help="--verify [--armour] file"}
@@ -89,7 +89,7 @@
        end
        if options.sign then
                -- detached signature
-               netpgp.sign_file(pgp, args[1], output, armour, detached)
+               netpgp.sign_file(pgp, args[1], args[1] .. ".sig", armour, detached)
                os.execute("ls -l " .. args[1] .. ".sig")
        end
        if options.verify then



Home | Main Index | Thread Index | Old Index