gnutls_x509_crt_get_expiration_time problem on window
info at codejoin.com
Sun Apr 19 19:24:42 CEST 2009
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
Viale Cappuccini, 3 - 80078 - Pozzuoli(NA) - Tel./Fax. +39 0815269410
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gnutls-devel