Re: Missing get0_signers in 0.17 and "header too long:asn1_lib.c" with 0.13 or 0.17 with p7m file

Heikki Toivonen <[email protected]>
Newsgroups gmane.comp.python.cryptography
Message-ID <[email protected]>
Marco Bizzarri wrote:
> I'm sorry to post again on this topic. Reading from the changelog in
> 0.17 I understand get0_signer has been removed since its implementation
> was wrong. Is there any plan to re-add it soon? Otherwise, could someone
> provide hints on how it should be reimplemented in order to obtain a
> proper behaviour and not crashing python anymore?

I did some experimenting and here is how it's looking currently:

I can make the code work by not freeing the returned X509 stack.
However, this almost certainly makes the code leak memory.

The problem with the free seems to be that we should be freeing the
stack, but not the entries in the stack. Unfortunately the freeing
function frees both. Maybe there is another version that only frees the
stack?

I haven't checked everything yet, but I can't spend more time on this at
the moment.

-- 
  Heikki Toivonen
signature.asc (application/pgp-signature, 254 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFtSKkb8x8KoP+JuwRAs7pAKCXSeSfuwF6bEONi8AQCAuhpQ9EPgCeM3CB
z3Cu8Vh6YaJwppYs11z/CDM=
=na3y
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.