@amadio commented on this pull request.
In src/XrdCrypto/XrdCryptosslAux.cc:
> @@ -730,16 +730,26 @@ time_t XrdCryptosslASN1toUTC(const ASN1_TIME *tsn1) &(ltm.tm_year), &(ltm.tm_mon), &(ltm.tm_mday), &(ltm.tm_hour), &(ltm.tm_min), &(ltm.tm_sec), &zz) != 7) || (zz != 'Z')) { - return -1; + // Try GeneralizedTime + if ((sscanf((const char *)(tsn1->data), + "%04d%02d%02d%02d%02d%02d%c", + &(ltm.tm_year), &(ltm.tm_mon), &(ltm.tm_mday), + &(ltm.tm_hour), &(ltm.tm_min), &(ltm.tm_sec), + &zz) != 7) || (zz != 'Z')) { + return -1; + }
Actually, it seems the RFC mandates GMT here, so no need to adapt it.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Use REPLY-ALL to reply to list
To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1