Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#10 x509 serial numbers can be bigger than ints

closed-fixed
nobody
None
5
2008-03-12
2005-01-28
Gael Le Mignot
No

X509 serial numbers are bigger than C ints (or even C
long long). A Python long should be used to get/set
them, not a Python int. I wrote a patch for the
get_serial_number method, but not (yet) for the
set_serial method (I didn't need it, and since there is
no PyLong_ToString function in the Python/C API, it'll
be a bit more tricky).

Discussion

  • Gael Le Mignot
    Gael Le Mignot
    2005-01-28

    Patch for crypto_X509_get_serial_number

     
    Attachments
  • Jp Calderone
    Jp Calderone
    2008-03-07

    Logged In: YES
    user_id=366566
    Originator: NO

    I've applied the attached patch and also added support for Python longs to set_serial_number in my pyOpenSSL fork at http://launchpad.net/pyopenssl.

    The changeset is revision 33.

     
  • Jp Calderone
    Jp Calderone
    2008-03-12

    • status: open --> closed-fixed