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