This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 simpkins
收信人 eric.araujo, giampaolo.rodola, janssen, pitrou, simpkins
日期 2011-08-21.18:24:36
SpamBayes Score 1.4237004e-08
Marked as misclassified
Message-id <1313951076.98.0.991686855127.issue12803@psf.upfronthosting.co.za>
In-reply-to
内容
> It seems a bit strange to me to accept string types or callable in the 
> same argument.  If it just supported strings, people could still write
> password=somefunction(), right?

The function is only called if the private key is encrypted and a 
password is necessary.  This allows the code to only prompt for a 
password if it is actually needed.

This also parallels the OpenSSL C API, which only accepts a function to
get the password.  I added support for plain strings as a convenience.  
The string argument will be ignored if the file is not encrypted.
历史
日期 用户 动作 参数
2011-08-21 18:24:37simpkins修改recipients: + simpkins, janssen, pitrou, giampaolo.rodola, eric.araujo
2011-08-21 18:24:36simpkins修改messageid: <1313951076.98.0.991686855127.issue12803@psf.upfronthosting.co.za>
2011-08-21 18:24:36simpkins链接issue12803 messages
2011-08-21 18:24:36simpkins创建