wolfssl icon indicating copy to clipboard operation
wolfssl copied to clipboard

Validate asn date based on position of Z

Open anhu opened this issue 9 months ago • 6 comments

Fixes https://github.com/wolfSSL/wolfssl/issues/8597

anhu avatar Mar 28 '25 00:03 anhu

jenkins retest this please (Java crashed.)

anhu avatar Mar 28 '25 21:03 anhu

Jenkins retest this please

anhu avatar Mar 28 '25 23:03 anhu

jenkins retest this please

anhu avatar Mar 29 '25 00:03 anhu

It will always eventually succeed. Need to redesign this part so we actually record whether it was generalized or utc.

        if (GetTimeString(crl->crlList->lastDate, ASN_UTC_TIME,
            tmp, MAX_WIDTH) != WOLFSSL_SUCCESS) {
            if (GetTimeString(crl->crlList->lastDate, ASN_GENERALIZED_TIME,
            tmp, MAX_WIDTH) != WOLFSSL_SUCCESS) {
                WOLFSSL_MSG("Error getting last update date");
                return WOLFSSL_FAILURE;
            }
        }

anhu avatar Apr 22 '25 19:04 anhu

Please do not merge. I would like to squash this once it is approved.

anhu avatar May 12 '25 19:05 anhu

Jenkins retest this please

anhu avatar May 12 '25 22:05 anhu