]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - crypto/heimdal/lib/asn1/ChangeLog
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / crypto / heimdal / lib / asn1 / ChangeLog
1 2008-01-13  Love Hörnquist Åstrand  <lha@it.su.se>
2
3         * asn1-common.h gen.c der.c gen_encode.c: add and use der_{malloc,free}
4
5 2007-12-13  Love Hörnquist Åstrand  <lha@it.su.se>
6
7         * libasn1.h: remove, not used.
8
9 2007-12-04  Love Hörnquist Åstrand  <lha@it.su.se>
10
11         * Makefile.am: Add DigestTypes, add --seq to antoher type.
12
13         * digest.asn1: Add supportedMechs request.
14         
15 2007-10-18  Love Hörnquist Åstrand  <lha@it.su.se>
16
17         * k5.asn1: Some "old" windows enctypes. From Andy Polyakov.
18         
19 2007-07-23  Love Hörnquist Åstrand  <lha@it.su.se>
20
21         * Makefile.am: Fold in pk-init-alg-agilty.
22
23         * pkinit.asn1: Fold in pk-init-alg-agilty.
24
25 2007-07-16  Love Hörnquist Åstrand  <lha@it.su.se>
26
27         * parse.y: Passe object id is its part of the module defintion
28         statement.
29
30 2007-07-14  Love Hörnquist Åstrand  <lha@it.su.se>
31
32         * check-gen.c: test SEQ OF SIZE (...)
33
34         * Makefile.am: Include more sizeof tests.
35
36 2007-07-12  Love Hörnquist Åstrand  <lha@it.su.se>
37
38         * try to avoid aliasing of pointers enum {} vs int
39
40 2007-07-10  Love Hörnquist Åstrand  <lha@it.su.se>
41
42         * test.asn1: Test SIZE attribute for SEQ and OCTET STRING
43
44         * parse.y (OctetStringType): add SIZE to OCTET STRING.
45
46         * Makefile.am: New library version.
47
48 2007-07-02  Love Hörnquist Åstrand  <lha@it.su.se>
49
50         * rfc2459.asn1: Re-add size limits. 
51         
52         * k5.asn1: Add size limits from RFC 4120.
53
54         * gen_decode.c: Check range on SEQ OF and OCTET STRING.
55
56         * asn1_err.et (min|max|exact) constraints.
57
58         * parse.y: Parse size limitations to SEQ OF.
59
60 2007-06-28  Love Hörnquist Åstrand  <lha@it.su.se>
61
62         * Makefile.am: Add AuthorityInfoAccessSyntax.
63
64         * rfc2459.asn1: Add AuthorityInfoAccessSyntax.
65
66         * rfc2459.asn1: Add authorityInfoAccess, rename proxyCertInfo.
67         
68         * Makefile.am: Add authorityInfoAccess, rename proxyCertInfo.
69
70 2007-06-27  Love Hörnquist Åstrand  <lha@it.su.se>
71
72         * der_get.c (der_get_time): avoid using wrapping of octet_string
73         and realloc.
74
75         * der_get.c: No need to undef timetm, we don't use it any more.
76
77         * timegm.c: Fix spelling caused by too much query-replace.
78
79         * gen.c: Include <limits.h> for UINT_MAX.
80
81         * gen_decode.c: Check for multipication overrun.
82
83         * gen_encode.c: Paranoia check in buffer overun in output
84         function.
85
86         * check-der.c: Test boolean.
87
88         * check-der.c: test universal strings.
89
90         * check-der.c: Test failure cases for der_get_tag.
91
92         * check-der.c: test dates from last century.
93
94         * check-der.c: Move zero length integercheck to a better place.
95
96         * check-der.c: Test zero length integer.
97
98 2007-06-18  Love Hörnquist Åstrand  <lha@it.su.se>
99
100         * check-der.c: Init data to something.
101
102 2007-06-15  Love Hörnquist Åstrand  <lha@it.su.se>
103
104         * k5.asn1: Add KRB5-AUTHDATA-INITIAL-VERIFIED-CAS.
105
106 2007-06-13  Love Hörnquist Åstrand  <lha@it.su.se>
107
108         * pkinit.asn1: Make the pkinit nonce signed (like the kerberos
109         nonce).
110
111 2007-06-03  Love Hörnquist Åstrand  <lha@it.su.se>
112
113         * check-der.c: Free more memory.
114
115         * der_format.c: Don't accect zero length hex numbers.
116
117         * check-der.c: Also free right memory.
118
119         * main.c: Close asn1 file when done.
120
121         * check-der.c: more check for der_parse_hex_heim_integer
122
123         * der_format.c (der_parse_hex_heim_integer): check length before
124         reading data.
125         
126         * check-gen.c (test_authenticator): free memory
127         
128 2007-05-31  Love Hörnquist Åstrand  <lha@it.su.se>
129
130         * Makefile.am: add MS-UPN-SAN
131
132         * pkinit.asn1: add MS-UPN-SAN
133
134         * rfc2459.asn1: Do evil things to handle IMPLICIT encoded
135         structures.  Add id-ms-client-authentication.
136         
137 2007-05-30  Love Hörnquist Åstrand  <lha@it.su.se>
138
139         * Makefile.am: Add asn1_id_ms_cert_enroll_domaincontroller.x
140         
141 2007-05-10  Love Hörnquist Åstrand  <lha@it.su.se>
142         
143         * gen.c: Add struct units; as a forward declaration. Pointed out
144         by Marcus Watts.
145
146         * rfc2459.asn1: Netscape extentions
147
148         * Makefile.am: add U.S. Federal PKI Common Policy Framework
149
150         * rfc2459.asn1: add U.S. Federal PKI Common Policy Framework
151         
152 2007-04-24  Love Hörnquist Åstrand  <lha@it.su.se>
153
154         * gen_seq.c: Handle the case of resize to 0 and realloc that
155         returns NULL.
156
157         * check-gen.c (check_seq): free seq.
158         
159 2007-04-19  Love Hörnquist Åstrand  <lha@it.su.se>
160
161         * check-der.c (test_heim_oid_format_same): avoid leaking memory in
162         the non failure case too
163         
164 2007-04-16  Love Hörnquist Åstrand  <lha@it.su.se>
165         
166         * Makefile.am: remove extra ^Q
167         
168 2007-04-11  Love Hörnquist Åstrand  <lha@it.su.se>
169         
170         * der_get.c: Allow trailing NULs. We allow this since MIT Kerberos
171         sends an strings in the NEED_PREAUTH case that includes a trailing
172         NUL.
173         
174 2007-02-17  Love Hörnquist Åstrand  <lha@it.su.se>
175         
176         
177         * Makefile.am: Add PA-ClientCanonicalized and friends.
178
179         * k5.asn1: Add PA-ClientCanonicalized and friends.
180         
181 2007-02-08  Love Hörnquist Åstrand  <lha@it.su.se>
182
183         * check-der.c: Drop one over INT_MAX test-case.
184         
185 2007-02-05  Love Hörnquist Åstrand  <lha@it.su.se>
186         
187         * pkinit.asn1: add id-pkinit-ms-eku
188         
189         * pkinit.asn1: fill in more bits of id-pkinit-ms-san
190         
191 2007-02-02  Love Hörnquist Åstrand  <lha@it.su.se>
192         
193         * digest.asn1: rename hash-a1 to session key
194         
195 2007-02-01  Love Hörnquist Åstrand  <lha@it.su.se>
196         
197         * digest.asn1: Add elements to send in requestResponse to KDC and
198         get status of the request.
199         
200 2007-01-31  Love Hörnquist Åstrand  <lha@it.su.se>
201         
202         * Makefile.am: seq rules for CRLDistributionPoints
203         
204 2007-01-30  Love Hörnquist Åstrand  <lha@it.su.se>
205         
206         * Makefile.am: add CRLDistributionPoints and friends
207         
208 2007-01-20  Love Hörnquist Åstrand  <lha@it.su.se>
209         
210         * check-der.c: check BMPstring oddlength more
211
212         * check-der.c: Test for NUL char in string in GENERAL STRING.
213
214         * der_get.c: Check for NUL characters in string and return
215         ASN1_BAD_CHARACTER error-code if we find them.
216
217         * asn1_err.et: Add BAD_CHARACTER error.
218         
219 2007-01-16  Love Hörnquist Åstrand <lha@it.su.se>
220         
221         * Makefile.am: Add id-at-streetAddress.
222
223         * rfc2459.asn1: Add id-at-streetAddress.
224         
225 2007-01-12  Love Hörnquist Åstrand  <lha@it.su.se>
226         
227         * rfc2459.asn1: Add PKIXXmppAddr and id-pkix-on-xmppAddr.
228         
229 2006-12-30  Love Hörnquist Åstrand  <lha@it.su.se>
230         
231         * Makefile.am: Add id-pkix-kp oids.
232
233         * rfc2459.asn1: Add id-pkix-kp oids.
234         
235 2006-12-29  Love Hörnquist Åstrand  <lha@it.su.se>
236
237         * gen_encode.c: Named bit strings have this horrible, disgusting,
238         compress bits until they are no longer really there but stuff in
239         an initial octet anyway encoding scheme. Try to get it right and
240         calculate the initial octet runtime instead of compiletime.
241
242         * check-gen.c: Check all other silly bitstring combinations.
243
244         * Makefile.am: Add --sequence=Extensions to rfc2459.
245         
246 2006-12-28  Love Hörnquist Åstrand  <lha@it.su.se>
247         
248         * kx509.asn1: Add kx509.
249
250         * Makefile.am: Add kx509.
251
252         * Add VisibleString parsing
253
254 2006-12-15  Love Hörnquist Åstrand  <lha@it.su.se>
255
256         * Makefile.am: Add ntlm files.
257
258         * digest.asn1: Add bits for handling NTLM.
259         
260 2006-12-08  Love Hörnquist Åstrand  <lha@it.su.se>
261
262         * Makefile.am: add pkix proxy cert policy lang oids
263
264         * rfc2459.asn1: add pkix proxy cert policy lang oids
265         
266 2006-12-07  Love Hörnquist Åstrand  <lha@it.su.se>
267         
268         * rfc2459.asn1: unbreak id-pe-proxyCertInfo
269
270         * rfc2459.asn1: Add id-pkix-on-dnsSRV and related oids
271
272 2006-11-28  Love Hörnquist Åstrand  <lha@it.su.se>
273         
274         * Makefile.am: Add explicit depenency to LIB_roken for libasn1.la,
275         make AIX happy.
276         
277 2006-11-27  Love Hörnquist Åstrand  <lha@it.su.se>
278
279         * der_format.c (der_print_heim_oid): oid with zero length is
280         invalid, fail to print.
281         
282 2006-11-24  Love Hörnquist Åstrand  <lha@it.su.se>
283         
284         * der_format.c (der_print_heim_oid): use delim when printing.
285         
286 2006-11-21  Love Hörnquist Åstrand  <lha@it.su.se>
287         
288         * k5.asn1: Make KRB5-PADATA-S4U2SELF pa type 129.
289         
290 2006-10-24  Love Hörnquist Åstrand  <lha@it.su.se>
291
292         * asn1_err.et: add EXTRA_DATA
293         
294 2006-10-21  Love Hörnquist Åstrand  <lha@it.su.se>
295
296         * check-gen.c: avoid leaking memory
297
298         * check-der.c: avoid leaking memory
299
300         * der_format.c (der_parse_heim_oid): avoid leaking memory
301
302         * check-common.c: Print size_t as (unsigned long) and cast.
303
304         * check-common.c: Try to align data, IA64's gets upset if its
305         unaligned.
306
307         * lex.l: add missing */
308         
309         * lex.c: need %e for hpux lex
310
311 2006-10-20  Love Hörnquist Åstrand  <lha@it.su.se>
312         
313         * Makefile.am: remove dups from gen_files_test, add check-timegm.
314         
315         * Makefile.am: include more test.asn1 built files
316
317         * Makefile.am: More files, now for make check.
318         
319 2006-10-19  Love Hörnquist Åstrand  <lha@it.su.se>
320
321         * Makefile.am: Add missing files
322
323         * Makefile.am (asn1_compile_SOURCES): add gen_locl.h
324
325         * check-timegm.c: Add check for _der_timegm.
326
327         * der_get.c (generalizedtime2time): always use _der_timegm.
328
329         * timegm.c: make more strict
330
331         * der_locl.h: Rename timegm to _der_timegm.
332         
333 2006-10-17  Love Hörnquist Åstrand  <lha@it.su.se>
334         
335         * timegm.c: vJust fail if tm_mon is out of range for now XXXX this
336         is wrong.
337         
338 2006-10-16  Love Hörnquist Åstrand  <lha@it.su.se>
339         
340         * Makefile.am: extra depencies on der-protos.h
341         
342 2006-10-14 Love Hörnquist Åstrand <lha@it.su.se>
343
344         * check-der.c: Prefix primitive types with der_.
345
346         * timegm.c: rename the buildin timegm to _der_timegm
347
348         * heim_asn1.h: move prototype away from here.
349
350         * der_format.c: Add der_parse_heim_oid
351         
352         * gen_free.c: prefix primitive types with der_
353
354         * der_copy.c: prefix primitive types with der_
355
356         * gen_length.c: prefix primitive types with der_
357
358         * der_length.c: prefix primitive types with der_
359
360         * der_cmp.c: prefix primitive types with der_
361
362         * gen_free.c: prefix primitive types with der_
363
364         * der_free.c: prefix primitive types with der_
365
366         * gen_copy.c: prefix primitive types with der_
367
368         * der_copy.c: rename copy_ to der_copy_
369
370         * Makefile.am: Add der-protos.h to nodist_include_HEADERS.
371         
372         * der.h: use newly built <der-protos.h>
373
374         * Makefile.am: Generate der prototypes.
375
376         * gen.c: move any definitions here.
377
378         * asn1-common.h: move any definitions here.
379
380         * der.h: remove der_parse_oid prototype, it was never implemented.
381
382         * der.h: New der_print_heim_oid signature.  Test
383         der_parse_heim_oid
384
385         * check-der.c: New der_print_heim_oid signature.  Test
386         der_parse_heim_oid
387         
388 2006-10-07  Love Hörnquist Åstrand <lha@it.su.se>
389         
390         * lex.l: Grow an even larger output table size.
391
392         * Makefile.am: split build files into dist_ and noinst_ SOURCES
393         
394 2006-10-04  Love Hörnquist Åstrand  <lha@it.su.se>
395
396         * gen_seq.c: In generation of remove_TYPE: if you just removed the
397         last element, you must not memmove memory beyond the array.  From
398         Andrew Bartlett
399         
400 2006-10-01  Love Hörnquist Åstrand  <lha@it.su.se>
401
402         * lex.l: Grow (%p, %a, %n) tables for Solaris 10 lex. From Harald
403         Barth.
404         
405 2006-09-24  Love Hörnquist Åstrand  <lha@it.su.se>
406
407         * gen_decode.c (decode_type): drop unused variable realtype.
408         
409 2006-09-11  Love Hörnquist Åstrand <lha@it.su.se>
410
411         * Makefile.am: Add KRB5SignedPath and friends.
412
413         * k5.asn1: Add KRB5SignedPath and friends.
414
415         * Makefile.am: Add new sequence generation for GeneralNames.
416
417 2006-09-07  Love Hörnquist Åstrand  <lha@it.su.se>
418
419         * CMS.asn1 (CMSVersion): rename versions from v0 to CMSVersion_v0,
420         ...
421         
422 2006-09-05  Love Hörnquist Åstrand  <lha@it.su.se>
423
424         * Makefile.am: Add TESTSeqOf for testing sequence generation code.
425
426         * check-gen.c: Add sequence tests.
427
428         * test.asn1: Add TESTSeqOf for testing sequence generation code.
429
430         * gen_seq.c: fix warning.
431
432         * gen_seq.c: make generated data work
433
434         * setchgpw2.asn1: enctype is part of the krb5 module now, use that
435         instead of locally defining it.
436
437         * Makefile.am: asn1_compile += gen_seq.c
438
439         * gen_locl.h: add new prototypes, remove unused ones.
440
441         * gen.c: Generate sequence function.
442
443         * main.c: add --sequence
444
445         * gen_seq.c: Add generated add_ and remove_ for "SEQUENCE OF
446         TType". I'm tried of writing realloc(foo->data,
447         sizeof(foo->data[0]) + (foo->len + 1)); Only generated for those
448         type that is enabled by the command flag --sequence.
449         
450 2006-08-25  Love Hörnquist Åstrand  <lha@it.su.se>
451
452         * digest.asn1 (DigestRequest): add authid
453
454         * digest.asn1: Comment describing on how to communicate the sasl
455         int/conf mode.
456         
457 2006-08-23  Love Hörnquist Åstrand  <lha@it.su.se>
458
459         * digest.asn1: Add some missing fields needed for digest.
460         
461 2006-08-21  Love Hörnquist Åstrand  <lha@it.su.se>
462
463         * digest.asn1: Tweak to make consisten and more easier to use.
464         
465 2006-07-20  Love Hörnquist Åstrand  <lha@it.su.se>
466
467         * Makefile.am: Remove CMS symmetric encryption support.  Add
468         DigestProtocol.
469
470         * digest.asn1: DigestProtocol
471
472         * k5.asn1: Remove CMS symmetric encryption support.
473         
474 2006-06-22  Love Hörnquist Åstrand  <lha@it.su.se>
475         
476         * check-der.c (check_fail_heim_integer): disable test
477
478         * der_get.c (der_get_heim_integer): revert part of previous
479
480         * der_get.c (der_get_heim_integer): Add more checks
481
482         * asn1_print.c: Add printing of bignums and use der_print_heim_oid
483
484         * check-der.c (test_heim_oid_format_same): add printing on failure
485
486         * check-der.c: Add one check for heim_int, add checking for oid
487         printing
488         
489 2006-06-06  Love Hörnquist Åstrand  <lha@it.su.se>
490
491         * Makefile.am: Impersonation support bits (and sort)
492
493         * k5.asn1: Impersonation support bits.
494         
495 2006-05-13  Love Hörnquist Åstrand  <lha@it.su.se>
496
497         * der_format.c (der_parse_hex_heim_integer): avoid shadowing.
498         
499 2006-04-29  Love Hörnquist Åstrand  <lha@it.su.se>
500         
501         * Makefile.am: Add ExternalPrincipalIdentifiers, shared between
502         several elements.
503
504         * pkinit.asn1: Add ExternalPrincipalIdentifiers, shared between
505         several elements.
506         
507 2006-04-28  Love Hörnquist Åstrand  <lha@it.su.se>
508
509         * parse.y: Add missing ;'s, found by bison on a SuSE 8.2 machine.
510         
511 2006-04-26  Love Hörnquist Åstrand  <lha@it.su.se>
512
513         * Makefile.am: Add definitions from RFC 3820, Proxy Certificate
514         Profile.
515
516         * rfc2459.asn1: Add definitions from RFC 3820, Proxy Certificate
517         Profile.
518         
519 2006-04-24  Love Hörnquist Åstrand  <lha@it.su.se>
520
521         * rfc2459.asn1: Add id-Userid
522
523         * Makefile.am: Add UID and email
524
525         * pkcs9.asn1: Add id-pkcs9-emailAddress
526         
527         * Makefile.am: Add attribute type oids from X520 and RFC 2247 DC
528         oid
529
530         * rfc2459.asn1: Add attribute type oids from X520 and RFC 2247 DC
531         oid
532         
533 2006-04-21  Love Hörnquist Åstrand <lha@it.su.se>
534
535         * Makefile.am: add sha-1 and sha-2
536
537         * rfc2459.asn1: add sha-1 and sha-2
538         
539 2006-04-15  Love Hörnquist Åstrand  <lha@it.su.se>
540
541         * Makefile.am: Add id-pkcs1-sha256WithRSAEncryption and friends
542
543         * rfc2459.asn1: Add id-pkcs1-sha256WithRSAEncryption and friends
544
545         * CMS.asn1: Turn CMSRC2CBCParameter.rc2ParameterVersion into a
546         constrained integer
547         
548 2006-04-08  Love Hörnquist Åstrand  <lha@it.su.se>
549
550         * hash.c (hashtabnew): check for NULL before setting structure.
551         Coverity, NetBSD CID#4
552         
553 2006-03-31  Love Hörnquist Åstrand  <lha@it.su.se>
554
555         * Makefile.am: gen_files_rfc2459 += asn1_ExtKeyUsage.x
556         
557         * rfc2459.asn1: Add ExtKeyUsage.
558
559         * gen.c (generate_header_of_codefile): remove unused variable.
560         
561 2006-03-30  Love Hörnquist Åstrand  <lha@it.su.se>
562
563         * gen.c: Put all the IMPORTed headers into the headerfile to avoid
564         hidden depencies.
565         
566 2006-03-27  Love Hörnquist Åstrand  <lha@it.su.se>
567
568         * Makefile.am: Add id-pkinit-ms-san.
569
570         * pkinit.asn1: Add id-pkinit-ms-san.
571
572         * k5.asn1 (PADATA-TYPE): Add KRB5-PADATA-PA-PK-OCSP-RESPONSE
573         
574 2006-03-26  Love Hörnquist Åstrand  <lha@it.su.se>
575
576         * Makefile.am: Add pkinit-san.
577
578         * pkinit.asn1: Rename id-pksan to id-pkinit-san
579         
580 2006-03-08  Love Hörnquist Åstrand  <lha@it.su.se>
581
582         * gen.c (init_generate): Nothing in the generated files needs
583         timegm(), so no need to provide a prototype for it.
584         
585 2006-02-13  Love Hörnquist Åstrand  <lha@it.su.se>
586
587         * pkinit.asn1: paChecksum is now OPTIONAL so it can be upgraded to
588         something better then SHA1
589         
590 2006-01-31  Love Hörnquist Åstrand  <lha@it.su.se>
591
592         * extra.c: Stub-generator now generates alloc statements for
593         tagless ANY OPTIONAL, remove workaround.
594
595         * check-gen.c: check for "tagless ANY OPTIONAL"
596
597         * test.asn1: check for "tagless ANY OPTIONAL"
598         
599 2006-01-30  Love Hörnquist Åstrand  <lha@it.su.se>
600
601         * der.h: UniversalString and BMPString are both implemented.
602
603         * der.h: Remove , after the last element of enum.
604
605         * asn1_gen.c: Spelling.
606         
607 2006-01-20  Love Hörnquist Åstrand <lha@it.su.se>
608         
609         * der_length.c (length_heim_integer): Try handle negative length
610         of integers better.
611
612         * der_get.c (der_get_heim_integer): handle negative integers.
613         
614         * check-der.c: check heim_integer.
615         
616 2006-01-18  Love Hörnquist Åstrand <lha@it.su.se>
617
618         * Makefile.am: Its cRLReason, not cRLReasons
619
620         * canthandle.asn1: "Allocation is done on CONTEXT tags" works just
621         fine.
622
623         * rfc2459.asn1: Add CRL structures and OIDs.
624
625         * Makefile.am: Add CRL and TESTAlloc structures and OIDs.
626
627         * check-gen.c: Check OPTIONAL context-tagless elements.
628
629         * test.asn1: Check OPTIONAL context-tagless elements.
630
631         * der_cmp.c (heim_integer_cmp): make it work with negative
632         numbers.
633         
634 2006-01-17  Love Hörnquist Åstrand  <lha@it.su.se>
635
636         * check-der.c: check that der_parse_hex_heim_integer() handles odd
637         length numbers.
638
639         * der_format.c (der_parse_hex_heim_integer): make more resiliant
640         to errors, handle odd length numbers.
641
642 2006-01-13  Love Hörnquist Åstrand  <lha@it.su.se>
643         
644         * Makefile.am: Add RSAPrivateKey
645         
646         * rfc2459.asn1: Add RSAPrivateKey.
647         
648 2006-01-05  Love Hörnquist Åstrand  <lha@it.su.se>
649         
650         * der_copy.c (copy_heim_integer): copy the negative flag
651         
652 2005-12-14  Love Hörnquist Åstrand  <lha@it.su.se>
653
654         * parse.y: Drop ExceptionSpec for now, its not used.
655         
656 2005-12-06  Love Hörnquist Åstrand  <lha@it.su.se>
657
658         * test.asn1: Add test string for constraints.
659
660         * symbol.h: Add support for part of the Constraint-s
661
662         * gen.c: Set new constraints pointer in Type to NULL for inline
663         constructed types.
664
665         * parse.y: Add support for parsing part of the Constraint-s
666         
667 2005-10-29  Love Hörnquist Åstrand  <lha@it.su.se>
668         
669         * Makefile.am: Add some X9.57 (DSA) oids, sort lines
670
671         * rfc2459.asn1: Add some X9.57 (DSA) oids.
672         
673 2005-10-07  Love Hörnquist Åstrand  <lha@it.su.se>
674
675         * Makefile.am: Remove pk-init-19 support.
676         
677         * pkinit.asn1: Fix comment
678         
679         * check-der.c: Add tests for parse and print functions for
680         heim_integer.
681
682         * Makefile.am: Add parse and print functions for heim_integer.
683         
684         * der_format.c: Add parse and print functions for heim_integer.
685
686         * der.h: Add parse and print functions for heim_integer.
687         
688 2005-09-22  Love Hörnquist Åstrand  <lha@it.su.se>
689
690         * Makefile.am (gen_files_rfc2459) += asn1_DHPublicKey.x
691         
692         * rfc2459.asn1: Add DHPublicKey, and INTEGER to for storing the DH
693         public key in the SubjectPublicKeyInfo.subjectPublicKey BIT
694         STRING.
695         
696 2005-09-20  Love Hörnquist Åstrand  <lha@it.su.se>
697
698         * gen_decode.c: TSequenceOf/TSetOf: Increase the length of the
699         array after successful decoding the next element, so that the
700         array don't contain heap-data.
701         
702 2005-09-13  Love Hörnquist Åstrand  <lha@it.su.se>
703
704         * check-der.c: Avoid empty array initiators.
705         
706         * pkcs8.asn1 (PKCS8PrivateKeyInfo): Inline SET OF to avoid
707         compiler "feature"
708         
709         * check-common.c: Avoid signedness warnings.
710         
711         * check-common.h: Makes bytes native platform signed to avoid
712         casting everywhere
713         
714         * check-der.c: Don't depend on malloc(very-very-larger-value) will
715         fail.  Cast to unsigned long before printing size_t.
716         
717         * check-gen.c: Don't depend on malloc(very-very-larger-value) will
718         fail.
719         
720         * check-gen.c: Fix signedness warnings.
721         
722         * lex.l: unput() have to hanppen in actions for flex 2.5.31, can
723         do them in user code sesction, so move up handle_comment and
724         handle_string into action, not much sharing was done anyway.
725         
726 2005-09-09  Love Hörnquist Åstrand  <lha@it.su.se>
727
728         * check-der.c (test_one_int): len and len_len is size_t
729
730 2005-08-23  Love Hörnquist Åstrand  <lha@it.su.se>
731
732         * gen_encode.c: Change name of oldret for each instance its used
733         to avoid shadow warning. From: Stefan Metzmacher
734         <metze@samba.org>.
735
736         * gen_length.c: Change name of oldret for each instance its used
737         to avoid shadow warning. From: Stefan Metzmacher
738         <metze@samba.org>.
739
740         * gen_decode.c: Change name of oldret for each instance its used
741         to avoid shadow warning. From: Stefan Metzmacher
742         <metze@samba.org>.
743         
744         * parse.y: Const poision yyerror.
745
746         * gen.c: Const poision.
747         
748 2005-08-22 Love Hörnquist Åstrand  <lha@it.su.se>
749
750         * k5.asn1: Add KRB5-PADATA-PK-AS-09-BINDING, client send
751         this (with an empty pa-data.padata-value) to tell the KDC that the
752         client support the binding the PA-REP to the AS-REQ packet. This
753         is to fix the problem lack of binding the AS-REQ to the PK-AS-REP
754         in pre PK-INIT-27. The nonce is replaced with a asCheckSum.
755         
756 2005-08-11 Love Hörnquist Åstrand  <lha@it.su.se>
757
758         * canthandle.asn1: Allocation is done on CONTEXT tags.
759
760         * asn1_gen.c: rename optind to optidx to avoid shadow warnings
761
762 2005-07-28  Love Hörnquist Åstrand  <lha@it.su.se>
763
764         * rfc2459.asn1: add id-rsadsi-rc2-cbc
765
766         * Makefile.am: add another oid for rc2
767
768 2005-07-27  Love Hörnquist Åstrand  <lha@it.su.se>
769
770         * check-der.c: Make variable initiation constant by moving them to
771         global context
772
773         * check-gen.c: change to c89 comment
774
775 2005-07-27  Love Hörnquist Åstrand  <lha@it.su.se>
776
777         * Makefile.am: remove duplicate asn1_CMSAttributes.x
778
779 2005-07-26  Love Hörnquist Åstrand  <lha@it.su.se>
780
781         * asn1_print.c: rename optind to optidx
782
783         * Makefile.am: Update to pkinit-27
784
785         * pkinit.asn1: Update to pkinit-27
786         
787 2005-07-25  Love Hörnquist Åstrand  <lha@it.su.se>
788
789         * check-der.c: make it work for non c99 compilers too
790         
791         * check-der.c: start testing BIT STRING
792
793         * der_cmp.c (heim_bit_string_cmp): try handle corner cases better
794         
795         * gen_free.c (free_type): free bignum integers
796
797 2005-07-23   Love Hörnquist Åstrand  <lha@it.su.se>
798
799         * Makefile.am: add PKCS12-OctetString
800
801         * pkcs12.asn1: add PKCS12-OctetString
802
803         * Makefile.am: add new files
804
805         * rfc2459.asn1: include SET OF in Attribute to make the type more
806         useful
807
808         * CMS.asn1: handle IMPLICIT and share some common structures
809
810 2005-07-21  Love Hörnquist Åstrand  <lha@it.su.se>
811
812         * rfc2459.asn1: Include enough workarounds that this even might
813         work.
814
815         * check-gen.c: Two implicit tests, one with all structures inlined
816         
817         * test.asn1: fix workaround for IMPLICIT CONS case
818         
819         * canthandle.asn1: fix workaround for IMPLICIT CONS case
820         
821         * asn1_print.c: hint that there are IMPLICIT content when we find
822         it
823
824         * check-gen.c: Added #ifdef out test for IMPLICIT tagging.
825
826         * Makefile.am: test several IMPLICIT tag level deep
827         
828         * test.asn1: test several IMPLICIT tag level deep
829
830         * test.asn1: tests for IMPLICIT
831
832         * Makefile.am: tests for IMPLICIT
833
834         * canthandle.asn1: Expand on what is wrong with the IMPLICIT
835         tagging
836
837         * rfc2459.asn1: some of the structure are in the IMPLICIT TAGS
838         module
839
840 2005-07-19  Love Hörnquist Åstrand  <lha@it.su.se>
841
842         * asn1_print.c: print size_t by casting to unsigned long and use
843         right printf format tags are unsigned integers
844
845         * gen.c (generate_constant): oid elements are unsigned
846
847         * gen_decode.c (decode_type): tagdatalen should be an size_t.
848
849         * extra.c (decode_heim_any): tag is unsigned int.
850
851         * der_get.c (der_match_tag): tag is unsigned int.
852
853         * gen_length.c (length_type): cast size_t argument to unsigned
854         long and use appropriate printf format
855
856         * check-der.c (check_fail_bitstring): check for length overflow
857
858         * der_get.c: rewrite integer overflow tests w/o SIZE_T_MAX
859
860         * check-common.c (generic_decode_fail): only copy in if checklen
861         its less then 0xffffff and larger than 0.
862
863         * gen_decode.c (find_tag): find external references, we can't
864         handle those, so tell user that instead of crashing
865
866 2005-07-18  Dave Love  <fx@gnu.org>
867
868         * extra.c (free_heim_any_set): Fix return.
869
870         * gen_decode.c (find_tag): Fix return in TType case.
871
872 2005-07-13  Love Hörnquist Åstrand  <lha@it.su.se>
873
874         * gen_encode.c (TChoice): add () to make sure variable expression
875         is evaluated correctly
876
877         * gen_length.c (TChoice): add () to make sure variable expression
878         is evaluated correctly
879
880         * k5.asn1: reapply 1.43 that got lost in the merge: rename pvno to
881         krb5-pvno
882
883 2005-07-12  Love Hörnquist Åstrand  <lha@it.su.se>
884
885         * gen_decode.c (decode_type): TChoice: set the label
886
887         * check-gen.c (cmp_Name): do at least some checking
888
889         * gen_locl.h: rename function filename() to get_filename() to
890         avoid shadowing
891
892         * lex.l: rename function filename() to get_filename() to avoid
893         shadowing
894
895         * gen.c: rename function filename() to get_filename() to avoid
896         shadowing
897
898         * check-der.c: add failure checks for large oid elements
899
900         * check-gen.c: add failure checks for tag (and large tags)
901
902         * der_get.c: Check for integer overflows in tags and oid elements.
903
904 2005-07-10  Assar Westerlund  <assar@kth.se>
905
906         * gen_decode.c: Fix decoding of choices to select which branch to
907         try based on the tag and return an error if that branch fails.
908
909         * check-gen.c: Fix short choice test cases.
910
911 2005-07-09  Assar Westerlund  <assar@kth.se>
912
913         * symbol.c:
914         * parse.y:
915         * main.c:
916         * lex.l:
917         * gen_length.c:
918         * gen_free.c:
919         * gen_encode.c:
920         * gen_decode.c:
921         * gen_copy.c:
922         * gen.c:
923         * extra.c:
924         * check-gen.c:
925         * check-der.c:
926         * check-common.c:
927         * asn1_print.c:
928         * asn1_gen.c:
929         Use emalloc, ecalloc, and estrdup.
930         Check return value from asprintf.
931         Make sure that malloc(0) returning NULL is not treated as an
932         error.
933
934 2005-07-10  Love Hörnquist Åstrand  <lha@it.su.se>
935
936         * check-gen.c: test cases for CHOICE, its too liberal right now,
937         it don't fail hard on failure on after it successfully decoded the
938         first tag in a choice branch
939
940         * asn1_gen.c: calculate the basename for the output file,
941         pretty-print tag number
942
943         * test.gen: sample for asn1_gen
944
945         * check-gen.c: check errors in SEQUENCE
946
947         * Makefile.am: build asn1_gen, TESTSeq and new, and class/type/tag
948         string<->num converter.
949
950         * test.asn1: TESTSeq, for testing SEQUENCE
951
952         * asn1_gen.c: generator for asn1 data
953
954         * asn1_print.c: use class/type/tag string<->num converter.
955
956         * der.c: Add class/type/tag string<->num converter.
957
958         * der.h: Add class/type/tag string<->num converter.
959         Prototypes/structures for new time bits.
960
961 2005-07-09  Love Hörnquist Åstrand  <lha@it.su.se>
962
963         * der_get.c (der_get_unsigned) check for length overflow
964         (der_get_integer) ditto
965         (der_get_general_string) ditto
966
967         * der_get.c: check for overruns using SIZE_T_MAX
968
969         * check-der.c: check BIT STRING and OBJECT IDENTIFIER error cases
970
971         * check-common.c (generic_decode_fail): allocate 4K for the over
972         sized memory test
973
974         * der_get.c (der_get_oid): check for integer overruns and
975         unterminated oid correctly
976
977         * check-common.h (map_alloc, generic_decode_fail): prototypes
978
979         * check-common.c (map_alloc): make input buffer const
980         (generic_decode_fail): verify decoding failures
981
982 2005-07-05  Love Hörnquist Åstrand  <lha@it.su.se>
983
984         * gen_encode.c: split up the printf for SET OF, also use the
985         generate name for the symbol in the SET OF, if not, the name might
986         contain non valid variable name characters (like -)
987
988 2005-07-04  Love Hörnquist Åstrand  <lha@it.su.se>
989
990         * Makefile.am: move pkcs12 defines into their own namespace
991
992         * pkcs12.asn1: move pkcs12 defines into their own namespace
993
994         * pkcs9.asn1: add PKCS9-friendlyName with workaround for SET OF
995         bug
996
997         * heim_asn1.h: reuse heim_octet_string for heim_any types
998
999         * main.c: use optidx, handle the case where name is missing and
1000         use base of filename then
1001
1002         * asn1-common.h: include ASN1_MALLOC_ENCODE
1003
1004         * gen_decode.c: use less context so lower indentention level, add
1005         missing {} where needed
1006
1007 2005-07-02  Love Hörnquist Åstrand  <lha@it.su.se>
1008
1009         * gen_copy.c: Use a global variable to keep track of if the 'goto
1010         fail' was used, and use that to only generate the label if needed.
1011
1012         * asn1_print.c: do indefinite form loop detection and stop after
1013         10000 recursive indefinite forms, stops crashing due to running
1014         out of stack
1015
1016         * asn1_print.c: catch badly formated indefinite length data
1017         (missing EndOfContent tag) add (negative) indent flag to speed up
1018         testing
1019
1020 2005-07-01  Love Hörnquist Åstrand  <lha@it.su.se>
1021
1022         * canthandle.asn1: Can't handle primitives in CHOICE
1023
1024         * gen_decode.c: Check if malloc failes
1025
1026         * gen_copy.c: Make sure to free memory on failure
1027
1028         * gen_decode.c: Check if malloc failes, rename "reallen" to
1029         tagdatalen since that is what it is.
1030
1031 2005-05-29  Love Hörnquist Åstrand  <lha@it.su.se>
1032
1033         * prefix Der_class with ASN1_C_ to avoid problems with system
1034         headerfiles that pollute the name space
1035
1036 2005-05-20  Love Hörnquist Åstrand  <lha@it.su.se>
1037
1038         * pkcs12.asn1: add PKCS12CertBag
1039
1040         * pkcs9.asn1: add pkcs9 certtype x509 certificate
1041
1042         * Makefile.am: add pkcs12 certbag and pkcs9 certtype x509
1043         certificate
1044
1045         * pkcs12.asn1: split off PKCS12Attributes from SafeBag so it can
1046         be reused
1047
1048         * Makefile.am: add PKCS12Attributes
1049
1050 2005-05-10  Love Hörnquist Åstrand  <lha@it.su.se>
1051
1052         * canthandle.asn1: fix tags in example
1053
1054 2005-05-02  Love Hörnquist Åstrand  <lha@it.su.se>
1055
1056         * pkinit.asn1: Let the Windows nonce be an int32 (signed), if not
1057         it will fail when using Windows PK-INIT.
1058
1059 2005-05-01  Love Hörnquist Åstrand  <lha@it.su.se>
1060
1061         * Makefile.am: add pkcs12-PBEParams
1062
1063         * pkcs12.asn1: add pkcs12-PBEParams
1064
1065         * parse.y: objid_element: exit when the condition fails
1066
1067 2005-04-26  Love Hörnquist Åstrand  <lha@it.su.se>
1068
1069         * gen_glue.c: 1.8: switch the units variable to a
1070         function. gcc-4.1 needs the size of the structure if its defined
1071         as extern struct units foo_units[] an we don't want to include
1072         <parse_units.h> in the generate headerfile
1073
1074 2005-03-20  Love Hörnquist Åstrand  <lha@it.su.se>
1075
1076         * Makefile.am: add the des-ede3-cbc oid that ansi x9.52 uses
1077
1078         * rfc2459.asn1: add the des-ede3-cbc oid that ansi x9.52 uses
1079
1080         * Makefile.am: add oids for x509
1081
1082         * rfc2459.asn1: add oids now when the compiler can handle them
1083
1084 2005-03-19  Love Hörnquist Åstrand  <lha@it.su.se>
1085
1086         * Makefile.am: add pkcs9 files
1087
1088         * pkcs9.asn1: add small number of oids from pkcs9
1089
1090 2005-03-14  Love Hörnquist Åstrand  <lha@it.su.se>
1091
1092         * Makefile.am: add a bunch of pkcs1/pkcs2/pkcs3/aes oids
1093
1094         * rfc2459.asn1: add a bunch of pkcs1/pkcs2/pkcs3/aes oids
1095
1096 2005-03-10  Love Hörnquist Åstrand  <lha@it.su.se>
1097
1098         * k5.asn1: merge pa-numbers
1099
1100 2005-03-09  Love Hörnquist Åstrand  <lha@it.su.se>
1101
1102         * Makefile.am: add oid's
1103
1104         * rfc2459.asn1: add encryption oids
1105
1106         * CMS.asn1: add signedAndEnvelopedData oid
1107
1108         * pkcs12.asn1: add pkcs12 oids
1109
1110         * CMS.asn1: add pkcs7 oids
1111
1112 2005-03-08  Love Hörnquist Åstrand  <lha@it.su.se>
1113
1114         * gen.c (generate_header_of_codefile): break out the header
1115         section generation
1116         (generate_constant): generate a function that return the oid
1117         inside a heim_oid
1118
1119         * parse.y: fix the ordering of the oid's
1120
1121         * parse.y: handle OBJECT IDENTIFIER as value construct
1122
1123 2005-02-24  Love Hörnquist Åstrand  <lha@it.su.se>
1124
1125         * Preserve content of CHOICE element that is unknown if ellipsis
1126         was used when defining the structure
1127
1128 2005-02-13  Love Hörnquist Åstrand  <lha@it.su.se>
1129
1130         * parse.y: use ANS1_TAILQ macros
1131
1132         * *.[ch]: use ASN1_TAILQ macros
1133
1134         * asn1_queue.h: inline bsd sys/queue.h and rename TAILQ to
1135         ASN1_TAILQ to avoid problems with name polluting headerfiles
1136
1137 2005-01-19  Love Hörnquist Åstrand  <lha@it.su.se>
1138
1139         * gen.c: pull in <krb5-types.h>
1140
1141 2005-01-10  Love Hörnquist Åstrand  <lha@it.su.se>
1142
1143         * Add BMPString and UniversalString
1144
1145         * k5.asn1 (EtypeList): make INTEGER constrained (use krb5int32)
1146
1147 2005-01-07  Love Hörnquist Åstrand  <lha@it.su.se>
1148
1149         * rfc2459.asn1: add GeneralNames
1150
1151 2004-11-21  Love Hörnquist Åstrand  <lha@it.su.se>
1152
1153         * gen.c: use unsigned integer for len of SequenceOf/SetOf and
1154         bitstring names
1155
1156 2004-11-10  Love Hörnquist Åstrand  <lha@it.su.se>
1157
1158         * Makefile.am: switch to krb5int32 and krb5uint32
1159
1160         * Unify that three integer types TInteger TUInteger and TBigInteger.
1161         Start to use constrained integers where appropriate.
1162
1163 2004-10-13  Love Hörnquist Åstrand  <lha@it.su.se>
1164
1165         * CMS.asn1: remove no longer used commented out elements
1166
1167         * gen_glue.c: make units structures const
1168
1169 2004-10-12  Love Hörnquist Åstrand  <lha@it.su.se>
1170
1171         * lex.l: handle hex number with [a-fA-F] in them
1172
1173 2004-10-07  Love Hörnquist Åstrand  <lha@it.su.se>
1174
1175         * gen_free.c: free _save for CHOICE too
1176
1177         * rfc2459.asn1: use Name and not heim_any
1178
1179         * gen_decode.c: if malloc for _save failes, goto fail so we free
1180         the structure
1181
1182         * gen_copy.c: copy _save for CHOICE too
1183
1184         * gen.c: add _save for CHOICE too
1185
1186         * CMS.asn1: RecipientIdentifier and SignerIdentifier is the same
1187         name is CMSIdentifier and add glue for that so we can share code
1188         use Name and not heim_any
1189
1190 2004-10-03  Love Hörnquist Åstrand  <lha@it.su.se>
1191
1192         * Makefile.am: drop AlgorithmIdentifierNonOpt add
1193         {RC2CBC,}CBCParameter here where they belong
1194
1195         * CMS.asn1: add {RC2CBC,}CBCParameter here where they belong
1196
1197         * rfc2459.asn1: drop AlgorithmIdentifierNonOpt
1198
1199         * rfc2459.asn1: stop using AlgorithmIdentifierNonOpt hint that we
1200         really want to use Name and some MS stuff
1201
1202 2004-09-05  Love Hörnquist Åstrand  <lha@it.su.se>
1203
1204         * asn1_print.c: handle end of content, this is part BER support,
1205         however, OCTET STRING need some tweeking too.
1206
1207         * der.h: add UT_EndOfContent
1208
1209         * test.asn1: test asn1 spec file
1210
1211         * check-gen.c: check larget tags
1212
1213         * Makefile.am: add test asn1 spec file that we can use for testing
1214         constructs that doesn't exists in already existing spec (like
1215         large tags)
1216
1217         * der_put.c (der_put_tag): make sure there are space for the head
1218         tag when we are dealing with large tags (>30)
1219
1220         * check-gen.c: add test for tag length
1221
1222         * check-common.c: export the map_ functions for OVERRUN/UNDERRUN
1223         detection restore the SIGSEGV handler when test is done
1224
1225         * check-common.h: export the map_ functions for OVERRUN/UNDERRUN
1226         detection
1227
1228         * gen_decode.c: check that the tag-length is not longer the length
1229         use forwstr on some more places
1230
1231         * parse.y: revert part of 1.14.2.21, multiple IMPORT isn't allowed
1232
1233         * pkinit.asn1: correct usage of IMPORT
1234
1235         * CMS.asn1: correct usage of IMPORT
1236
1237         * pkcs8.asn1: pkcs8, encrypting private key
1238
1239         * pkcs12.asn1: pkcs12, key/crl/certificate file transport PDU
1240
1241         * Makefile.am: add pkcs8 and pkcs12
1242
1243         * der_free.c: reset length when freing primitives
1244
1245         * CMS.asn1: add EncryptedData
1246
1247 2004-08-26  Love Hörnquist Åstrand  <lha@it.su.se>
1248
1249         * gen_decode.c (decode_type): if the entry is already optional
1250         when parsing a tag and we allocate the structure, not pass down
1251         optional since that will case the subtype's decode_type also to
1252         allocate an entry. and we'll leak an entry. Bug from Luke Howard
1253         <lukeh@padl.com>. While here, use calloc.
1254
1255 2004-04-29  Love Hörnquist Åstrand  <lha@it.su.se>
1256
1257         * k5.asn1: shift the last added etypes one step so rc2 doesn't
1258         stomp on cram-md5
1259
1260 2004-04-26  Love Hörnquist Åstrand  <lha@it.su.se>
1261
1262         * k5.asn1: add ETYPE_AESNNN_CBC_NONE
1263
1264         * CMS.asn1: add CMS symmetrical parameters moved to k5.asn1
1265
1266         * k5.asn1: add CMS symmetrical parameters here, more nametypes
1267         enctype rc2-cbc
1268
1269 2004-04-25  Love Hörnquist Åstrand  <lha@it.su.se>
1270
1271         * gen_decode.c: free data on decode failure
1272
1273 2004-04-24  Love Hörnquist Åstrand  <lha@it.su.se>
1274
1275         * Makefile.am: add CBCParameter and RC2CBCParameter
1276
1277         * CMS.asn1: add CBCParameter and RC2CBCParameter
1278
1279 2004-04-20  Love Hörnquist Åstrand  <lha@it.su.se>
1280
1281         * check-der.c: add simple test for oid's, used to trigger malloc
1282         bugs in you have picky malloc (like valgrind/purify/third)
1283
1284         * der_get.c (der_get_oid): handle all oid components being smaller
1285         then 127 and allocate one extra element since first byte is split
1286         to to elements.
1287
1288 2004-04-16  Love Hörnquist Åstrand  <lha@it.su.se>
1289
1290         * canthandle.asn1: one thing handled
1291
1292         * gen_decode.c: handle OPTIONAL CONS-tag-less elements
1293
1294         * der_length.c (length_len): since length is no longer the same as
1295         an unsigned, do the length counting here. ("unsigned" is zero
1296         padded when most significate bit is set, length is not)
1297
1298 2004-04-12  Love Hörnquist Åstrand  <lha@it.su.se>
1299
1300         * canthandle.asn1: document by example what the encoder can't
1301         handle right now
1302
1303         * Makefile.am: add more stuff needed whem implementing x509
1304         preserve TBSCertificate
1305
1306         * rfc2459.asn1: add more stuff needed whem implementing x509
1307
1308         * CMS.asn1: move some type to rfc2459.asn1 where they belong (and
1309         import them)
1310
1311         * gen.c: preserve the raw data when asked too
1312
1313         * gen_decode.c: preserve the raw data when asked too
1314
1315         * gen_copy.c: preserve the raw data when asked too
1316
1317         * gen_free.c: preserve the raw data when asked too
1318
1319         * gen_locl.h: add preserve_type
1320
1321         * heim_asn1.h: add heim_any_cmp
1322
1323         * main.c: add flag --preserve-binary=Symbol1,Symbol2,... that make
1324         the compiler generate stubs to save the raw data, its not used
1325         right now when generating the stat
1326
1327         * k5.asn1: Windows uses PADATA 15 for the request too
1328
1329         * extra.c: add heim_any_cmp
1330
1331         * der_put.c: implement UTCtime correctly
1332
1333         * der_locl.h: remove #ifdef HAVE_TIMEGM\ntimegm\n#endif here from
1334         der.h so one day der.h can get installed
1335
1336         * der_length.c: implement UTCtime correctly
1337
1338         * der_get.c: implement UTCtime correctly, prefix dce_fix with
1339         _heim_fix
1340
1341         * der_copy.c: make copy_bit_string work again
1342
1343         * der_cmp.c: add octet_string, integer, bit_string cmp functions
1344
1345         * der.h: hide away more symbols, add more _cmp functions
1346
1347 2004-03-06  Love Hörnquist Åstrand  <lha@it.su.se>
1348
1349         * Makefile.am: add more pkix types make k5 use rfc150 bitstrings,
1350         everything else use der bitstrings
1351
1352         * main.c: as a compile time option, handle no rfc1510 bitstrings
1353
1354         * gen_locl.h: rfc1510 bitstrings flag
1355
1356         * gen_length.c: as a compile time option, handle no rfc1510
1357         bitstrings
1358
1359         * gen_encode.c: as a compile time option, handle no rfc1510
1360         bitstrings
1361
1362         * gen_decode.c: handle no rfc1510 bitstrings
1363
1364         * check-gen.c: test for bitstrings
1365
1366         * rfc2459.asn1: add Certificates and KeyUsage
1367
1368 2004-02-22  Love Hörnquist Åstrand  <lha@it.su.se>
1369
1370         * pkinit.asn1: use Name from PKIX
1371
1372         * rfc2459.asn1: add more silly string types to DirectoryString
1373
1374         * gen_encode.c: add checks for data overflow when encoding
1375         TBitString with members encode SET OF correctly by bytewise
1376         sorting the members
1377
1378         * gen_decode.c: add checks for data overrun when encoding
1379         TBitString with members
1380
1381         * der_put.c: add _heim_der_set_sort
1382
1383         * der_cmp.c: rename oid_cmp to heim_oid_cmp
1384
1385         * der.h: rename oid_cmp to heim_oid_cmp, add _heim_der_set_sort
1386
1387         * check-gen.c: add check for Name and (commented out) heim_integer
1388
1389         * check-der.c: test for "der_length.c: Fix len_unsigned for
1390         certain negative integers, it got the length wrong" , from
1391         Panasas, Inc.
1392
1393         * der_length.c: Fix len_unsigned for certain negative integers, it
1394         got the length wrong, fix from Panasas, Inc.
1395
1396         rename len_int and len_unsigned to _heim_\&
1397
1398         * gen_length.c: 1.14: (length_type): TSequenceOf: add up the size
1399         of all the elements, don't use just the size of the last element.
1400
1401 2004-02-20  Love Hörnquist Åstrand  <lha@it.su.se>
1402
1403         * rfc2459.asn1: include defintion of Name
1404
1405         * pkinit.asn1: no need for ContentType, its cms internal
1406
1407         * CMS.asn1: move ContentInfo to CMS
1408
1409         * pkinit.asn1: update to pk-init-18, move ContentInfo to CMS
1410
1411         * Makefile.am: align with pk-init-18, move contentinfo to cms
1412
1413 2004-02-17  Love Hörnquist Åstrand  <lha@it.su.se>
1414
1415         * der_get.c: rewrite previous commit
1416
1417         * der_get.c (der_get_heim_integer): handle positive integer
1418         starting with 0
1419
1420         * der_length.c (der_put_heim_integer): try handle negative
1421         integers better (?)
1422
1423         * der_put.c (der_put_heim_integer): try handle negative integers
1424         better
1425
1426         * der_get.c (der_get_heim_integer): dont abort on negative integer just
1427         return ASN1_OVERRUN for now
1428
1429         * parse.y: add ia5string, and printablestring
1430
1431         * gen_length.c: add ia5string, and printablestring
1432
1433         * gen_free.c: add ia5string, and printablestring
1434
1435         * gen_decode.c: add ia5string, and printablestring
1436
1437         * gen_copy.c: add ia5string, and printablestring
1438
1439         * gen.c: add ia5string, printablestring, and utf8string change
1440         implemetation of heim_integer and store the data as bigendian byte
1441         array with a external flag for signedness
1442
1443         * der_put.c: add ia5string, printablestring, and utf8string change
1444         implemetation of heim_integer and store the data as bigendian byte
1445         array with a external flag for signedness
1446
1447         * der_length.c: add ia5string, printablestring, and utf8string
1448         change implemetation of heim_integer and store the data as
1449         bigendian byte array with a external flag for signedness
1450
1451         * der_get.c: add ia5string, printablestring, and utf8string change
1452         implemetation of heim_integer and store the data as bigendian byte
1453         array with a external flag for signedness
1454
1455         * der_free.c: add ia5string, printablestring, and utf8string
1456
1457         * der_copy.c: add ia5string, printablestring, and utf8string
1458
1459         * der.h: add ia5string, printablestring, and utf8string
1460
1461         * asn1-common.h: add signedness flag to heim_integer, add
1462         ia5string and printablestring
1463
1464 2004-02-13  Love Hörnquist Åstrand  <lha@it.su.se>
1465
1466         * rfc2459.asn1: use BIGINTEGER where appropriate
1467
1468         * setchgpw2.asn1: spelling and add op-req again
1469
1470 2004-02-12  Love Hörnquist Åstrand  <lha@it.su.se>
1471
1472         * Makefile.am: clean up better
1473
1474 2004-02-11  Love Hörnquist Åstrand  <lha@it.su.se>
1475
1476         * gen_decode.c (decode_type): TTag, don't overshare the reallen
1477         variable
1478
1479         * Makefile.am: adapt to log file name change
1480
1481         * gen.c: genereate log file name based on base name
1482
1483 2003-11-26  Love Hörnquist Åstrand  <lha@it.su.se>
1484
1485         * Makefile.am: += asn1_AlgorithmIdentifierNonOpt.x
1486
1487         * rfc2459.asn1: add AlgorithmIdentifierNonOpt and use it where
1488         it's needed, make DomainParameters.validationParms heim_any as a
1489         hack. Both are workarounds for the problem with heimdal's asn1
1490         compiler have with decoing context tagless OPTIONALs.
1491
1492         * pkinit.asn1: don't import AlgorithmIdentifier
1493
1494 2003-11-25  Love Hörnquist Åstrand  <lha@it.su.se>
1495
1496         * der_put.c (der_put_bit_string): make it work somewhat better
1497         (should really prune off all trailing zeros)
1498
1499         * gen_encode.c (encode_type): bit string is not a constructed type
1500
1501         * der_length.c (length_bit_string): calculate right length for
1502         bitstrings
1503
1504 2003-11-24  Love Hörnquist Åstrand  <lha@it.su.se>
1505
1506         * der_cmp.c (oid_cmp): compare the whole array, not just
1507         length/sizeof(component)
1508
1509         * check-common.c: mmap the scratch areas, mprotect before and
1510         after, align data to the edge of the mprotect()ed area to provoke
1511         bugs
1512
1513         * Makefile.am: add DomainParameters, ValidationParms
1514
1515         * rfc2459.asn1: add DomainParameters, ValidationParms
1516
1517         * check-der.c: add free function
1518
1519         * check-common.h: add free function
1520
1521         * check-common.c: add free function
1522
1523         * check-gen.c: check KRB-ERROR
1524
1525         * asn1_print.c: check end of tag_names loop into APPL class tags
1526
1527 2003-11-23  Love Hörnquist Åstrand  <lha@it.su.se>
1528
1529         * der_put.c (der_put_generalized_time): check size, not *size
1530
1531 2003-11-11  Love Hörnquist Åstrand  <lha@it.su.se>
1532
1533         * gen_decode.c (decode_type/TBitString): skip over
1534         skipped-bits-in-last-octet octet
1535
1536         * gen_glue.c (generate_units): generate units in reverse order to
1537         keep unparse_units happy
1538
1539 2003-11-08  Love Hörnquist Åstrand  <lha@it.su.se>
1540
1541         * Makefile.am: generate all silly pkinit files
1542
1543         * pkinit.asn1: make it work again, add strange ms structures
1544
1545         * k5.asn1: PROV-SRV-LOCATION, PacketCable provisioning server
1546         location, PKT-SP-SEC-I09-030728
1547
1548         * asn1-common.h: add bit string
1549
1550         * der_put.c: add bit string and utctime
1551
1552         * gen.c: add bit string and utctime
1553
1554         * gen_copy.c: add bit string and utctime
1555
1556         * der_copy.c: add bit string
1557
1558         * gen_decode.c: add utctime and bitstring
1559
1560         * gen_encode.c: add utctime and bitstring
1561
1562         * gen_free.c: add utctime and bitstring
1563
1564         * gen_glue.c: don't generate glue for member-less bit strings
1565
1566         * der_cmp.c: compare function for oids
1567
1568         * gen_length.c: add utc time, make bit string work for bits
1569         strings w/o any members
1570
1571         * der_cmp.c: compare function for oids
1572
1573         * der.h: update boolean prototypes add utctime and bit_string
1574
1575         * der_free.c: add free_bit_string
1576
1577         * der_get.c: add bit string and utctime
1578
1579         * der_length.c: add bit string and utctime, fix memory leak in
1580         length_generalized_time
1581
1582         * CMS.asn1: make EncryptedContentInfo.encryptedContent a OCTET
1583         STRING to make the generator do the right thing with IMPLICIT
1584         mumble OPTIONAL, make CertificateSet a heim_any_set
1585
1586         * extra.c, heim_asn1.h: add any_set, instead of just consuming one
1587         der object, its consumes the rest of the data avaible
1588
1589         * extra.c, heim_asn1.h: extern implementation of ANY, decoder
1590         needs to have hack removed when generator handles tagless optional
1591         data
1592
1593         * pkinit.asn1: add KdcDHKeyInfo-Win2k
1594
1595 2003-11-07  Love Hörnquist Åstrand  <lha@it.su.se>
1596
1597         * der_copy.c (copy_oid): copy all components
1598
1599         * parse.y: parse UTCTime, allow multiple IMPORT
1600
1601         * symbol.h: add TUTCTime
1602
1603         * rfc2459.asn1: update
1604
1605         * x509.asn1: update
1606
1607         * pkinit.asn1: update
1608
1609         * CMS.asn1: new file
1610
1611         * asn1_print.c: print some more lengths, check length before
1612         steping out in the void, parse SET, only go down CONTEXT of type
1613         CONS (not PRIM)
1614
1615 2003-09-17  Love Hörnquist Åstrand  <lha@it.su.se>
1616
1617         * gen_encode.c (TChoice, TSequence): code element in reverse
1618         order...
1619
1620 2003-09-16  Love Hörnquist Åstrand  <lha@it.su.se>
1621
1622         * gen.c: store NULL's as int's for now
1623
1624         * parse.y: remove dup of type def of UsefulType
1625
1626 2003-09-11  Love Hörnquist Åstrand  <lha@it.su.se>
1627
1628         * gen_decode.c (decode_type): if malloc failes, return ENOMEM
1629
1630 2003-09-10  Love Hörnquist Åstrand  <lha@it.su.se>
1631
1632         * parse.y: kw_UTF8String is a token put tag around the OID
1633
1634         * asn1_print.c (UT_Integer): when the integer is larger then int
1635         can handle, just print BIG INT and its size
1636
1637 2003-09-10  Love Hörnquist Åstrand  <lha@it.su.se>
1638
1639         * gen_decode.c (decode_type): TTag, try to generate prettier code
1640         in the non optional case, also remember to update length
1641
1642 2003-01-22  Johan Danielsson  <joda@pdc.kth.se>
1643
1644         * gen_decode.c: add flag to decode broken DCE BER encoding
1645
1646         * gen_locl.h: add flag to decode broken DCE BER encoding
1647
1648         * main.c: add flag to decode broken DCE BER encoding
1649