Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-1780

implicit declaration of function ‘EVP_default_properties_enable_fips’

    • openssl-3.0.7-25.el9
    • None
    • Moderate
    • 2
    • rhel-sst-security-crypto
    • ssg_security
    • 20
    • 24
    • 0.1
    • QE ack
    • False
    • Hide

      None

      Show
      None
    • No
    • Crypto24Q1, Crypto23Q4
    • Hide

      SanityOnly, manually check that crypto/provider_conf.c includes openssl/evp.h 

      Show
      SanityOnly, manually check that crypto/provider_conf.c includes openssl/evp.h 
    • Pass
    • Not Needed
    • RegressionOnly
    • None

      Description of problem:
      Compiling the rhel-9-main openssl code in edk2 context fails due to warnings
      and edk2 building the openssl with -Werror.

      Version-Release number of selected component (if applicable):
      git://pkgs.devel.redhat.com/rpms/openssl rhel-9-main
      commit d30c497ed1125a1e780be4cf1c713041353bc88a

      How reproducible:
      100%

      Steps to Reproduce:
      1. compile rhel openssl rpm with -Werror enabled.

      Actual results:
      /vmdisk/nvme/tmp/rpmbuild/build/edk2-819cfc6b42a6/CryptoPkg/Library/OpensslLib/openssl/crypto/provider_conf.c: In function ‘provider_conf_init’:
      /vmdisk/nvme/tmp/rpmbuild/build/edk2-819cfc6b42a6/CryptoPkg/Library/OpensslLib/openssl/crypto/provider_conf.c:341:13: error: implicit declaration of function ‘EVP_default_properties_enable_fips’ [-Werror=implicit-function-declaration]
      341 | if (EVP_default_properties_enable_fips(libctx, 1) != 1)

      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      cc1: all warnings being treated as errors

      Additional info:
      Seems to be a missing '#include <openssl/evp.h>'

              dbelyavs@redhat.com Dmitry Belyavskiy
              rhn-engineering-ghoffman Gerd Hoffmann
              Dmitry Belyavskiy Dmitry Belyavskiy
              Alicja Kario Alicja Kario
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: