1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
|
2002-08-23 Ken Raeburn <raeburn@mit.edu>
* Makefile.in: Change $(S)=>/ and $(U)=>.. globally.
2001-10-09 Ken Raeburn <raeburn@mit.edu>
* ktest.h, ktest_equal.h, utility.c, utility.h: Make prototypes
unconditional.
2001-07-06 Ezra Peisach <epeisach@mit.edu>
* trval.c: Include string.h for strcmp prototype.
2001-04-26 Ken Raeburn <raeburn@mit.edu>
* trval.c (decode_len, do_prim, do_cons, do_prim_bitstring,
do_prim_int, do_prim_string, print_tag_type, trval, trval2):
Always use prototype declarations.
Sun Feb 18 15:33:50 2001 Ezra Peisach <epeisach@mit.edu>
* trval.c: Add prototypes for trval() and trval2().
2000-10-26 Tom Yu <tlyu@mit.edu>
* krb5_decode_test.c (main): Add new test cases for indefinite
length ticket and as_rep. Fix up calls to decode_run() to have
the modifier be in the description parameter.
2000-10-17 Ezra Peisach <epeisach@mit.edu>
* ktest.c (ktest_make_sample_etype_info): Use KRB5_ETYPE_NO_SALT
instead of -1.
* ktest_equal.c (ktest_equal_krb5_etype_info_entry): Test for
KRB5_ETYPE_NO_SALT. ktest_equal_array_of_octet() and
ktest_equal_array_of_char take unsigned int lengths.
* ktest_equal.h: Add len_unsigned_array macro for a prototype of a
function taking an unsigned int
count. ktest_equal_array_of_octet() is one of
these. ktest_equal_array_of_char() takes an unsigned int as
length.
* trval.c (trval): Unsigned/signed int fix.
* utility.c (asn1_krb5_data_unparse): Better test for krb5_data
length being less than zero.
2000-09-26 Ezra Peisach <epeisach@mit.edu>
* krb5_decode_test.c (decode_run): If the ASN1 decoder returns an
error, add one to the error count so there will be a non-zero
exit. Sometimes, the decoded structure is complete enoght to pass
the test, even with an ASN.1 error - which can easilly get missed
in the output run.
2000-08-07 Ezra Peisach <epeisach@mit.edu>
* reference_encode.out, trval_reference.out: Test encoding of
negative lr_type field.
* krb5_decode_test.c: Fix enc_kdc_rep_part tests to trully handle
a negative lr_type in a krb5_last_req_entry structure. If
KRB5_GENEROUS_LR_TYPE is defined, do a backwards compatibility
test as well.
2000-07-28 Ezra Peisach <epeisach@mit.edu>
* utility.c: Add casts on types being sent to internal functions.
* krb5_encode_test.c: Declare internal functions as static.
* ktest.c: Remove unused functions. Clean up compiler warnings.
* trval.c: Add proper prototype for declared functions.
1999-11-01 Tom Yu <tlyu@mit.edu>
* krb5_decode_test.c (main): Add test case for zero-length
SequenceOfType.
1999-10-26 Ken Raeburn <raeburn@mit.edu>
* trval.c (print_tag_type): Use fputs when there's no formatting
to do.
1999-10-26 Wilfredo Sanchez <tritan@mit.edu>
* Makefile.in: Clean up usage of CFLAGS, CPPFLAGS, DEFS, DEFINES,
LOCAL_INCLUDES such that one can override CFLAGS from the command
line without losing CPP search patchs and defines. Some associated
Makefile cleanup.
Sat Jul 10 10:32:31 1999 Tom Yu <chaoself@mit.edu>
* krb5_decode_test.c (main): Add additional test cases in
encryption_key to test negative integer handling.
1999-07-03 Tom Yu <tlyu@mit.edu>
* krb5_decode_test.c (main): Add test cases for encryption_key in
order to test skipping of trailing fields in sequences, as well as
handling of indefinite lengths in sequences.
Thu Jan 28 20:04:52 1999 Theodore Y. Ts'o <tytso@mit.edu>
* trval.c: Now understands krb5 structure elements.
* krb5_encode_test.c: Pass trval type hints to trval2() so that
datastructures get properly decoded.
Fri Jan 22 02:08:59 1999 Theodore Y. Ts'o <tytso@mit.edu>
* trval.c: Added usage message, better options parsing, and
support for two new options: -hex, which will accept the
asn.1 encoding in hex (i.e., from a packet dump), and
-krb5, which instructs the trval to print out the krb5
interpretations of the data types. Trval will now also
try to interpret the field names of known krb5 structures
if -krb5 is specified.
1998-11-13 Theodore Ts'o <tytso@rsts-11.mit.edu>
* Makefile.in: Set the myfulldir and mydir variables (which are
relative to buildtop and thisconfigdir, respectively.)
Thu Dec 3 22:27:08 1998 Tom Yu <tlyu@mit.edu>
* krb5_decode_test.c (main): Add variant test cases on
enc_tkt_part to test bit string values that aren't exactly 32
bits, including 38, 40, 29, and 24 bits to test boundary
conditions.
1998-05-06 Theodore Ts'o <tytso@rsts-11.mit.edu>
* krb5_encode_test.c (PRS): POSIX states that getopt returns -1
when it is done parsing options, not EOF.
Mon Mar 30 13:51:58 1998 Ezra Peisach <epeisach@kangaroo.mit.edu>
* ktest_equal.h: Add prototypes for ktest_equal_sam_challenge and
ktest_equal_sam_response
* ktest.c (ktest_make_sample_sam_response): Remove unused variable.
* krb5_decode_test.c, krb5_decode_test.c (main): Declare main as
int not void.
Wed Feb 18 16:27:56 1998 Tom Yu <tlyu@mit.edu>
* Makefile.in: Remove trailing slash from thisconfigdir. Fix up
BUILDTOP for new conventions.
Mon Feb 2 16:46:31 1998 Theodore Ts'o <tytso@rsts-11.mit.edu>
* Makefile.in: Define BUILDTOP and thisconfigdir in the Makefile
Sun Aug 17 14:26:19 1997 Ezra Peisach <epeisach@mit.edu>
* Makefile.in (SRCS): Add $(srcdir).
Thu Mar 20 16:50:10 1997 Ezra Peisach <epeisach@mit.edu>
* configure.in: Remove AC_PROG_INSTALL.
Sun Feb 9 01:31:00 1997 Tom Yu <tlyu@mit.edu>
* Makefile.in:
* configure.in: Update to new program build procedure.
Thu Nov 14 14:13:41 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
* krb5_encode_test.c (PRS): Add the -p option to krb5_encode_test
to change the sample principal value (to test encoding of
different krb5 principals).
* ktest.c (ktest_make_sample_principal): Use krb5_parse_principal
so that sample principal can be configured for different
purposes.
* krb5_decode_test.c (main):
* krb5_encode_test.c (main): Check return value from
krb5_init_context to make sure it succeeded.
* Makefile.in (check): Set KRB5_CONFIG to
$(TOPSRC)/config-files/krb5.conf so that the tests work.
Wed Jun 5 15:59:12 1996 Ezra Peisach <epeisach@kangaroo.mit.edu>
* krb5_decode_test.c (main): For asn1_decode_enc_kdc_rep_part,
starttime will equal authtime if not sent OTW.
Tue Apr 2 20:57:12 1996 Chris Provenzano <proven@mit.edu>
* utility.c (krb5_data_hex_parse()) : Do a strdup() of string before
sending it off to sscanf(), because some systems sscanf can't
handle non writeable strings.
Fri Mar 29 03:00:34 1996 Mark Eichin <eichin@cygnus.com>
* krb5_decode_test.c (main): add tests for krb5_sam_challenge and
krb5_sam_response.
* krb5_encode_test.c (main): likewise.
* ktest.c (ktest_make_sample_sam_challenge,
ktest_make_sample_sam_response): new functions, supporting tests
of new types.
* ktest_equal.c (ktest_equal_sam_challenge,
ktest_equal_sam_response): new comparators.
* reference_encode.out, trval_reference.out: add data for test cases.
Mon Mar 18 21:49:39 1996 Ezra Peisach <epeisach@kangaroo.mit.edu>
* configure.in: Add KRB5_RUN_FLAGS
* Makefile.in: Use runtime flags.
Sun Mar 3 13:05:57 1996 Ezra Peisach <epeisach@kangaroo.mit.edu>
* krb5_decode_test.c (main): In krb5_enc_tkt_part (optionals NULL)
test, set starttime to authtime. Matches change to
lib/krb5/asn.1/krb5_decode.c.
Wed Nov 15 15:28:32 1995 Chris Provenzano (proven@mit.edu)
* ktest_equal.c (ktest_equal_krb5_etype_info_entry()) :
Only do emecmp() if ref->length > 0
Wed Nov 8 20:03:51 1995 Theodore Y. Ts'o <tytso@dcl>
* krb5_encode_test.c (main): In case of an error in the encoding
routines, exit. Otherwise, calling the print routines
will often lead to a coredump.
* ktest.c (ktest_make_sample_etype_info): Set etype.length to -1
to mean that the optional salt string is missing. (This
is change in the convention used by the ASN.1 encoder and
decoder for this ASN.1 structure.)
Tue Oct 31 21:30:28 1995 Theodore Y. Ts'o <tytso@dcl>
* krb5_decode_test.c (main): Add tests for
decode_krb5_enc_data and decode_krb5_pa_enc_ts.
* krb5_encode_test.c (main): Add tests for
encode_krb5_enc_data and encode_krb5_pa_enc_ts.
* ktest.c (ktest_make_sample_pa_enc_ts): New functions to
test {encode,decode}_krb5_pa_enc_ts().
* ktest_equal.c (ktest_equal_krb5_pa_enc_ts): New functions to test
{encode,decode}_krb5_pa_enc_ts().
Sun Oct 15 10:51:22 1995 <tytso@rsts-11.mit.edu>
* ktest.c (ktest_make_sample_alt_method,
ktest_make_sample_etype_info): Fixed signed/unsinged -Wall
flame.
Fri Sep 29 14:23:47 1995 Theodore Y. Ts'o <tytso@dcl>
* Makefile.in (clean): Remove trval on a make clean
Wed Sep 06 14:20:57 1995 Chris Provenzano (proven@mit.edu)
* ktest.c, ktest_equal.c, ktest_equal.h :
s/keytype/enctype/g, s/KEYTYPE/ENCTYPE/g
Tue Sep 05 22:10:34 1995 Chris Provenzano (proven@mit.edu)
* ktest.c, ktest.h, ktest_equal.c, ktest_equal.h : Remove krb5_enctype
references, and replace with krb5_keytype where appropriate
Tue Aug 29 14:20:52 EDT 1995 Paul Park (pjpark@mit.edu)
* krb5_decode_test.c - Fix string constant.
* trval.c - Remove definitions of malloc and realloc. They should come
in from stdlib.h.
Mon Aug 28 16:35:22 1995 <tytso@rsts-11.mit.edu>
* krb5_decode_test.c (main): Add tests for
decode_krb5_{etype_info,alt_method}.
* krb5_encode_test.c (main): Add tests for
encode_krb5_{etype_info,alt_method}.
* ktest_equal.c (ktest_equal_krb5_alt_method,
ktest_equal_krb5_etype_info_entry,
ktest_equal_krb5_etype_info) New functions to test
{encode,decode}_krb5_{etype_info,alt_method}.
* ktest.c (ktest_make_sample_etype_info_entry,
ktest_make_sample_etype_info,
ktest_make_sample_alt_method,
ktest_destroy_etype_info_entry, ktest_destroy_etype_info):
New functions to test
{encode,decode}_krb5_{etype_info,alt_method}.
Sat Aug 26 12:40:57 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
* krb5_encode_test.c (encoder_print_results): If trval2 returns
non zero, indicate with error before exiting.
Fri Aug 25 21:50:37 1995 Theodore Y. Ts'o <tytso@dcl>
* krb5_encode_test.c (main): Add tests for
encode_krb5_padata_sequence().
* krb5_decode_test.c (main): Add tests for
decode_krb5_padata_sequence().
* ktest.c (ktest_make_sample_empty_pa_data_array): New function
which creates an empty pa_data array.
* trval.c: Various -Wall cleanups.
* Makefile.in (trval): Add rule to build the standalone trval
program.
Thu Jul 27 15:29:10 EDT 1995 Paul Park (pjpark@mit.edu)
* krb5_{en,de}code_test.c - Use k5-int instead of krb5 and asn1.h.
Wed Jul 12 12:30:45 EDT 1995 Paul Park (pjpark@mit.edu)
* Makefile.in - Add LD_LIBRARY_PATH in case we used shared objects
by default.
* configure.in - Remove V5_USE_SHARED_LIB.
Fri Jul 7 16:36:12 EDT 1995 Paul Park (pjpark@mit.edu)
* Makefile.in - Remove explicit library handling and LDFLAGS.
* configure.in - Add KRB5_LIBRARIES and V5_USE_SHARED_LIB.
Tue Jun 20 14:56:53 1995 <tytso@rsx-11.mit.edu>
* ktest.h, ktest_equal.h: Change PROTOTYPE to KRB5_PROTOTYPE
Fri Jun 9 18:57:22 1995 <tytso@rsx-11.mit.edu>
* configure.in: Remove standardized set of autoconf macros, which
are now handled by CONFIG_RULES.
Thu Mar 2 12:33:47 1995 Theodore Y. Ts'o <tytso@dcl>
* Makefile.in (ISODELIB): Remove reference to $(ISODELIB).
Wed Mar 1 16:32:02 1995 Theodore Y. Ts'o <tytso@dcl>
* configure.in: Remove ISODE_INCLUDE and ISODE_DEFS, replace check
for -lsocket and -lnsl with WITH_NETLIB check.
Tue Feb 28 01:23:57 1995 John Gilmore (gnu at toad.com)
* krb5_decode_test.c, krb5_encode_test.c, ktest.h, ktest_equal.h,
utility.c, utility.h: Avoid <krb5/...> includes.
Tue Feb 14 00:18:35 1995 Theodore Y. Ts'o (tytso@dcl)
* Makefile.in: Use $(LD) instead of $(CC) when linking.
Fri Jan 13 15:23:47 1995 Chris Provenzano (proven@mit.edu)
* Added krb5_context to all krb5_routines
Fri Nov 18 16:29:01 1994 Theodore Y. Ts'o (tytso@dcl)
* ktest.c (ktest_make_sample_keybloc): Add magic numbers for
keyblock structure.
Tue Nov 1 20:25:02 1994 Theodore Y. Ts'o (tytso@dcl)
* trval.c: Include the tag numbers for the krb5 application tags,
since that's something we're going to want to check to
make sure they're actually correct.
* krb5_encode_test.c:
* Makefile.in:
* trval.c: Add the "-t option to krb5_encode_test, which causes it
to use the ASN.1 unparser found in trval.c. This routine
will attempt to decode the ASN.1 data stream and display
it in a logical format for a human being to decipher.
Wed Oct 19 00:11:43 1994 Theodore Y. Ts'o (tytso@maytag)
* debug.h (assert):
krb5_encode_test.c (main):
krb5_decode_test.c (main): Exit with a non-zero exit status when
the test suite detects errors.
* ktest.c (ktest_destroy_enc_data): Clear the kvno field when
destroying the encrypted data.
* Makefile.in: "make check" depends on krb5_decode_test and
krb5_encode_test being up to date.
Tue Oct 18 22:46:17 1994 Theodore Y. Ts'o (tytso@maytag)
* ktest_equal.c (array_compare): Don't segfault if one of the
arguments is NULL and the other is not.
* krb5_decode_test.c (main): Use krb5_init_ets() instead of
explicitly naming the error tables to initialize.
* utility.c (asn1buf_print): Remove unneeded routine.
* utility.c (krb5_data_hex_parse): Return EINVAL instead of
ASN1_PARSE_ERROR if KRB5_USE_ISODE is defined, since the
ASN1 error codes aren't defined in that case.
Fri Oct 14 15:00:41 1994 Theodore Y. Ts'o (tytso@dcl)
* Makefile.in: Clean up the test.out file.
Fri Oct 14 23:45:01 1994 Theodore Y. Ts'o (tytso@maytag)
* configure.in: Add ISODE_DEFS
Thu Oct 6 21:42:27 1994 Theodore Y. Ts'o (tytso@dcl)
* Makefile.in: Add "make check" test case which runs the test programs.
Tue Oct 4 14:32:39 1994 Theodore Y. Ts'o (tytso@dcl)
* krb5_decode_test.c (setup, decode_run):
* krb5_encode_test.c (setup, encode_run): Don't call strcat on a
constant string --- you can't modify a read only string!
Thu Sep 29 23:01:58 1994 Theodore Y. Ts'o (tytso@dcl)
* Makefile.in: Relink executabes when libraries change
Wed Sep 28 16:12:08 1994 Mark Eichin (eichin@cygnus.com)
* ktest_equal.c: #include stdio.h to get NULL under sunos.
Tue Sep 20 23:53:13 1994 Theodore Y. Ts'o (tytso@dcl)
* Fix typo in utility.c --- we should be freeing the pointer to
the passed in pointer, not the passed-in pointer itself.
|