Hi all,
OpenBSD 7.1 was just released and pkgsrc failed to bootstrap
with a build error in pkg_install:
pkcs7.c:176:8: error: incomplete definition of type 'struct x509_st'
if (X509_get_extended_key_usage(sk_X509_value(signers, i)) != pkg_key_usage) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pkcs7.c:60:41: note: expanded from macro 'X509_get_extended_key_usage'
#define X509_get_extended_key_usage(x) x->ex_xkusage
~^
This macro (and another) get defined conditionally as a fallback
for older OpenSSL versions, and for LibreSSL. But now LibreSSL has
introduced the functions too. Attached patch updates the check.
This is not usually my area, so ok to commit?
Sijmen
Attachment:
bootstrap-openbsd71.patch
Description: Binary data