1. 09 Dec, 2019 1 commit
  2. 07 Nov, 2019 1 commit
  3. 12 Sep, 2019 1 commit
    • Michał Kępień's avatar
      Make lib/dns/tests/tkey_test.c more portable · 119f3e0c
      Michał Kępień authored
      Weak symbols are handled differently by different dynamic linkers.  With
      glibc, lib/dns/tests/tkey_test works as expected no matter whether
      --with-libtool is used or not: __attribute__((weak)) prevents a static
      build from failing and it just so happens that the desired symbols are
      picked at runtime for dynamic builds.  However, with BSD libc, the
      libdns functions called from lib/dns/tests/tkey_test.c use the "real"
      memory allocation functions from libisc, thus breaking that unit test.
      (Note: similar behavior can be reproduced with glibc by setting the
      LD_DYNAMIC_WEAK environment variable.)
      The simplest way to make lib/dns/tests/tkey_test work reliably is to
      drop all uses of __attribute__((weak)) in it - this way, the memory
      functions inside lib/dns/tests/tkey_test.c will always be used instead
      of the "real" libisc ones for dynamic builds.  However, this would not
      work with static builds as it would result in multiple strong symbols
      with the same name being present in a single binary.
      Work around the problem by only compiling in the overriding definitions
      of memory functions when building using --with-libtool.  For static
      builds, keep relying on the --wrap linker option for replacing calls to
      the functions we are interested in.
  4. 03 Sep, 2019 1 commit
  5. 08 Aug, 2019 1 commit
    • Sergei Trofimovich's avatar
      configure.ac: autodetect 'pause' instruction presence on sparc · a5ad6b16
      Sergei Trofimovich authored
      The change fixes the following build failure on sparc T3 and older CPUs:
      sparc-unknown-linux-gnu-gcc ... -O2 -mcpu=niagara2 ... -c rwlock.c
      {standard input}: Assembler messages:
      {standard input}:398: Error: Architecture mismatch on "pause ".
      {standard input}:398: (Requires v9e|v9v|v9m|m8; requested architecture is v9b.)
      make[1]: *** [Makefile:280: rwlock.o] Error 1
      `pause` insutruction exists only on `-mcpu=niagara4` (`T4`) and upper.
      The change adds `pause` configure-time autodetection and uses it if available.
      config.h.in got new `HAVE_SPARC_PAUSE` knob. Fallback is a fall-through no-op.
      Build-tested on:
      - sparc-unknown-linux-gnu-gcc (no `pause`, build succeeds)
      - sparc-unknown-linux-gnu-gcc -mcpu=niagara4 (`pause`, build succeeds)
      Reported-by: Rolf Eike Beer
      Bug: https://bugs.gentoo.org/691708Signed-off-by: default avatarSergei Trofimovich <slyfox@gentoo.org>
  6. 31 Jul, 2019 1 commit
  7. 21 Jul, 2019 1 commit
  8. 09 Jul, 2019 1 commit
  9. 04 Jul, 2019 1 commit
  10. 27 Jun, 2019 1 commit
    • Evan Hunt's avatar
      add a search for GeoIP2 libraries in configure · fea6b5bf
      Evan Hunt authored
      - "--with-geoip" is used to enable the legacy GeoIP library.
      - "--with-geoip2" is used to enable the new GeoIP2 library
        (libmaxminddb), and is on by default if the library is found.
      - using both "--with-geoip" and "--with-geoip2" at the same time
        is an error.
      - an attempt is made to determine the default GeoIP2 database path at
        compile time if pkg-config is able to report the module prefix. if
        this fails, it will be necessary to set the path in named.conf with
      - Makefiles have been updated, and a stub lib/dns/geoip2.c has been
        added for the eventual GeoIP2 search implementation.
  11. 25 Jun, 2019 1 commit
    • Ondřej Surý's avatar
      Make the usage of libxml2 opaque to the caller · 0771dd3b
      Ondřej Surý authored
      The libxml2 have previously leaked into the global namespace leading
      to forced -I<include_path> for every compilation unit using isc/xml.h
      header.  This MR fixes the usage making the caller object opaque.
  12. 30 May, 2019 3 commits
  13. 29 May, 2019 2 commits
  14. 13 May, 2019 1 commit
  15. 08 Mar, 2019 2 commits
  16. 03 Mar, 2019 1 commit
  17. 06 Feb, 2019 1 commit
  18. 24 Jan, 2019 1 commit
  19. 09 Jan, 2019 1 commit
  20. 15 Nov, 2018 1 commit
  21. 12 Nov, 2018 1 commit
  22. 08 Nov, 2018 1 commit
    • Ondřej Surý's avatar
      Add small tweaks to the code to fix compilation when ISC assertions are disabled · fbd2e47f
      Ondřej Surý authored
      While implementing the new unit testing framework cmocka, it was found that the
      BIND 9 code doesn't compile when assertions are disabled or replaced with any
      function (such as mock_assert() from cmocka unit testing framework) that's not
      directly recognized as assertion by the compiler.
      This made the compiler to complain about blocks of code that was recognized as
      unreachable before, but now it isn't.
      The changes in this commit include:
      * assigns default values to couple of local variables,
      * moves some return statements around INSIST assertions,
      * adds __builtin_unreachable(); annotations after some INSIST assertions,
      * fixes one broken assertion (= instead of ==)
  23. 06 Nov, 2018 1 commit
  24. 26 Oct, 2018 2 commits
  25. 25 Oct, 2018 1 commit
  26. 23 Oct, 2018 1 commit
  27. 22 Oct, 2018 1 commit
    • Ondřej Surý's avatar
      Add support for enabling and enforcing FIPS mode in OpenSSL: · c4cee27f
      Ondřej Surý authored
      * Add configure option --enable-fips-mode that detects and enables FIPS mode
      * Add a function to enable FIPS mode and call it on crypto init
      * Log an OpenSSL error when FIPS_mode_set() fails and exit
      * Report FIPS mode status in a separate log message from named
  28. 07 Sep, 2018 8 commits