From 64e4da9cf0f1b601d8b87b38dc1637a2fcf78380 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Mon, 1 Nov 1999 21:12:13 +0000 Subject: [PATCH] * krb5_decode_test.c (main): Add test case for zero-length SequenceOfType. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11891 dc483132-0cff-0310-8789-dd5450dbe970 --- src/tests/asn.1/ChangeLog | 5 +++++ src/tests/asn.1/krb5_decode_test.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/src/tests/asn.1/ChangeLog b/src/tests/asn.1/ChangeLog index 1fd76fdc5..e0eaa3395 100644 --- a/src/tests/asn.1/ChangeLog +++ b/src/tests/asn.1/ChangeLog @@ -1,3 +1,8 @@ +1999-11-01 Tom Yu + + * krb5_decode_test.c (main): Add test case for zero-length + SequenceOfType. + 1999-10-26 Ken Raeburn * trval.c (print_tag_type): Use fputs when there's no formatting diff --git a/src/tests/asn.1/krb5_decode_test.c b/src/tests/asn.1/krb5_decode_test.c index f1f3b702f..8ec075b93 100644 --- a/src/tests/asn.1/krb5_decode_test.c +++ b/src/tests/asn.1/krb5_decode_test.c @@ -274,6 +274,10 @@ int main(argc, argv) #endif ref.kdc_options &= ~KDC_OPT_ENC_TKT_IN_SKEY; decode_run("kdc_req_body","(optionals NULL except server)","30 59 A0 07 03 05 00 FE DC BA 90 A2 10 1B 0E 41 54 48 45 4E 41 2E 4D 49 54 2E 45 44 55 A3 1A 30 18 A0 03 02 01 01 A1 11 30 0F 1B 06 68 66 74 73 61 69 1B 05 65 78 74 72 61 A5 11 18 0F 31 39 39 34 30 36 31 30 30 36 30 33 31 37 5A A7 03 02 01 2A A8 08 30 06 02 01 00 02 01 01",decode_krb5_kdc_req_body,ktest_equal_kdc_req_body); + ref.nktypes = 0; + free(ref.ktype); + ref.ktype = NULL; + decode_run("kdc_req_body","(optionals NULL except server; zero-length etypes)","30 53 A0 07 03 05 00 FE DC BA 90 A2 10 1B 0E 41 54 48 45 4E 41 2E 4D 49 54 2E 45 44 55 A3 1A 30 18 A0 03 02 01 01 A1 11 30 0F 1B 06 68 66 74 73 61 69 1B 05 65 78 74 72 61 A5 11 18 0F 31 39 39 34 30 36 31 30 30 36 30 33 31 37 5A A7 03 02 01 2A A8 02 30 00",decode_krb5_kdc_req_body,ktest_equal_kdc_req_body); } /****************************************************************/ -- 2.26.2