@@ -56,30 +56,37 @@ option(SA_MARIADB "Security Association - MariaDB" OFF)
56
56
option (SUPPORT "Support" OFF )
57
57
option (SYSTEM_INSTALL "SystemInstall" OFF )
58
58
option (TEST "Test" OFF )
59
- # option(TEST_ENC "Tests - Encryption" OFF)
60
59
option (SA_FILE "Save Security Association to File" OFF )
61
60
option (KEY_VALIDATION "Validate existance of key duplication" OFF )
62
-
63
61
OPTION (KMC_MDB_RH "KMC-MDB-RedHat-Integration-Testing" OFF ) #Disabled by default, enable with: -DKMC_MDB_RH=ON
64
62
OPTION (KMC_MDB_DB "KMC-MDB-Debian-Integration-Testing" OFF ) #Disabled by default, enable with: -DKMC_MDB_DB=ON
65
63
OPTION (KMC_CFFI_EXCLUDE "KMC-Exclude-Problematic-CFFI-Code" OFF ) #Disabled by default, enable with: -DKMC_CFFI_EXCLUDE=ON
66
-
67
64
OPTION (CRYPTO_EPROC "Enables the building and use of Extended Procedures" OFF ) #Disabled by default, enable with -DCRYPTO_EPROC=ON
65
+
68
66
OPTION (MAC_SIZE "The size of the max MAC buffer in bytes" )
69
67
OPTION (IV_SIZE "The size of the max IV buffer in bytes" )
68
+ Option (NUM_SA "The max number of SAs that will be used" )
69
+ Option (NUM_KEYS "The max number of keys that will be used" )
70
70
71
71
#
72
- # Max Buffer Size Defines
72
+ # Max Size Defines
73
73
#
74
+ if (NUM_SA)
75
+ add_compile_definitions (NUM_SA=${NUM_SA} )
76
+ message (STATUS "NUM_SA set to: ${NUM_SA} " )
77
+ endif ()
74
78
if (MAC_SIZE)
75
79
add_compile_definitions (MAC_SIZE=${MAC_SIZE} )
76
80
message (STATUS "MAC_SIZE set to: ${MAC_SIZE} " )
77
81
endif ()
78
-
79
82
if (IV_SIZE)
80
83
add_compile_definitions (IV_SIZE=${IV_SIZE} )
81
84
message (STATUS "IV_SIZE set to: ${IV_SIZE} " )
82
85
endif ()
86
+ if (NUM_KEYS)
87
+ add_compile_definitions (NUM_KEYS=${NUM_KEYS} )
88
+ message (STATUS "NUM_KEYS set to: ${NUM_KEYS} " )
89
+ endif ()
83
90
84
91
#
85
92
# Custom Module Paths
0 commit comments