summaryrefslogtreecommitdiffstats
path: root/mod_log_sql_ssl.c
diff options
context:
space:
mode:
authorGravatar Edward Rudd 2004-01-21 04:34:21 +0000
committerGravatar Edward Rudd 2004-01-21 04:34:21 +0000
commitb19a5851171395e196ed686977482d79d7140cfd (patch)
tree5e8edc605c5aca8cb95252fbb30ea008b40dd78f /mod_log_sql_ssl.c
parentf26e43417ed614aa5e6c328f1610f1fca4708e99 (diff)
fixed log_error function1.93
finished ssl split into separate module added item registration function. (for ssl sub-module) release 1.93
Diffstat (limited to 'mod_log_sql_ssl.c')
-rw-r--r--mod_log_sql_ssl.c55
1 files changed, 51 insertions, 4 deletions
diff --git a/mod_log_sql_ssl.c b/mod_log_sql_ssl.c
index c1901a0..92e0684 100644
--- a/mod_log_sql_ssl.c
+++ b/mod_log_sql_ssl.c
@@ -1,4 +1,4 @@
1/* $Header: /home/cvs/mod_log_sql/mod_log_sql_ssl.c,v 1.2 2004/01/20 20:33:20 urkle Exp $ */ 1/* $Header: /home/cvs/mod_log_sql/mod_log_sql_ssl.c,v 1.3 2004/01/21 04:34:21 urkle Exp $ */
2/* mod_log_sql_ssl */ 2/* mod_log_sql_ssl */
3 3
4#if defined(WITH_APACHE20) 4#if defined(WITH_APACHE20)
@@ -93,8 +93,55 @@ static const char *extract_ssl_cipher(request_rec *r, char *a)
93 } 93 }
94} 94}
95 95
96#if defined(WITH_APACHE20)
97static int pre_config(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *ptemp)
98#elif defined(WITH_APACHE13)
99static void module_init(server_rec *s, apr_pool_t *p)
100#endif
101{
102 log_sql_register_item(p,'q', extract_ssl_keysize, "ssl_keysize", 0, 1);
103 log_sql_register_item(p,'Q', extract_ssl_maxkeysize, "ssl_maxkeysize", 0, 1);
104 log_sql_register_item(p,'z', extract_ssl_cipher, "ssl_cipher", 0, 1);
105}
96 106
107/* The configuration array that sets up the hooks into the module. */
108#if defined(WITH_APACHE20)
109static void register_hooks(apr_pool_t *p) {
110 ap_hook_pre_config(pre_config, NULL, NULL, APR_HOOK_REALLY_FIRST);
111}
97 112
98 { 'q', extract_ssl_keysize, "ssl_keysize", 0, 1 }, 113module AP_MODULE_DECLARE_DATA log_sql_module = {
99 { 'Q', extract_ssl_maxkeysize, "ssl_maxkeysize", 0, 1 }, 114 STANDARD20_MODULE_STUFF,
100 { 'z', extract_ssl_cipher, "ssl_cipher", 0, 1 }, 115 NULL, /* create per-directory config structures */
116 NULL, /* merge per-directory config structures */
117 NULL, /* create per-server config structures */
118 NULL, /* merge per-server config structures */
119 NULL, /* command handlers */
120 register_hooks /* register hooks */
121};
122#elif defined(WITH_APACHE13)
123module log_sql_ssl_module = {
124 STANDARD_MODULE_STUFF,
125 module_init, /* module initializer */
126 NULL, /* create per-dir config */
127 NULL, /* merge per-dir config */
128 NULL, /* create server config */
129 NULL, /* merge server config */
130 log_sql_cmds, /* config directive table */
131 NULL, /* [9] content handlers */
132 NULL, /* [2] URI-to-filename translation */
133 NULL, /* [5] check/validate user_id */
134 NULL, /* [6] check authorization */
135 NULL, /* [4] check access by host */
136 NULL, /* [7] MIME type checker/setter */
137 NULL, /* [8] fixups */
138 log_sql_transaction, /* [10] logger */
139 NULL /* [3] header parser */
140#if MODULE_MAGIC_NUMBER >= 19970728 /* 1.3-dev or later support these additionals... */
141 ,log_sql_child_init, /* child process initializer */
142 log_sql_child_exit, /* process exit/cleanup */
143 NULL /* [1] post read-request */
144#endif
145
146};
147#endif