@@ -42,7 +42,7 @@ static char *ngx_http_secure_link_merge_conf(ngx_conf_t *cf, void *parent,
4242static ngx_int_t ngx_http_secure_link_add_variables (ngx_conf_t * cf );
4343
4444
45- static ngx_command_t ngx_http_secure_link_commands [] = {
45+ static ngx_command_t ngx_http_hmac_secure_link_commands [] = {
4646
4747 { ngx_string ("secure_link" ),
4848 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 = {
105105};
106106
107107
108- ngx_module_t ngx_http_secure_link_module = {
108+ ngx_module_t ngx_http_hmac_secure_link_module = {
109109 NGX_MODULE_V1 ,
110110 & 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 */
112112 NGX_HTTP_MODULE , /* module type */
113113 NULL , /* init master */
114114 NULL , /* init module */
@@ -138,7 +138,7 @@ ngx_http_secure_link_variable(ngx_http_request_t *r,
138138 ngx_http_secure_link_conf_t * conf ;
139139 u_char hash_buf [16 ], md5_buf [16 ];
140140
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 );
142142
143143 if (conf -> secret .len ) {
144144 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,
177177 return NGX_ERROR ;
178178 }
179179
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 );
181181
182182 ctx -> expires .len = last - p ;
183183 ctx -> expires .data = p ;
@@ -341,7 +341,7 @@ ngx_http_secure_link_hmac_variable(ngx_http_request_t *r,
341341 return NGX_ERROR ;
342342 }
343343
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 );
345345
346346 ctx -> expires .len = last - p ;
347347 ctx -> expires .data = p ;
@@ -407,7 +407,7 @@ ngx_http_secure_link_expires_variable(ngx_http_request_t *r,
407407{
408408 ngx_http_secure_link_ctx_t * ctx ;
409409
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 );
411411
412412 if (ctx ) {
413413 v -> len = ctx -> expires .len ;
0 commit comments