On 03/29/2011 12:13 AM, Antonio Araujo Brett wrote:
[snip]
> long digidoc::X509Cert::getSerial().
>
> This function uses OpenSSL ASN1_INTEGER_get to return serial as long.
> What do you think about getting certificate serial as hexadecimal or
> decimal string using OpenSSL BIGNUM through ASN1_INTEGER_to_BN()?.
> Once you get BIGNUM you could use the appropiate bn function in order
> to get serial in hex or dec. This could avoid throwing an exception on
> Libdigidocpp when it reads big serial numbers in some machines. It
> could provide backward compatibility.
I think it would be a nice fix. Do you have a patch for that?
(Sorry for the extremely late reply.)
--
Kalev