x509asn1: unittests and fixes for gtime2str

Fix issues in GTime2str() and add unit test cases to verify correct
behaviour.

Follow-up to 3c914bc680

Closes #14316
This commit is contained in:
Stefan Eissing 2024-07-30 16:40:48 +02:00 committed by Daniel Stenberg
parent 98da147b18
commit 27959ecce7
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
6 changed files with 194 additions and 10 deletions

View file

@ -211,7 +211,7 @@ test1620 test1621 \
\
test1630 test1631 test1632 test1633 test1634 test1635 \
\
test1650 test1651 test1652 test1653 test1654 test1655 \
test1650 test1651 test1652 test1653 test1654 test1655 test1656 \
test1660 test1661 test1662 test1663 \
\
test1670 test1671 \

22
tests/data/test1656 Normal file
View file

@ -0,0 +1,22 @@
<testcase>
<info>
<keywords>
unittest
Curl_x509_GTime2str
</keywords>
</info>
#
# Client-side
<client>
<server>
none
</server>
<features>
unittest
</features>
<name>
Curl_x509_GTime2str unit tests
</name>
</client>
</testcase>