Added decoding and error correction on the NID fields: NAC and DUID. Making use of the IT++ library for BCH encoding/decoding.

This commit is contained in:
EdFuentetaja
2014-02-02 14:45:19 +08:00
parent e40e89ae81
commit 9b9cb78ddf
13 changed files with 330 additions and 89 deletions

20
cmake/FindITPP.cmake Normal file
View File

@@ -0,0 +1,20 @@
# Find ITPP
FIND_PATH(ITPP_INCLUDE_DIR itpp/itcomm.h)
SET(ITPP_NAMES ${ITPP_NAMES} itpp libitpp libitpp.dll)
FIND_LIBRARY(ITPP_LIBRARY NAMES ${ITPP_NAMES} PATH)
IF (ITPP_INCLUDE_DIR AND ITPP_LIBRARY)
SET(ITPP_FOUND TRUE)
ENDIF (ITPP_INCLUDE_DIR AND ITPP_LIBRARY)
IF (ITPP_FOUND)
IF (NOT ITPP_FIND_QUIETLY)
MESSAGE (STATUS "Found ITPP: ${ITPP_LIBRARY}")
ENDIF (NOT ITPP_FIND_QUIETLY)
ELSE (ITPP_FOUND_FOUND)
IF (ITPP_FIND_REQUIRED)
MESSAGE (FATAL_ERROR "Could not find ITPP")
ENDIF (ITPP_FIND_REQUIRED)
ENDIF (ITPP_FOUND)