From de35e12fa7842f1348d7758e37b3fa8822ad693f Mon Sep 17 00:00:00 2001 From: jjtParadox Date: Fri, 10 Jan 2020 15:25:08 -0600 Subject: [PATCH] Fix byte encoded string bug in psk-frontend --- scripts/psk-frontend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/psk-frontend.py b/scripts/psk-frontend.py index 586f616..c69ea77 100755 --- a/scripts/psk-frontend.py +++ b/scripts/psk-frontend.py @@ -63,7 +63,7 @@ class PskFrontend(): ssl_version=ssl.PROTOCOL_TLSv1_2, ciphers='PSK-AES128-CBC-SHA256', psk=lambda identity: gen_psk(identity, self.hint), - hint=self.hint) + hint=self.hint.decode()) s2 = client(self.host, self.port) self.sessions.append((ssl_sock, s2))