fix at_nas_ue compilation
On ubuntu 16.04, nettle's version is 3.2. In this case, we need to define 'NETTLE_VERSION_MAJOR' to properly switch how to call 'nettle_aes128.set_encrypt_key' in openair3/SECU/nas_stream_eea2.c
before this patch:
$ build_oai --oaisim -C
-> this fails
$ less log/at_nas_ue.Rel10.txt
[ 13%] Building C object CMakeFiles/secu_cn.dir/home/ubuntu/openairinterface5g/openair3/SECU/nas_stream_eea2.c.o /usr/bin/cc -DENABLE_NAS_UE_LOGGING -DENB_MODE -DFIRMWARE_VERSION=""No svn information"" -DLINUX -DNAS_UE -DNETTLE_VERSION=32 -D_GNU_SOURCE -I/home/ubuntu/openairinterface5g/common/utils/itti -I/home/ubuntu/openairinterface5g/openair2/COMMON -I/home/ubuntu/openairinterface5g/openair3/UTILS -I/home/ubuntu/openairinterface5g/common/utils/msc -I/home/ubuntu/op enairinterface5g/openair3/COMMON -I/home/ubuntu/openairinterface5g/openair3/SECU -I/home/ubuntu/openairinterface5g/openair3/NAS/src -I/home/ubuntu/openairinterface5g/openair3/NAS/COMMON -I/home/ubuntu/openairinterface5g/openair3/NAS/COMMON/API/NETWORK -I/home/ubuntu/openairinterface5g/openair3/NAS/UE/API/USER -I/home/ubuntu/openairinterface5g/openair3/NAS/UE/E MM -I/home/ubuntu/openairinterface5g/openair3/NAS/COMMON/EMM/MSG -I/home/ubuntu/openairinterface5g/openair3/NAS/UE/EMM/SAP -I/home/ubuntu/openairinterface5g/openair3/NAS/UE/ESM -I/home/ubuntu/openairinterface5g/openair3/NAS/UE/ESM/SAP -I/home/ubuntu/openairinterface5g/openair3/NAS/COMMON/ESM/MSG -I/home/ubuntu/openairinterface5g/openair3/NAS/COMMON/IES -I/home /ubuntu/openairinterface5g/openair3/NAS/COMMON/UTIL -msse4.2 -std=gnu99 -Wall -Wstrict-prototypes -fno-strict-aliasing -rdynamic -funroll-loops -Wno-packed-bitfield-compat -DCMAKER -O2 -g -DNDEBUG -ggdb -DMALLOC_CHECK_=3 -O2 -o CMakeFiles/secu_cn.dir/home/ubuntu/openairinterface5g/openair3/SECU/nas_stream_eea2.c.o -c /home/ubuntu/openairinterface5g/openai r3/SECU/nas_stream_eea2.c /home/ubuntu/openairinterface5g/openair3/SECU/nas_stream_eea2.c: In function 'nas_stream_encrypt_eea2': /home/ubuntu/openairinterface5g/openair3/SECU/nas_stream_eea2.c:82:38: warning: passing argument 2 of 'nettle_aes128.set_encrypt_key' makes pointer from integer without a cast [-Wint-conversion] nettle_aes128.set_encrypt_key(ctx, stream_cipher->key_length, ^ /home/ubuntu/openairinterface5g/openair3/SECU/nas_stream_eea2.c:82:38: note: expected 'const uint8_t * {aka const unsigned char *}' but argument is of type 'uint32_t {aka unsigned int}' /home/ubuntu/openairinterface5g/openair3/SECU/nas_stream_eea2.c:82:3: error: too many arguments to function 'nettle_aes128.set_encrypt_key' nettle_aes128.set_encrypt_key(ctx, stream_cipher->key_length, ^ CMakeFiles/secu_cn.dir/build.make:209: recipe for target 'CMakeFiles/secu_cn.dir/home/ubuntu/openairinterface5g/openair3/SECU/nas_stream_eea2.c.o' failed make[3]: *** [CMakeFiles/secu_cn.dir/home/ubuntu/openairinterface5g/openair3/SECU/nas_stream_eea2.c.o] Error 1 make[3]: Leaving directory '/home/ubuntu/openairinterface5g/cmake_targets/at_commands/build' CMakeFiles/Makefile2:181: recipe for target 'CMakeFiles/secu_cn.dir/all' failed make[2]: *** [CMakeFiles/secu_cn.dir/all] Error 2