Typo. It is rather obvious that this code isn't tested :/

This commit is contained in:
Antoine Pitrou 2010-10-13 10:45:16 +00:00
parent 1ab19ca161
commit 8060399654
1 changed files with 1 additions and 1 deletions

View File

@ -1067,7 +1067,7 @@ else:
raise ValueError("check_hostname needs a SSL context with "
"either CERT_OPTIONAL or CERT_REQUIRED")
if key_file or cert_file:
context.load_cert_chain(certfile, keyfile)
context.load_cert_chain(cert_file, key_file)
self._context = context
self._check_hostname = check_hostname