• Cedric Roux's avatar
    Revert "fix nettle" · 76574a1a
    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
Name
Last commit
Last update
..
EPC_TEST Loading commit data...
Makefile.am Loading commit data...
oaisim_mme_client_test.c Loading commit data...
oaisim_mme_itti_test.c Loading commit data...
oaisim_mme_list_benchmark.c Loading commit data...
oaisim_mme_s1ap_test.c Loading commit data...
oaisim_mme_sctp_test.c Loading commit data...
oaisim_mme_test_s1c.c Loading commit data...
oaisim_mme_test_s1c.h Loading commit data...
oaisim_mme_test_s1c_s1ap.c Loading commit data...
oaisim_mme_test_s1c_s1ap.h Loading commit data...
oaisim_mme_test_s1c_scenario.c Loading commit data...
oaisim_mme_test_s1c_scenario.h Loading commit data...
oaisim_mme_test_s1c_scenario1.c Loading commit data...
test_aes128_cmac_encrypt.c Loading commit data...
test_aes128_ctr_decrypt.c Loading commit data...
test_aes128_ctr_encrypt.c Loading commit data...
test_kdf.c Loading commit data...
test_s1ap.c Loading commit data...
test_secu.c Loading commit data...
test_secu_kenb.c Loading commit data...
test_secu_knas.c Loading commit data...
test_secu_knas_encrypt_eea1.c Loading commit data...
test_secu_knas_encrypt_eea2.c Loading commit data...
test_secu_knas_encrypt_eia1.c Loading commit data...
test_secu_knas_encrypt_eia2.c Loading commit data...
test_secu_knas_stream_int.c Loading commit data...