[rt-commit] r125 - in /redwax-tool/trunk: redwax-tool.c redwax-tool.h
rt-commit at redwax.eu
rt-commit at redwax.eu
Fri Dec 10 20:04:52 CET 2021
Author: minfrin at redwax.eu
Date: Fri Dec 10 20:04:52 2021
New Revision: 125
Log:
Make passthrough the default filter.
Modified:
redwax-tool/trunk/redwax-tool.c
redwax-tool/trunk/redwax-tool.h
Modified: redwax-tool/trunk/redwax-tool.c
==============================================================================
--- redwax-tool/trunk/redwax-tool.c (original)
+++ redwax-tool/trunk/redwax-tool.c Fri Dec 10 20:04:52 2021
@@ -1739,6 +1739,8 @@
r->rc = REDWAX_EXIT_FILTER;
}
+ r->filter.filter_applied = 1;
+
return status;
}
@@ -2194,6 +2196,11 @@
}
}
+ }
+
+ /* filter catchall */
+ if (!r->filter.filter_applied) {
+ redwax_process_filter(r, REDWAX_PASSTHROUGH);
}
/* walk output options */
Modified: redwax-tool/trunk/redwax-tool.h
==============================================================================
--- redwax-tool/trunk/redwax-tool.h (original)
+++ redwax-tool/trunk/redwax-tool.h Fri Dec 10 20:04:52 2021
@@ -28,6 +28,10 @@
#include <apr_hooks.h>
#include <apr_pools.h>
#include <apr_tables.h>
+
+typedef struct redwax_filter_t {
+ int filter_applied;
+} redwax_filter_t;
typedef struct redwax_nss_t {
const char *dir;
@@ -82,6 +86,7 @@
const char *secret_token_in;
const char *secret_token_out;
const char *label_out;
+ redwax_filter_t filter;
redwax_nss_t nss_out;
redwax_pkcs11_t pkcs11_in;
redwax_pkcs11_t pkcs11_out;
More information about the rt-commit
mailing list