Subject: | ASN1_UTCTIME vs. ASN1_TIME in X509_get_not(Before|After) |
In SSLeay.xs there are currently functions:
ASN1_UTCTIME * X509_get_notBefore(cert)
ASN1_UTCTIME * X509_get_notAfter(cert)
which was correct in 0.9.5 and earlier; with later openssl versions it should be
ASN1_TIME * X509_get_notBefore(cert)
ASN1_TIME * X509_get_notAfter(cert)
I am not sure how to handle this - maybe some #ifdef ?
I am not sure if it matters at all as we consired in Net::SSLeay the return value as any other pointer.
Side note: ASN1_UTCTIME is able to handle only dates from 1950-2049
--
kmx
ASN1_UTCTIME * X509_get_notBefore(cert)
ASN1_UTCTIME * X509_get_notAfter(cert)
which was correct in 0.9.5 and earlier; with later openssl versions it should be
ASN1_TIME * X509_get_notBefore(cert)
ASN1_TIME * X509_get_notAfter(cert)
I am not sure how to handle this - maybe some #ifdef ?
I am not sure if it matters at all as we consired in Net::SSLeay the return value as any other pointer.
Side note: ASN1_UTCTIME is able to handle only dates from 1950-2049
--
kmx