gnutls-devel
[Top][All Lists]
Advanced

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

Re: gnutls_x509_crt_get_expiration_time problem on window


From: Simon Josefsson
Subject: Re: gnutls_x509_crt_get_expiration_time problem on window
Date: Tue, 21 Apr 2009 11:47:01 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.90 (gnu/linux)

"Code Join" <address@hidden> writes:

> Thank you for the hint.
>
> I found a solution:
>
> FILETIME ft;
> LONGLONG ll = Int32x32To64(expiration_time, 10000000) + 116444736000000000;
> ft.dwLowDateTime = (DWORD)ll;
> ft.dwHighDateTime = ll >> 32;
> SYSTEMTIME st;
> FileTimeToSystemTime(&ft,&st);
>
> convert from Unix to Windows filetime format

Great.  I'm cc'ing the list in case others were curious about the
solution.

/Simon




reply via email to

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