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 Th...



details:   https://anonhg.NetBSD.org/src/rev/0e01793730a7
branches:  trunk
changeset: 318593:0e01793730a7
user:      sevan <sevan%NetBSD.org@localhost>
date:      Mon Apr 30 22:17:46 2018 +0000
description:
The secret key is required for decryption and signing. Indicate it by setting
the "need seckey" variable before calling init.

diffstat:

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

diffs (22 lines):

diff -r 91600331d4ac -r 0e01793730a7 crypto/external/bsd/netpgp/dist/bindings/lua/netpgp.lua
--- a/crypto/external/bsd/netpgp/dist/bindings/lua/netpgp.lua   Mon Apr 30 21:40:59 2018 +0000
+++ b/crypto/external/bsd/netpgp/dist/bindings/lua/netpgp.lua   Mon Apr 30 22:17:46 2018 +0000
@@ -32,7 +32,7 @@
 -- command line args
 dofile "optparse.lua"
 
-opt = OptionParser{usage="%prog [options] file", version="20180428"}                           
+opt = OptionParser{usage="%prog [options] file", version="20180430"}                           
 
 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"}
@@ -72,6 +72,9 @@
 if options.homedir then
        netpgp.homedir(pgp, options.homedir)
 end
+if options.decrypt or options.sign then
+netpgp.setvar(pgp, "need seckey", 1)
+end
 
 -- initialise everything
 netpgp.init(pgp)



Home | Main Index | Thread Index | Old Index