dladdr() in fips.c and --enable-hmac-binary-check and --enable-static

Werner Koch wk at gnupg.org
Wed Apr 6 20:22:54 CEST 2016

On Wed,  6 Apr 2016 16:33, burts at us.ibm.com said:

> variable DL_LIBS (in variables xxx_LDADD); needed for mpicalc.c, and
> presumably also needed for any other binaries built with libgcrypt.

I just pushed this Patch:

  commit 65c63144b66392f40b991684789b8b793248e3ba
  Author: Werner Koch <wk at gnupg.org>
  Date:   Wed Apr 6 20:16:19 2016 +0200

    Allow building with configure option --enable-hmac-binary-check.
    * src/Makefile.am (mpicalc_LDADD): Add DL_LIBS.
    * src/fips.c (check_binary_integrity): Allow use of hmac256 output.
    * src/hmac256.c (main): Add option --stdkey
    Note that when using that configure option "make check" won't work in
    one go.  Instead use
      cd src/.libs
      ../hmac256  --stdkey '' libgcrypt.so.20 >.libgcrypt.so.20.hmac
      cd ../..
      make check
    Reported-by: Burt Silverman
    Signed-off-by: Werner Koch <wk at gnupg.org>

That should fix this problem and a bit more.



Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.

More information about the Gcrypt-devel mailing list