From 84e51dbf8ef31c20b54bee41849c0964cfc88151 Mon Sep 17 00:00:00 2001 From: Hmvp Date: Fri, 11 Apr 2014 15:33:54 +0200 Subject: [PATCH] Fix parsing subjectAltName for SSL connections Host certificates that have the subjectAltName needs this to be parsed correctly when used with tls_set(cert) Change-Id: Iacd70e81278b7cbb6eba69076fb6ec8dbcc36084 Signed-off-by: Hmvp Bug: 436379 --- src/paho/mqtt/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/paho/mqtt/client.py b/src/paho/mqtt/client.py index 32fc2cb..7564ffd 100755 --- a/src/paho/mqtt/client.py +++ b/src/paho/mqtt/client.py @@ -2149,7 +2149,7 @@ class Client(object): san = cert.get('subjectAltName') if san: have_san_dns = False - for ((key, value),) in san: + for (key, value) in san: if key == 'DNS': have_san_dns = True if value.lower() == self._host.lower(): -- 2.39.5