Hi Team,
I found the following API to get the
time ASN1_GENERALIZEDTIME format.
======================================================
ASN1_TIME *ctm = NULL;
ASN1_GENERALIZEDTIME *asn1_time = NULL;
ASN1_GENERALIZEDTIME *asn1_time = NULL;
ctm = M_ASN1_TIME_dup
(X509_CRL_get_nextUpdate(base_crl));
asn1_time = M_ASN1_GENERALIZEDTIME_dup(ctm);
asn1_time = M_ASN1_GENERALIZEDTIME_dup(ctm);
printf ("The CRL's NEXT UPDATE TIME in ASN1_GENERALIZEDTIME format: %s", asn1_time->data);
=======================================================
Result of this code is:
The CRL's NEXT UPDATE TIME in ASN1_GENERALIZEDTIME
format: [061117082334Z]
========================================================
========================================================
The
time I am seeing is: 061117082334Z.
Can
I interpret that time like : 2006 Nov 17 08:23:34 ?. But how do I
convert like this?
How
do i convert the 061117082334Z to 2006 Nov 17 08:23:34
?.
Appreciate your thouights on the same. Thanks a lot.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, November 14, 2006 2:54 PM
To: openssl-users@openssl.org
Subject: Any API available to get the CRL next update time in ASN1_GENERALIZEDTIME?
Hi,
Is there any API
available to get the next update time of CRL in
ASN1_GENERALIZEDTIME format?
The next update
time can be retrieved in ASN1_TIME format using the following
API:
get_crl_update_time(X509_CRL *crl )
{
ASN1_TIME *ctm = NULL;
ctm = M_ASN1_TIME_dup (X509_CRL_get_nextUpdate(crl));
/*
The ctm is in ASN1_TIME format. Is there any API available
to get the time in
ASN1_GENERALIZEDTIME format?? */
}
Thanks in
advance.
With best regards,
-Surendra
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com |
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com |