changeset a42659b8b057 in /home/hg/repos/gajim
author: Yann Leboulanger asterix@lagaule.org branches: details:http://hg.gajim.org/gajim?cmd=changeset;node=a42659b8b057 description: correctly decode string in view cert dialog
diffstat:
src/dialogs.py | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-)
diffs (17 lines):
diff -r c6d61947feab -r a42659b8b057 src/dialogs.py --- a/src/dialogs.py Thu Mar 31 22:46:44 2016 +0200 +++ b/src/dialogs.py Sat Apr 02 13:54:35 2016 +0200 @@ -5471,9 +5471,10 @@ 'sn': cert.get_serial_number(), 'icn': issuer.commonName, 'iorg': issuer.organizationName, 'iou': issuer.organizationalUnitName, - 'io': cert.get_notBefore(), 'eo': cert.get_notAfter(), - 'sha1': cert.digest('sha1'), - 'sha256': cert.digest('sha256')}) + 'io': cert.get_notBefore().decode('utf-8'), + 'eo': cert.get_notAfter().decode('utf-8'), + 'sha1': cert.digest('sha1').decode('utf-8'), + 'sha256': cert.digest('sha256').decode('utf-8')}) pix = gtkgui_helpers.get_icon_pixmap('application-certificate', size=32, quiet=True) if pix: