[Bug 278072] undeclared function 'fbsd_ossl_provider_load' in krb5

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 31 Mar 2024 14:41:51 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278072

            Bug ID: 278072
           Summary: undeclared function 'fbsd_ossl_provider_load' in krb5
           Product: Base System
           Version: 14.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: brnrd@freebsd.org

Created attachment 249596
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=249596&action=edit
git diff for kerberos5

Building FreeBSD with non-default libcrypto/libssl fails on
fbsd_ossl_provider_load due to misplaced #ifdef.

Both the header kerberos5/include/crypto-headers.h as well as
crypto/heimdal/lib/krb5/context.c have ifdefs for OpenSSL 3 and later.
fbsd_ossl_provider_load should return 0 when no providers are available. Due to
misplaced ifdef in the crypto-headers.h the build fails.

> /usr/src/crypto/heimdal/lib/krb5/context.c:395:11: error: call to undeclared
> function 'fbsd_ossl_provider_load'; ISO C99 and later do not support implicit
> function declarations [-Werror,-Wimplicit-function-declaration]
>    ret = fbsd_ossl_provider_load();

Not blotting out the fbsd_ossl_provider.h makes the build fail, can't see any
issues in consumers of fbsd_ossl_provider_load.

-- 
You are receiving this mail because:
You are the assignee for the bug.