Page MenuHomeFreeBSD

heimdal: Add 64-bit integer support to ASN.1 compiler, part 1
AbandonedPublic

Authored by dim on Apr 16 2024, 7:02 PM.
Tags
None
Referenced Files
F167856274: D44813.diff
Tue, Aug 25, 1:07 AM
Unknown Object (File)
Mon, Aug 17, 6:12 PM
Unknown Object (File)
Sat, Aug 15, 8:35 PM
Unknown Object (File)
Fri, Aug 14, 7:31 PM
Unknown Object (File)
Thu, Aug 13, 12:58 PM
Unknown Object (File)
Thu, Aug 13, 7:14 AM
Unknown Object (File)
Wed, Aug 12, 4:44 PM
Unknown Object (File)
Sat, Aug 8, 6:03 PM
Subscribers

Details

Reviewers
emaste
cy
Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 57130
Build 54018: arc lint + arc unit