Added MODSEC_BUILD variable. See #38.

This commit is contained in:
brectanus
2007-08-08 18:25:03 +00:00
parent 2ec596e83a
commit fe8c564ed0
7 changed files with 83 additions and 7 deletions

View File

@@ -999,3 +999,22 @@ int normalise_path_inplace(unsigned char *input, int input_len, int win) {
return count;
}
char *modsec_build(apr_pool_t *mp) {
int build_type = 0;
int i;
for (i = 0; modsec_build_type[i].name != NULL; i++) {
if (strcmp(MODSEC_VERSION_TYPE, modsec_build_type[i].name) == 0) {
build_type = modsec_build_type[i].val;
break;
}
}
return apr_psprintf(mp, "%02i%02i%02i%1i%02i",
atoi(MODSEC_VERSION_MAJOR),
atoi(MODSEC_VERSION_MINOR),
atoi(MODSEC_VERSION_MAINT),
build_type,
atoi(MODSEC_VERSION_RELEASE));
}