set(SNORT_VERSION_MAJOR 2)
set(SNORT_VERSION_MINOR 10)
-set(SNORT_VERSION_BUILD 087)
+set(SNORT_VERSION_BUILD 093)
set(VERSION "${SNORT_VERSION_MAJOR}.${SNORT_VERSION_MINOR}.${SNORT_VERSION_BUILD}")
# ensure cmake will look in the cmake directory for configuration files
# use `ccmamke ${PATH_TO_SOURCE}`.
-option (STATIC_DECODERS "include decoders in binary?" ON)
+option (STATIC_CODECS "include decoders in binary?" ON)
option (STATIC_INSPECTORS "include inspectors in binary" ON)
option (STATIC_LOGGERS "include loggers in binary" ON)
option (STATIC_IPS_OPTIONS "include ips options in binary" ON)
set_if_true( STATIC_SEARCH_ENGINES STATIC_SEARCH_ENGINES )
set_if_true( STATIC_LOGGERS STATIC_LOGGERS )
set_if_true( STATIC_IPS_OPTIONS STATIC_IPS_OPTIONS )
-set_if_true( STATIC_DECODERS STATIC_DECODERS )
+set_if_true( STATIC_CODECS STATIC_CODECS )
set_if_true( BUILD_SIDE_CHANNEL SIDE_CHANNEL )
set_if_true( ENABLE_VALGRIND VALGRIND_TESTING )
set_if_true( ENABLE_PPM PPM_MGR )
#cmakedefine STATIC_SEARCH_ENGINES 1
/* include internal decoders in binary */
-#cmakedefine STATIC_DECODERS 1
+#cmakedefine STATIC_CODECS 1
/* built control socket */
#cmakedefine CONTROL_SOCKET 1
--disable-static-loggers do not include loggers in binary
--disable-static-ips-options do not include ips options in binary
--disable-static-search-engines do not include search engines in binary
+ --disable-static-codecs do not include codecs in binary
--enable-control-socket Enable the control socket (Linux only)
--enable-side-channel Enable the side channel (Linux only)
--enable-valgrind Only use if you are testing with valgrind.
prefix=$optarg
append_cache_entry CMAKE_INSTALL_PREFIX PATH $optarg
;;
- --disable-static-decoders)
- append_cache_entry STATIC_DECODERS BOOL false
+ --disable-static-codecs)
+ append_cache_entry STATIC_CODECS BOOL false
;;
- --enable-static-decoders)
- append_cache_entry STATIC_DECODERS BOOL true
+ --enable-static-codecs)
+ append_cache_entry STATIC_CODECS BOOL true
;;
--disable-static-inspectors)
append_cache_entry STATIC_INSPECTORS BOOL false
extern const BaseApi* cd_udp;
extern const BaseApi* cd_esp;
-#ifdef STATIC_DECODERS
+#ifdef STATIC_CODECS
extern const BaseApi* cd_ah;
extern const BaseApi* cd_arp;
extern const BaseApi* cd_dstopts;
cd_udp,
cd_esp,
-#ifdef STATIC_DECODERS
+#ifdef STATIC_CODECS
cd_ah,
cd_arp,
cd_dstopts,
#else
const BaseApi* cd_ah = &ah_api.base;
#endif
-
-
-
dtor, // dtor
};
+#ifdef BUILDING_SO
+SO_PUBLIC const BaseApi* snort_plugins[] =
+{
+ &pgm_api.base,
+ nullptr
+};
+#else
const BaseApi* cd_pgm = &pgm_api.base;
+#endif