]> git.michaelhowe.org Git - packages/p/paho-mqtt.git/commitdiff
Fix parsing subjectAltName for SSL connections
authorHmvp <hmvp@hmvp.nl>
Fri, 11 Apr 2014 13:33:54 +0000 (15:33 +0200)
committerRoger Light <roger@atchoo.org>
Sat, 7 Jun 2014 20:01:49 +0000 (16:01 -0400)
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 <hmvp@hmvp.nl>
Bug: 436379

src/paho/mqtt/client.py

index 32fc2cb47bc6f080ca03b4a5a08bcda08f116d6c..7564ffd077ad47ae0ab7983f842101b024dde145 100755 (executable)
@@ -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():