CVSROOT:        /cvs
Module name:    src
Changes by:     t...@cvs.openbsd.org    2020/11/09 09:58:09

Modified files:
        usr.sbin/rpki-client: Tag: OPENBSD_6_7 mft.c 

Log message:
Fix checks for manifest validity interval

The check_validity() function used the X509_cmp_time() functions with
GeneralizedTime.  This doesn't work with current dates since LibreSSL
enforces conformance with RFC 5280 in X509_cmp_time(), which requires
that dates before 2050 are represented with UTCTime.  The functions
would return an error, but missing error checking led to failing to
detect expired or not yet valid manifests.  Fix this by converting the
dates into struct tm and using ASN1_time_tm_cmp() instead.

With input from claudio, jsing

ok benno claudio jsing

This is errata/6.7/029_rpki.patch.sig

Reply via email to