summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar default2024-11-12 09:01:30 +0100
committerGravatar default2024-11-12 09:01:30 +0100
commit19b9998f8c42918430f7c41ebd40b8339b9d7cd7 (patch)
tree8e2a88f826cc8bf61878f50292d68d1b21597915 /html.c
parentmastoapi: a lot of proxy code. (diff)
downloadsnac2-19b9998f8c42918430f7c41ebd40b8339b9d7cd7.tar.gz
snac2-19b9998f8c42918430f7c41ebd40b8339b9d7cd7.tar.xz
snac2-19b9998f8c42918430f7c41ebd40b8339b9d7cd7.zip
The proxy token seed is created on startup and never stored.
Diffstat (limited to 'html.c')
-rw-r--r--html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/html.c b/html.c
index ce4c0a8..d344745 100644
--- a/html.c
+++ b/html.c
@@ -3208,7 +3208,7 @@ int html_get_handler(const xs_dict *req, const char *q_path,
3208 } 3208 }
3209 else { 3209 else {
3210 /* proxy usage authorized by proxy_token */ 3210 /* proxy usage authorized by proxy_token */
3211 xs *tks = xs_fmt("%s:%s", xs_dict_get(srv_config, "proxy_token_seed"), snac.actor); 3211 xs *tks = xs_fmt("%s:%s", srv_proxy_token_seed, snac.actor);
3212 xs *tk = xs_md5_hex(tks, strlen(tks)); 3212 xs *tk = xs_md5_hex(tks, strlen(tks));
3213 xs *p = xs_fmt("y/%s/", tk); 3213 xs *p = xs_fmt("y/%s/", tk);
3214 3214