summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules/ngx_http_secure_link_module.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2021-05-06Changed complex value slots to use NGX_CONF_UNSET_PTR.Maxim Dounin1-9/+8
With this change, it is now possible to use ngx_conf_merge_ptr_value() to merge complex values. This change follows much earlier changes in ngx_conf_merge_ptr_value() and ngx_conf_set_str_array_slot() in 1452:cd586e963db0 (0.6.10) and 1701:40d004d95d88 (0.6.22), and the change in ngx_conf_set_keyval_slot() (7728:485dba3e2a01, 1.19.4). To preserve compatibility with existing 3rd party modules, both NULL and NGX_CONF_UNSET_PTR are accepted for now.
2017-08-22Secure link: fixed stack buffer overflow.Roman Arutyunyan1-2/+1
When secure link checksum has length of 23 or 24 bytes, decoded base64 value could occupy 17 or 18 bytes which is more than 16 bytes previously allocated for it on stack. The buffer overflow does not have any security implications since only one local variable was corrupted and this variable was not used in this case. The fix is to increase buffer size up to 18 bytes. Useless buffer size initialization is removed as well.
2013-01-28Secure_link: fixed configuration inheritance.Ruslan Ermilov1-2/+15
The "secure_link_secret" directive was always inherited from the outer configuration level even when "secure_link" and "secure_link_md5" were specified on the inner level.
2012-01-18Copyright updated.Maxim Konovalov1-0/+1
2010-09-13fix typoIgor Sysoev1-2/+2
2010-09-06discard "secure_link_expires on|off"Igor Sysoev1-25/+11
2010-09-02new ngx_http_secure_link_module with secure_link, secure_link_md5, andIgor Sysoev1-12/+187
secure_link_expires
2009-06-02return NULL instead of NGX_CONF_ERROR on a create conf failureIgor Sysoev1-1/+1
2008-10-21allow short secure linksIgor Sysoev1-1/+1
2008-09-27ngx_http_secure_link_moduleIgor Sysoev1-0/+193