Navigation


Changeset 1333:cbe1da7a32f1 in freeDiameter for include/freeDiameter


Ignore:
Timestamp:
Apr 9, 2019, 10:11:32 PM (5 years ago)
Author:
Thomas Klausner <tk@giga.or.at>
Branch:
default
Phase:
public
Message:

Add dict_json extension.

This extension allows loading diameter dictionares from a JSON file.

Example files are provided by contrib/dict_json.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/CMakeLists.txt

    r1295 r1333  
    1818# In DEBUG mode, each log can contain pid, calling function and file for easy debug. Set to ON to display this information.
    1919OPTION(DEBUG_WITH_META "Show calling location in logs?" OFF)
    20        
     20
    2121# Create the absolute path for searching extensions
    2222SET(DEFAULT_EXTENSIONS_PATH ${CMAKE_INSTALL_PREFIX}/${INSTALL_EXTENSIONS_SUFFIX})
     
    3232OPTION(DISABLE_PEER_EXPIRY "Disable RFC3539 Peers Connections Expiration after inactivity?" OFF)
    3333
    34 # The following workaround increases compatibility with some implementations without breaking anything in freeDiameter, 
    35 # so it can be enabled without risk. We keep it disabled by default anyway for those people who use freeDiameter to check the 
     34# The following workaround increases compatibility with some implementations without breaking anything in freeDiameter,
     35# so it can be enabled without risk. We keep it disabled by default anyway for those people who use freeDiameter to check the
    3636# compliancy of their implementation with the Diameter RFC...
    3737OPTION(WORKAROUND_ACCEPT_INVALID_VSAI "Do not reject a CER/CEA with a Vendor-Specific-Application-Id AVP containing both Auth- and Acct- application AVPs?" OFF)
     
    4545INCLUDE (CheckFunctionExists)
    4646INCLUDE (CheckIncludeFiles)
    47 INCLUDE (CheckSymbolExists) 
     47INCLUDE (CheckSymbolExists)
    4848INCLUDE (CheckCSourceCompiles)
    4949INCLUDE (TestBigEndian)
     
    134134
    135135# IDNA process: we use libidn from GNU (unless the function & header files are included in libc)
    136 IF(NOT DIAMID_IDNA_IGNORE  AND NOT DIAMID_IDNA_REJECT)
     136IF(NOT DIAMID_IDNA_IGNORE AND NOT DIAMID_IDNA_REJECT)
    137137        FIND_PACKAGE(IDNA)
    138138        SET(CHECK_IDNA_SOURCE_CODE "
     
    160160SET(GNUTLS_LIBRARIES ${GNUTLS_LIBRARIES} PARENT_SCOPE)
    161161
    162 find_path(GCRYPT_INCLUDE_DIR NAMES gcrypt.h)
    163 If ( NOT GCRYPT_INCLUDE_DIR )
     162FIND_PATH(GCRYPT_INCLUDE_DIR NAMES gcrypt.h)
     163IF(NOT GCRYPT_INCLUDE_DIR)
    164164        MESSAGE(SEND_ERROR "Unable to find gcrypt.h, please install libgcrypt-dev or equivalent")
    165 Endif ( NOT GCRYPT_INCLUDE_DIR )
     165ENDIF(NOT GCRYPT_INCLUDE_DIR)
    166166MARK_AS_ADVANCED(GCRYPT_INCLUDE_DIR)
    167167SET(GCRYPT_INCLUDE_DIR ${GCRYPT_INCLUDE_DIR} PARENT_SCOPE)
    168168
    169169# Also we need libgcrypt to... display its version :(
    170 find_library(GCRYPT_LIBRARY
     170FIND_LIBRARY(GCRYPT_LIBRARY
    171171  NAMES gcrypt
    172172)
    173 If ( NOT GCRYPT_LIBRARY )
     173IF(NOT GCRYPT_LIBRARY)
    174174        MESSAGE(SEND_ERROR "Unable to find libgcrypt, please install libgcrypt or equivalent")
    175 Endif ( NOT GCRYPT_LIBRARY )
     175ENDIF(NOT GCRYPT_LIBRARY)
    176176SET(GCRYPT_LIBRARY ${GCRYPT_LIBRARY} PARENT_SCOPE)
    177177
     
    229229SET(LFDCORE_INCLUDES ${SCTP_INCLUDE_DIR} ${GNUTLS_INCLUDE_DIR} ${GCRYPT_INCLUDE_DIR} PARENT_SCOPE)
    230230# And dependencies
    231 SET(LFDCORE_LINK_INTERFACES "" PARENT_SCOPE) 
     231SET(LFDCORE_LINK_INTERFACES "" PARENT_SCOPE)
    232232                # We don't force other libraries, the programs will link with what it needs
    233233                # (such as libgnutls if it uses GNUTLS_DEBUG() macro
Note: See TracChangeset for help on using the changeset viewer.