From eac71fc1109f2edc6b71e62a6cff38d762bebe63 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Tue, 25 Sep 2012 11:49:15 -0400 Subject: expanded pylint coverage --- src/lib/Bcfg2/Encryption.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/lib/Bcfg2/Encryption.py') diff --git a/src/lib/Bcfg2/Encryption.py b/src/lib/Bcfg2/Encryption.py index 5eb7ffe8e..eb2841bb5 100755 --- a/src/lib/Bcfg2/Encryption.py +++ b/src/lib/Bcfg2/Encryption.py @@ -33,6 +33,8 @@ Rand.rand_seed(os.urandom(1024)) def _cipher_filter(cipher, instr): + """ M2Crypto reads and writes file-like objects, so this uses + StringIO to pass data through it """ inbuf = StringIO(instr) outbuf = StringIO() while 1: @@ -161,6 +163,7 @@ def get_algorithm(setup): return setup.cfp.get("encryption", "algorithm", default=ALGORITHM).lower().replace("-", "_") + def get_passphrases(setup): """ Get all candidate encryption passphrases from the config file. -- cgit v1.2.3-1-g7c22