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