another check-in, about to implement searching/fetching

This commit is contained in:
brent s 2017-08-28 17:09:12 -04:00
parent 1d84581a79
commit ef948d877b

View File

@ -38,8 +38,13 @@ def getKeys(args):
os.environ['GNUPGHOME'] = args['gpgdir'] os.environ['GNUPGHOME'] = args['gpgdir']
gpg = gpgme.Context() gpg = gpgme.Context()
# Do we have the key already? If not, fetch. # Do we have the key already? If not, fetch.
#for k in args['rcpts']: for k in args['rcpts'].keys():
# if k['type'] if args['rcpts'][k]['type'] == 'fpr':
# It's a key ID.
pass
elif args['rcpts'][k]['type'] == 'email':
# We need to actually do a lookup on the email address.
pass
return(gpg) return(gpg)


def serverParser(uri): def serverParser(uri):