mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Fix version check
This commit is contained in:
parent
6367e6d5e9
commit
f1d22f9b02
@ -198,9 +198,9 @@ namespace modsecurity {
|
|||||||
MODSECURITY_MINOR "." MODSECURITY_PATCHLEVEL \
|
MODSECURITY_MINOR "." MODSECURITY_PATCHLEVEL \
|
||||||
MODSECURITY_TAG
|
MODSECURITY_TAG
|
||||||
|
|
||||||
#define MODSECURITY_VERSION_NUM MODSECURITY_MAJOR \
|
#define MODSECURITY_VERSION_NUM 3040100
|
||||||
MODSECURITY_MINOR MODSECURITY_PATCHLEVEL MODSECURITY_TAG_NUM
|
|
||||||
|
|
||||||
|
#define MODSECURITY_CHECK_VERSION(a) (MODSECURITY_VERSION_NUM <= a)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* @name ModSecLogCb
|
* @name ModSecLogCb
|
||||||
|
@ -44,8 +44,8 @@ pkginclude_HEADERS = \
|
|||||||
../headers/modsecurity/rule.h \
|
../headers/modsecurity/rule.h \
|
||||||
../headers/modsecurity/rules.h \
|
../headers/modsecurity/rules.h \
|
||||||
../headers/modsecurity/rule_message.h \
|
../headers/modsecurity/rule_message.h \
|
||||||
../headers/modsecurity/rules.h \
|
|
||||||
../headers/modsecurity/rules_set.h \
|
../headers/modsecurity/rules_set.h \
|
||||||
|
../headers/modsecurity/rules_set_phases.h \
|
||||||
../headers/modsecurity/rules_set_properties.h \
|
../headers/modsecurity/rules_set_properties.h \
|
||||||
../headers/modsecurity/rules_exceptions.h \
|
../headers/modsecurity/rules_exceptions.h \
|
||||||
../headers/modsecurity/transaction.h \
|
../headers/modsecurity/transaction.h \
|
||||||
|
@ -64,7 +64,7 @@ bool HttpsClient::download(const std::string &uri) {
|
|||||||
CURL *curl;
|
CURL *curl;
|
||||||
CURLcode res;
|
CURLcode res;
|
||||||
std::string uniqueId = "ModSec-unique-id: " + UniqueId::uniqueId();
|
std::string uniqueId = "ModSec-unique-id: " + UniqueId::uniqueId();
|
||||||
std::string status = "ModSec-status: " MODSECURITY_VERSION_NUM;
|
std::string status = "ModSec-status: " + std::to_string(MODSECURITY_VERSION_NUM);
|
||||||
|
|
||||||
curl = curl_easy_init();
|
curl = curl_easy_init();
|
||||||
if (!curl) {
|
if (!curl) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user