Merge branch 'master' of ssh://github.com/mrash/fwknop

This commit is contained in:
Michael Rash 2017-02-20 22:09:56 -05:00
commit bc1505934e

View File

@ -883,7 +883,7 @@ class Fko:
"""Returns the descriptive error message string for the
given error code value.
"""
return _fko.errstr(code)
return _fko.errstr(val)
# FKO type lookup functions.
@ -1009,8 +1009,8 @@ class Fko:
dts = "ECB"
elif val == FKO_ENC_MODE_CBC:
dts = "CBC"
elif val == FKO_ENC_MODE_CBF:
dts = "CBF"
elif val == FKO_ENC_MODE_CFB:
dts = "CFB"
elif val == FKO_ENC_MODE_PCBC:
dts = "PCBC"
elif val == FKO_ENC_MODE_OFB: