Bug fixes for RSA/Ed25519 signing (now works), syslog fixes, update TODO verification status

This commit is contained in:
Scott Kitterman
2018-02-17 02:10:21 -05:00
parent 246bdba859
commit 7b8fccf801
5 changed files with 40 additions and 30 deletions
+4 -1
View File
@@ -103,10 +103,13 @@ def read_keyfile(milterconfig, keytype):
keyfile = milterconfig.get('KeyFileEd25519')
try:
f = open(keyfile, 'r')
key = f.readlines
keylist = f.readlines()
except IOError as e:
if milterconfig.get('Syslog'):
syslog.syslog('Unable to read keyfile {0}. IOError: {1}'.format(keyfile, e))
raise
f.close()
key = ''
for line in keylist:
key += line
return key