~zseil/pyopenssl/privatekey-callback-fixes

Viewing all changes in revision 128.

  • Committer: Ziga Seilnacht
  • Date: 2009-12-22 13:58:01 UTC
  • Revision ID: ziga.seilnacht@gmail.com-20091222135801-9cp4za4ft4mkun68
Additional error checks and a refcount fix for global_passphrase_callback.

There were two really big problems in this function: the first one was the
silent truncation of passphrases, the second was the refcounting bug,
which kept the passphrase in memory until the process exited. See tests
for details.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: