check-in
This commit is contained in:
parent
c1d4b53185
commit
1d84581a79
10
gpg/kant.py
10
gpg/kant.py
@ -33,6 +33,15 @@ import gpgme # non-stdlib; Arch package is "python-pygpgme"
|
|||||||
#
|
#
|
||||||
#Thanks again!
|
#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):
|
def serverParser(uri):
|
||||||
# https://en.wikipedia.org/wiki/Key_server_(cryptographic)#Keyserver_examples
|
# https://en.wikipedia.org/wiki/Key_server_(cryptographic)#Keyserver_examples
|
||||||
# We need to make a mapping of the default ports.
|
# We need to make a mapping of the default ports.
|
||||||
@ -218,6 +227,7 @@ def main():
|
|||||||
args = verifyArgs(vars(rawargs.parse_args()))
|
args = verifyArgs(vars(rawargs.parse_args()))
|
||||||
import pprint
|
import pprint
|
||||||
pprint.pprint(args)
|
pprint.pprint(args)
|
||||||
|
getKeys(args)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
Loading…
Reference in New Issue
Block a user