@@ -42,7 +42,7 @@ static char *ngx_http_secure_link_merge_conf(ngx_conf_t *cf, void *parent,
42
42
static ngx_int_t ngx_http_secure_link_add_variables (ngx_conf_t * cf );
43
43
44
44
45
- static ngx_command_t ngx_http_secure_link_commands [] = {
45
+ static ngx_command_t ngx_http_hmac_secure_link_commands [] = {
46
46
47
47
{ ngx_string ("secure_link" ),
48
48
NGX_HTTP_MAIN_CONF |NGX_HTTP_SRV_CONF |NGX_HTTP_LOC_CONF |NGX_CONF_TAKE1 ,
@@ -105,10 +105,10 @@ static ngx_http_module_t ngx_http_secure_link_module_ctx = {
105
105
};
106
106
107
107
108
- ngx_module_t ngx_http_secure_link_module = {
108
+ ngx_module_t ngx_http_hmac_secure_link_module = {
109
109
NGX_MODULE_V1 ,
110
110
& ngx_http_secure_link_module_ctx , /* module context */
111
- ngx_http_secure_link_commands , /* module directives */
111
+ ngx_http_hmac_secure_link_commands , /* module directives */
112
112
NGX_HTTP_MODULE , /* module type */
113
113
NULL , /* init master */
114
114
NULL , /* init module */
@@ -138,7 +138,7 @@ ngx_http_secure_link_variable(ngx_http_request_t *r,
138
138
ngx_http_secure_link_conf_t * conf ;
139
139
u_char hash_buf [16 ], md5_buf [16 ];
140
140
141
- conf = ngx_http_get_module_loc_conf (r , ngx_http_secure_link_module );
141
+ conf = ngx_http_get_module_loc_conf (r , ngx_http_hmac_secure_link_module );
142
142
143
143
if (conf -> secret .len ) {
144
144
return ngx_http_secure_link_old_variable (r , conf , v , data );
@@ -177,7 +177,7 @@ ngx_http_secure_link_variable(ngx_http_request_t *r,
177
177
return NGX_ERROR ;
178
178
}
179
179
180
- ngx_http_set_ctx (r , ctx , ngx_http_secure_link_module );
180
+ ngx_http_set_ctx (r , ctx , ngx_http_hmac_secure_link_module );
181
181
182
182
ctx -> expires .len = last - p ;
183
183
ctx -> expires .data = p ;
@@ -341,7 +341,7 @@ ngx_http_secure_link_hmac_variable(ngx_http_request_t *r,
341
341
return NGX_ERROR ;
342
342
}
343
343
344
- ngx_http_set_ctx (r , ctx , ngx_http_secure_link_module );
344
+ ngx_http_set_ctx (r , ctx , ngx_http_hmac_secure_link_module );
345
345
346
346
ctx -> expires .len = last - p ;
347
347
ctx -> expires .data = p ;
@@ -407,7 +407,7 @@ ngx_http_secure_link_expires_variable(ngx_http_request_t *r,
407
407
{
408
408
ngx_http_secure_link_ctx_t * ctx ;
409
409
410
- ctx = ngx_http_get_module_ctx (r , ngx_http_secure_link_module );
410
+ ctx = ngx_http_get_module_ctx (r , ngx_http_hmac_secure_link_module );
411
411
412
412
if (ctx ) {
413
413
v -> len = ctx -> expires .len ;
0 commit comments