提交 84e51dbf 编写于 作者: H Hmvp 提交者: Roger Light

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: NHmvp <hmvp@hmvp.nl>
Bug: 436379
上级 1666b21e
......@@ -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():
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册