gnutls-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnutls_x509_crt_get_expiration_time problem on window


From: Code Join
Subject: gnutls_x509_crt_get_expiration_time problem on window
Date: Sun, 19 Apr 2009 19:24:42 +0200

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]