CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2026/04/02 20:20:04

Modified files:
        usr.sbin/rpki-client: cert.c 

Log message:
rpki-client: cast extension passed to X509V3_EXT_d2i()

This function has never modified the extensions. It only uses the extension's
object (OID) to retrieve the X509_EXT_METHOD and then calls the appropriate
d2i handler on the extension's value. OpenSSL 4 correctly added a const
qualifier to this function.

The cast is a noop right now, but once we switch the extension handlers'
signatures to take a const, this will generate a warning due to passing a
const pointer to a non-const function for OpensSL < 4 and LibreSSL.
Annotate the cast for our future selves.

discussed with claudio

Reply via email to