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
Unknown Object (File)
Apr 29 2024, 7:13 AM
Unknown Object (File)
Apr 26 2024, 5:14 AM
Unknown Object (File)
Apr 19 2024, 5:27 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