From 1d84581a794d793007a2e5e8dbae4a96f81a6ab7 Mon Sep 17 00:00:00 2001 From: brent s Date: Mon, 28 Aug 2017 14:56:45 -0400 Subject: [PATCH] check-in --- gpg/kant.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gpg/kant.py b/gpg/kant.py index f8a8741..8216a5f 100755 --- a/gpg/kant.py +++ b/gpg/kant.py @@ -33,6 +33,15 @@ import gpgme # non-stdlib; Arch package is "python-pygpgme" # #Thanks again! +def getKeys(args): + # Get our concept + os.environ['GNUPGHOME'] = args['gpgdir'] + gpg = gpgme.Context() + # Do we have the key already? If not, fetch. + #for k in args['rcpts']: + # if k['type'] + return(gpg) + def serverParser(uri): # https://en.wikipedia.org/wiki/Key_server_(cryptographic)#Keyserver_examples # We need to make a mapping of the default ports. @@ -218,6 +227,7 @@ def main(): args = verifyArgs(vars(rawargs.parse_args())) import pprint pprint.pprint(args) + getKeys(args) if __name__ == '__main__': main()