test dates from last century.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21355 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2007-06-27 07:43:18 +00:00
parent d9e1a55133
commit 3a57d2d338

View File

@@ -908,6 +908,21 @@ test_misc_cmp(void)
return 0;
}
static int
corner_generalized_time(void)
{
const char *str = "760520140000Z";
size_t size;
time_t t;
int ret;
ret = der_get_generalized_time((const unsigned char*)str, strlen(str),
&t, &size);
if (ret)
return 1;
return 0;
}
int
main(int argc, char **argv)
{
@@ -939,6 +954,7 @@ main(int argc, char **argv)
ret += test_heim_oid_format();
ret += check_trailing_nul();
ret += test_misc_cmp();
ret += corner_generalized_time();
return ret;
}