CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2026/11/11 06:27:56
Modified files:
usr.sbin/rpki-client: extern.h mft.c parser.c
Log message:
rpki-client: remove the BN_CTX from the parser
Before threads were added to the parser, having a global BN_CTX was easy
enough. While it saves many small allocations, I don't think it's worth
the complexity.
A bignum is a struct containing a pointer to an array of words and then
four ints. Sequence numbers are at most 20 octets (fitting into 3 8-bit
words on 64 bits), so each seqnum requires at most 48 bytes. We can check
with two bignums instead of three without loss of clarity, so ultimately
we have all this complexity to avoid allocations of at most 96 bytes.
ok claudio job