1 |
flameeyes 11/08/31 15:42:19 |
2 |
|
3 |
Added: mod_auth_token-1.0.6_beta-ap_pstrcat.patch |
4 |
75_mod_auth_token.conf |
5 |
Log: |
6 |
Initial import of mod_auth_token; ebuild by Pavel Stratil (proxied maintainer), fix for ap_pstrcat function call by me. |
7 |
|
8 |
(Portage version: 2.2.0_alpha51/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 www-apache/mod_auth_token/files/mod_auth_token-1.0.6_beta-ap_pstrcat.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_auth_token/files/mod_auth_token-1.0.6_beta-ap_pstrcat.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_auth_token/files/mod_auth_token-1.0.6_beta-ap_pstrcat.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: mod_auth_token-1.0.6_beta-ap_pstrcat.patch |
17 |
=================================================================== |
18 |
Index: mod_auth_token/mod_auth_token.c |
19 |
=================================================================== |
20 |
--- mod_auth_token.orig/mod_auth_token.c |
21 |
+++ mod_auth_token/mod_auth_token.c |
22 |
@@ -64,7 +64,7 @@ static const char *auth_token_set_prefix |
23 |
auth_token_config_rec *conf = (auth_token_config_rec*)config; |
24 |
|
25 |
if (arg[len - 1] != '/') { |
26 |
- ap_set_string_slot(cmd, config, apr_pstrcat(cmd->pool, arg, '/')); |
27 |
+ ap_set_string_slot(cmd, config, apr_pstrcat(cmd->pool, arg, "/", NULL)); |
28 |
conf->prefix_len = len + 1; |
29 |
} |
30 |
else { |
31 |
|
32 |
|
33 |
|
34 |
1.1 www-apache/mod_auth_token/files/75_mod_auth_token.conf |
35 |
|
36 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_auth_token/files/75_mod_auth_token.conf?rev=1.1&view=markup |
37 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_auth_token/files/75_mod_auth_token.conf?rev=1.1&content-type=text/plain |
38 |
|
39 |
Index: 75_mod_auth_token.conf |
40 |
=================================================================== |
41 |
<IfDefine AUTH_TOKEN> |
42 |
|
43 |
LoadModule auth_token_module modules/mod_auth_token.so |
44 |
|
45 |
# The token is an hex-encoded MD5 hash of the secret password, relative file |
46 |
# path and the timestamp. It is encoded onto the URI as: |
47 |
# <uri-prefix><token>/<timestamp-in-hex><rel-path |
48 |
# where the token is generated as |
49 |
# md5("secret" + "/path/to/file.txt" + dechex(time_now())) |
50 |
# To add the IP of client into the in the md5 hash, enable AuthTokenLimitByIp. |
51 |
|
52 |
#<Location /protected/> |
53 |
#AuthTokenSecret "secret" |
54 |
#AuthTokenPrefix /protected/ |
55 |
#AuthTokenTimeout 60 |
56 |
#AuthTokenLimitByIp off |
57 |
#</Location> |
58 |
|
59 |
# Example: |
60 |
# /protected/dee0ed6174a894113d5e8f6c98f0e92b/43eaf9c5/path/to/file.txt |
61 |
# maps to |
62 |
# /protected/path/to/file.txt |
63 |
|
64 |
</IfDefine> |
65 |
|
66 |
# vim: ts=4 filetype=apache |