Import upstream 19d378f44:
ASN.1 INTEGERs will now compile to C int64_t or uint64_t, depending on whether the constraint ranges include numbers that cannot be represented in 32-bit ints and whether they include negative numbers. Template backend support included. check-template is now built with --template, so we know we're testing it. Tests included.
This is a direct application of the upstream patch, but it DOES NOT compile.
heimdal: Add 64-bit integer support to ASN.1 compiler, part 2
This adjusts the generated files:
- asn1parse.c, asn1parse.h (although these seem to be generated by the FreeBSD build system too)
- der-protos.h, which needs a bunch of new prototypes. I stole them from a der-protos.h generated by the upstream build system, which uses a perl script for this.
- adjust printf format strings for int64_t. Upstream uses %lld for this, but that is not portable, and leads to lots of -Werror warnings.