gnutls_x509_crt_get_expiration_time problem on window
Code Join
info at codejoin.com
Sun Apr 19 19:24:42 CEST 2009
Hi all,
first of all: many thanks, gnutls is a precious work. .
I'm using the 2.7.3 library with Microsoft Visual C++ 2008 Express. I have build on my own a server application and a client application using some code snippets from the examples programs included in the installation pack. Everything is fine but I am not able to print the activation/expiration time of my client certificate (I have created it using the certtol utility).
If I run certtool to view the client certificate information I can see them.
Here is my code:
...
expiration_time = gnutls_x509_crt_get_expiration_time(cert);
activation_time = gnutls_x509_crt_get_activation_time(cert);
...
Form1.display.Append("\tCertificate is valid since: "+xstring( ctime(&activation_time))+"\n");
Form1.display.Append("\tCertificate expires: "+xstring( ctime(&expiration_time))+"\n");
...
It seems like those functions return strange values rather good or bad (-1 ) values
Pietro Fabrizio
Code Join
Viale Cappuccini, 3 - 80078 - Pozzuoli(NA) - Tel./Fax. +39 0815269410
www.codejoin.com
www.codejoin.com/radon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20090419/9861872c/attachment.htm>
More information about the Gnutls-devel
mailing list