Rename lacre.keycache to lacre.keyring
This will better reflect the fact we're doing more than just caching.
This commit is contained in:
parent
acbb2ab776
commit
9f3ad49f14
4 changed files with 5 additions and 5 deletions
|
@ -25,7 +25,7 @@ lacre.init_logging(conf.get_item("logging", "config"))
|
|||
LOG = logging.getLogger(__name__)
|
||||
|
||||
import lacre.mailgate as gate
|
||||
import lacre.keycache as kcache
|
||||
import lacre.keyring as kcache
|
||||
|
||||
|
||||
class MailEncryptionProxy:
|
||||
|
@ -53,7 +53,7 @@ class MailEncryptionProxy:
|
|||
return RESULT_OK
|
||||
|
||||
|
||||
def _init_controller(keys: kcache.KeyCache, tout: float = 2.5):
|
||||
def _init_controller(keys: kcache.KeyCache, tout: float = 5):
|
||||
proxy = MailEncryptionProxy(keys)
|
||||
host, port = conf.daemon_params()
|
||||
LOG.info(f"Initialising a mail Controller at {host}:{port}")
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
"""A cache of OpenPGP keys known to Lacre.
|
||||
"""Data structures and utilities to make keyring access easier.
|
||||
|
||||
IMPORTANT: This module has to be loaded _after_ initialisation of the logging
|
||||
module.
|
|
@ -40,7 +40,7 @@ from M2Crypto import BIO, SMIME, X509
|
|||
import logging
|
||||
import lacre.text as text
|
||||
import lacre.config as conf
|
||||
import lacre.keycache as kcache
|
||||
import lacre.keyring as kcache
|
||||
from lacre.mailop import KeepIntact, InlineOpenPGPEncrypt, MimeOpenPGPEncrypt
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from lacre.keycache import KeyCache
|
||||
from lacre.keyring import KeyCache
|
||||
|
||||
import unittest
|
||||
|
||||
|
|
Loading…
Reference in a new issue