gnutls_x509_crt_get_expiration_time problem on window

Simon Josefsson simon at josefsson.org
Tue Apr 21 11:47:01 CEST 2009


"Code Join" <info at codejoin.com> 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





More information about the Gnutls-devel mailing list