diff options
Diffstat (limited to '')
| -rw-r--r-- | webfinger.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/webfinger.c b/webfinger.c index 1b11ab5..46867e9 100644 --- a/webfinger.c +++ b/webfinger.c | |||
| @@ -15,7 +15,7 @@ int webfinger_request_signed(snac *snac, const char *qs, char **actor, char **us | |||
| 15 | int p_size = 0; | 15 | int p_size = 0; |
| 16 | xs *headers = xs_dict_new(); | 16 | xs *headers = xs_dict_new(); |
| 17 | xs *l = NULL; | 17 | xs *l = NULL; |
| 18 | d_char *host = NULL; | 18 | xs_str *host = NULL; |
| 19 | xs *resource = NULL; | 19 | xs *resource = NULL; |
| 20 | 20 | ||
| 21 | if (xs_startswith(qs, "https:/" "/")) { | 21 | if (xs_startswith(qs, "https:/" "/")) { |
| @@ -106,7 +106,7 @@ int webfinger_request(const char *qs, char **actor, char **user) | |||
| 106 | } | 106 | } |
| 107 | 107 | ||
| 108 | 108 | ||
| 109 | int webfinger_get_handler(d_char *req, char *q_path, | 109 | int webfinger_get_handler(xs_dict *req, char *q_path, |
| 110 | char **body, int *b_size, char **ctype) | 110 | char **body, int *b_size, char **ctype) |
| 111 | /* serves webfinger queries */ | 111 | /* serves webfinger queries */ |
| 112 | { | 112 | { |
| @@ -170,7 +170,6 @@ int webfinger_get_handler(d_char *req, char *q_path, | |||
| 170 | xs *aaj = xs_dict_new(); | 170 | xs *aaj = xs_dict_new(); |
| 171 | xs *links = xs_list_new(); | 171 | xs *links = xs_list_new(); |
| 172 | xs *obj = xs_dict_new(); | 172 | xs *obj = xs_dict_new(); |
| 173 | d_char *j; | ||
| 174 | 173 | ||
| 175 | acct = xs_fmt("acct:%s@%s", | 174 | acct = xs_fmt("acct:%s@%s", |
| 176 | xs_dict_get(snac.config, "uid"), xs_dict_get(srv_config, "host")); | 175 | xs_dict_get(snac.config, "uid"), xs_dict_get(srv_config, "host")); |
| @@ -184,7 +183,7 @@ int webfinger_get_handler(d_char *req, char *q_path, | |||
| 184 | obj = xs_dict_append(obj, "subject", acct); | 183 | obj = xs_dict_append(obj, "subject", acct); |
| 185 | obj = xs_dict_append(obj, "links", links); | 184 | obj = xs_dict_append(obj, "links", links); |
| 186 | 185 | ||
| 187 | j = xs_json_dumps(obj, 4); | 186 | xs_str *j = xs_json_dumps(obj, 4); |
| 188 | 187 | ||
| 189 | user_free(&snac); | 188 | user_free(&snac); |
| 190 | 189 | ||