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

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>