summaryrefslogtreecommitdiffstats
path: root/mod_log_sql_ssl.c
diff options
context:
space:
mode:
Diffstat (limited to 'mod_log_sql_ssl.c')
-rw-r--r--mod_log_sql_ssl.c53
1 files changed, 3 insertions, 50 deletions
diff --git a/mod_log_sql_ssl.c b/mod_log_sql_ssl.c
index 5f3a16e..ca4ced7 100644
--- a/mod_log_sql_ssl.c
+++ b/mod_log_sql_ssl.c
@@ -76,58 +76,11 @@ static const char *extract_ssl_cipher(request_rec *r, char *a)
76 } 76 }
77} 77}
78 78
79#if defined(WITH_APACHE20) 79
80static int post_config(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *ptemp, server_rec *s) 80LOGSQL_REGISTER(ssl)
81#elif defined(WITH_APACHE13)
82static void module_init(server_rec *s, apr_pool_t *p)
83#endif
84{ 81{
85 log_sql_register_item(s,p,'q', extract_ssl_keysize, "ssl_keysize", 0, 1); 82 log_sql_register_item(s,p,'q', extract_ssl_keysize, "ssl_keysize", 0, 1);
86 log_sql_register_item(s,p,'Q', extract_ssl_maxkeysize, "ssl_maxkeysize", 0, 1); 83 log_sql_register_item(s,p,'Q', extract_ssl_maxkeysize, "ssl_maxkeysize", 0, 1);
87 log_sql_register_item(s,p,'z', extract_ssl_cipher, "ssl_cipher", 0, 1); 84 log_sql_register_item(s,p,'z', extract_ssl_cipher, "ssl_cipher", 0, 1);
88#if defined(WITH_APACHE20) 85 LOGSQL_REGISTER_RETURN;
89 return OK;
90#endif
91}
92
93/* The configuration array that sets up the hooks into the module. */
94#if defined(WITH_APACHE20)
95static void register_hooks(apr_pool_t *p) {
96 ap_hook_post_config(post_config, NULL, NULL, APR_HOOK_REALLY_FIRST);
97} 86}
98
99module AP_MODULE_DECLARE_DATA log_sql_ssl_module = {
100 STANDARD20_MODULE_STUFF,
101 NULL, /* create per-directory config structures */
102 NULL, /* merge per-directory config structures */
103 NULL, /* create per-server config structures */
104 NULL, /* merge per-server config structures */
105 NULL, /* command handlers */
106 register_hooks /* register hooks */
107};
108#elif defined(WITH_APACHE13)
109module log_sql_ssl_module = {
110 STANDARD_MODULE_STUFF,
111 module_init, /* module initializer */
112 NULL, /* create per-dir config */
113 NULL, /* merge per-dir config */
114 NULL, /* create server config */
115 NULL, /* merge server config */
116 NULL, /* config directive table */
117 NULL, /* [9] content handlers */
118 NULL, /* [2] URI-to-filename translation */
119 NULL, /* [5] check/validate user_id */
120 NULL, /* [6] check authorization */
121 NULL, /* [4] check access by host */
122 NULL, /* [7] MIME type checker/setter */
123 NULL, /* [8] fixups */
124 NULL, /* [10] logger */
125 NULL /* [3] header parser */
126#if MODULE_MAGIC_NUMBER >= 19970728 /* 1.3-dev or later support these additionals... */
127 ,NULL, /* child process initializer */
128 NULL, /* process exit/cleanup */
129 NULL /* [1] post read-request */
130#endif
131
132};
133#endif