[issue12803] SSLContext.load_cert_chain() should accept a password argument
Adam Simpkins
report at bugs.python.org
Wed Aug 24 20:35:03 CEST 2011
Adam Simpkins <adam at adamsimpkins.net> added the comment:
Good catch. Here's an updated patch to fix the missing decref in
_pwinfo_set()
The length check in _password_callback() applies to both callback
functions and predefined strings. The C API always uses a callback,
so _password_callback() is used even when the python caller has passed
in a string. We can't check the length in _pwinfo_set() since it depends
on the buffer length argument that openssl will pass to
_password_callback().
----------
Added file: http://bugs.python.org/file23029/ssl-password.3.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12803>
_______________________________________
More information about the Python-bugs-list
mailing list