cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: any libcurl API to delete expired cookies?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 21 Sep 2013 00:07:48 +0200 (CEST)

On Fri, 20 Sep 2013, Daniel Stenberg wrote:

> Thanks for pointing this out. I'll have to research this a bit then. It
> looks perhaps it is a 32bit vs 64bit thing and could be due to an overflow
> somewhere or whatever.

Right, like...

#if SIZEOF_TIME_T < 5
   /* 32 bit time_t can only hold dates to the beginning of 2038 */
   if(yearnum > 2037) {
     *output = 0x7fffffff;
     return PARSEDATE_LATER;
   }
#endif

;-)

I'll modify the test case instead. Tomorrow.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2013-09-21