Skip to content
Snippets Groups Projects
Select Git revision
  • develop default
  • 2023.w43
  • 2023.w42
  • 2023.w41
  • 2023.w40
  • 2023.w39
  • 2023.w38
  • 2023.w37
  • 2023.w36
  • 2023.w34
  • 2023.w33
  • 2023.w32
  • v2.0.0
  • 2023.w31
  • 2023.w30
  • 2023.w29
  • 2023.w28
  • 2023.w27
  • 2023.w26
  • 2023.w25
  • 2023.w24
21 results

SECU

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Cedric Roux authored
    This reverts commit d31634c3.
    
    Laurent Thomas had a problem on one machine with the build_oai
    way of checking for nettle.
    
    The problem with the alternative solution of including nettle/bignum.h
    is that it is very unclear.
    
    The problem with nettle is that the file nettle/config.h does not
    exist for version 2. It was introduced in version 3.
    
    We want to support both versions, but there is an API incompatibility.
    So we need an #if #else mechanism.
    
    The file nettle/bignum.h is present in both versions 2 and 3 and it
    includes nettle/version.h in the version 3.
    
    So by including this file, we can check for the existence of
    NETTLE_VERSION_MAJOR (that comes from nettle/config.h) in the
    code.
    
    But as you can see, the reasoning is way too complex.
    
    So it's better to keep the check in cmake_targets/CMakeLists.txt.
    
    As long as we support version 2 this will be the way to go.
    
    It is possible to force a given version in specific non-generic
    customized environments.
    76574a1a
    History
    Name Last commit Last update
    ..