Menu

#2 CRL test failure

open
nobody
None
5
2014-08-15
2003-08-29
No

After building on Windows (VC++6) with OpenSSL 0.9.7b
I get an abnormal program termination when trying to
use the CRLs (testPemIo).

I tracked it down to a 'revoked_stack' being a NULL
reference in x509_crl_object_set_revoked().

Simple patch follows: (I am not familiar with OpenSSL,
so this may not be a proper fix, but it seems to work for
me).

if ( !( PyTuple_Check( revoked_sequence ) ||
PyList_Check(revoked_sequence) ) )
{ PyErr_SetString( PyExc_TypeError, "inapropriate
type" ); goto error; }

+ if(!self->crl->crl->revoked)
+ self->crl->crl->revoked =
sk_X509_REVOKED_new_null();
revoked_stack = self->crl->crl->revoked;

Discussion


Log in to post a comment.