diff options
| -rw-r--r-- | LICENSE | 2 | ||||
| -rw-r--r-- | activitypub.c | 2 | ||||
| -rw-r--r-- | data.c | 2 | ||||
| -rw-r--r-- | format.c | 2 | ||||
| -rw-r--r-- | html.c | 2 | ||||
| -rw-r--r-- | http.c | 2 | ||||
| -rw-r--r-- | httpd.c | 2 | ||||
| -rw-r--r-- | main.c | 4 | ||||
| -rw-r--r-- | mastoapi.c | 2 | ||||
| -rw-r--r-- | rss.c | 2 | ||||
| -rw-r--r-- | snac.c | 2 | ||||
| -rw-r--r-- | snac.h | 2 | ||||
| -rw-r--r-- | upgrade.c | 2 | ||||
| -rw-r--r-- | utils.c | 2 | ||||
| -rw-r--r-- | webfinger.c | 2 | ||||
| -rw-r--r-- | xs.h | 2 | ||||
| -rw-r--r-- | xs_curl.h | 2 | ||||
| -rw-r--r-- | xs_fcgi.h | 2 | ||||
| -rw-r--r-- | xs_glob.h | 2 | ||||
| -rw-r--r-- | xs_hex.h | 2 | ||||
| -rw-r--r-- | xs_html.h | 2 | ||||
| -rw-r--r-- | xs_http.h | 2 | ||||
| -rw-r--r-- | xs_httpd.h | 2 | ||||
| -rw-r--r-- | xs_io.h | 2 | ||||
| -rw-r--r-- | xs_json.h | 4 | ||||
| -rw-r--r-- | xs_match.h | 2 | ||||
| -rw-r--r-- | xs_mime.h | 2 | ||||
| -rw-r--r-- | xs_openssl.h | 2 | ||||
| -rw-r--r-- | xs_po.h | 2 | ||||
| -rw-r--r-- | xs_random.h | 2 | ||||
| -rw-r--r-- | xs_regex.h | 2 | ||||
| -rw-r--r-- | xs_set.h | 2 | ||||
| -rw-r--r-- | xs_socket.h | 2 | ||||
| -rw-r--r-- | xs_time.h | 2 | ||||
| -rw-r--r-- | xs_unicode.h | 2 | ||||
| -rw-r--r-- | xs_unix_socket.h | 2 | ||||
| -rw-r--r-- | xs_url.h | 2 | ||||
| -rw-r--r-- | xs_version.h | 2 | ||||
| -rw-r--r-- | xs_webmention.h | 2 |
39 files changed, 42 insertions, 40 deletions
| @@ -1,6 +1,6 @@ | |||
| 1 | MIT License | 1 | MIT License |
| 2 | 2 | ||
| 3 | Copyright (c) 2022 - 2025 grunfink et al. (Fediverse: @grunfink@comam.es) | 3 | Copyright (c) 2022 - 2026 grunfink et al. (Fediverse: @grunfink@comam.es) |
| 4 | 4 | ||
| 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |
| 6 | 6 | ||
diff --git a/activitypub.c b/activitypub.c index 59df31a..617fd30 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* snac - A simple, minimalistic ActivityPub instance */ | 1 | /* snac - A simple, minimalistic ActivityPub instance */ |
| 2 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 2 | /* copyright (c) 2022 - 2026 grunfink et al. / MIT license */ |
| 3 | 3 | ||
| 4 | #include "xs.h" | 4 | #include "xs.h" |
| 5 | #include "xs_json.h" | 5 | #include "xs_json.h" |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* snac - A simple, minimalistic ActivityPub instance */ | 1 | /* snac - A simple, minimalistic ActivityPub instance */ |
| 2 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 2 | /* copyright (c) 2022 - 2026 grunfink et al. / MIT license */ |
| 3 | 3 | ||
| 4 | #include "xs.h" | 4 | #include "xs.h" |
| 5 | #include "xs_hex.h" | 5 | #include "xs_hex.h" |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* snac - A simple, minimalistic ActivityPub instance */ | 1 | /* snac - A simple, minimalistic ActivityPub instance */ |
| 2 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 2 | /* copyright (c) 2022 - 2026 grunfink et al. / MIT license */ |
| 3 | 3 | ||
| 4 | #include "xs.h" | 4 | #include "xs.h" |
| 5 | #include "xs_regex.h" | 5 | #include "xs_regex.h" |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* snac - A simple, minimalistic ActivityPub instance */ | 1 | /* snac - A simple, minimalistic ActivityPub instance */ |
| 2 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 2 | /* copyright (c) 2022 - 2026 grunfink et al. / MIT license */ |
| 3 | 3 | ||
| 4 | #include "xs.h" | 4 | #include "xs.h" |
| 5 | #include "xs_io.h" | 5 | #include "xs_io.h" |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* snac - A simple, minimalistic ActivityPub instance */ | 1 | /* snac - A simple, minimalistic ActivityPub instance */ |
| 2 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 2 | /* copyright (c) 2022 - 2026 grunfink et al. / MIT license */ |
| 3 | 3 | ||
| 4 | #include "xs.h" | 4 | #include "xs.h" |
| 5 | #include "xs_io.h" | 5 | #include "xs_io.h" |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* snac - A simple, minimalistic ActivityPub instance */ | 1 | /* snac - A simple, minimalistic ActivityPub instance */ |
| 2 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 2 | /* copyright (c) 2022 - 2026 grunfink et al. / MIT license */ |
| 3 | 3 | ||
| 4 | #include "xs.h" | 4 | #include "xs.h" |
| 5 | #include "xs_io.h" | 5 | #include "xs_io.h" |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* snac - A simple, minimalistic ActivityPub instance */ | 1 | /* snac - A simple, minimalistic ActivityPub instance */ |
| 2 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 2 | /* copyright (c) 2022 - 2026 grunfink et al. / MIT license */ |
| 3 | 3 | ||
| 4 | #include "xs.h" | 4 | #include "xs.h" |
| 5 | #include "xs_io.h" | 5 | #include "xs_io.h" |
| @@ -18,7 +18,7 @@ | |||
| 18 | int usage(const char *cmd) | 18 | int usage(const char *cmd) |
| 19 | { | 19 | { |
| 20 | printf("snac " VERSION " - A simple, minimalistic ActivityPub instance\n"); | 20 | printf("snac " VERSION " - A simple, minimalistic ActivityPub instance\n"); |
| 21 | printf("Copyright (c) 2022 - 2025 grunfink et al. / MIT license\n"); | 21 | printf("Copyright (c) 2022 - 2026 grunfink et al. / MIT license\n"); |
| 22 | printf("\n"); | 22 | printf("\n"); |
| 23 | 23 | ||
| 24 | if (cmd == NULL) { | 24 | if (cmd == NULL) { |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* snac - A simple, minimalistic ActivityPub instance */ | 1 | /* snac - A simple, minimalistic ActivityPub instance */ |
| 2 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 2 | /* copyright (c) 2022 - 2026 grunfink et al. / MIT license */ |
| 3 | 3 | ||
| 4 | #ifndef NO_MASTODON_API | 4 | #ifndef NO_MASTODON_API |
| 5 | 5 | ||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* snac - A simple, minimalistic ActivityPub instance */ | 1 | /* snac - A simple, minimalistic ActivityPub instance */ |
| 2 | /* copyright (c) 2025 grunfink et al. / MIT license */ | 2 | /* copyright (c) 2025 - 2026 grunfink et al. / MIT license */ |
| 3 | 3 | ||
| 4 | #include "xs.h" | 4 | #include "xs.h" |
| 5 | #include "xs_html.h" | 5 | #include "xs_html.h" |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* snac - A simple, minimalistic ActivityPub instance */ | 1 | /* snac - A simple, minimalistic ActivityPub instance */ |
| 2 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 2 | /* copyright (c) 2022 - 2026 grunfink et al. / MIT license */ |
| 3 | 3 | ||
| 4 | #define XS_IMPLEMENTATION | 4 | #define XS_IMPLEMENTATION |
| 5 | 5 | ||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* snac - A simple, minimalistic ActivityPub instance */ | 1 | /* snac - A simple, minimalistic ActivityPub instance */ |
| 2 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 2 | /* copyright (c) 2022 - 2026 grunfink et al. / MIT license */ |
| 3 | 3 | ||
| 4 | #define VERSION "2.86-dev" | 4 | #define VERSION "2.86-dev" |
| 5 | 5 | ||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* snac - A simple, minimalistic ActivityPub instance */ | 1 | /* snac - A simple, minimalistic ActivityPub instance */ |
| 2 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 2 | /* copyright (c) 2022 - 2026 grunfink et al. / MIT license */ |
| 3 | 3 | ||
| 4 | #include "xs.h" | 4 | #include "xs.h" |
| 5 | #include "xs_io.h" | 5 | #include "xs_io.h" |
| @@ -1,5 +1,5 @@ | |||
| 1 | /* snac - A simple, minimalistic ActivityPub instance */ | 1 | /* snac - A simple, minimalistic ActivityPub instance */ |
| 2 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 2 | /* copyright (c) 2022 - 2026 grunfink et al. / MIT license */ |
| 3 | 3 | ||
| 4 | #include "xs.h" | 4 | #include "xs.h" |
| 5 | #include "xs_io.h" | 5 | #include "xs_io.h" |
diff --git a/webfinger.c b/webfinger.c index 1ce5e76..264cb85 100644 --- a/webfinger.c +++ b/webfinger.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* snac - A simple, minimalistic ActivityPub instance */ | 1 | /* snac - A simple, minimalistic ActivityPub instance */ |
| 2 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 2 | /* copyright (c) 2022 - 2026 grunfink et al. / MIT license */ |
| 3 | 3 | ||
| 4 | #include "xs.h" | 4 | #include "xs.h" |
| 5 | #include "xs_json.h" | 5 | #include "xs_json.h" |
| @@ -1,4 +1,4 @@ | |||
| 1 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 1 | /* copyright (c) 2022 - 2026 grunfink et al. / MIT license */ |
| 2 | 2 | ||
| 3 | #ifndef _XS_H | 3 | #ifndef _XS_H |
| 4 | 4 | ||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 1 | /* copyright (c) 2022 - 2026 grunfink et al. / MIT license */ |
| 2 | 2 | ||
| 3 | #ifndef _XS_CURL_H | 3 | #ifndef _XS_CURL_H |
| 4 | 4 | ||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 1 | /* copyright (c) 2022 - 2026 grunfink et al. / MIT license */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | This is an intentionally-dead-simple FastCGI implementation; | 4 | This is an intentionally-dead-simple FastCGI implementation; |
| @@ -1,4 +1,4 @@ | |||
| 1 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 1 | /* copyright (c) 2022 - 2026 grunfink et al. / MIT license */ |
| 2 | 2 | ||
| 3 | #ifndef _XS_GLOB_H | 3 | #ifndef _XS_GLOB_H |
| 4 | 4 | ||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 1 | /* copyright (c) 2022 - 2026 grunfink et al. / MIT license */ |
| 2 | 2 | ||
| 3 | #ifndef _XS_HEX_H | 3 | #ifndef _XS_HEX_H |
| 4 | 4 | ||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 1 | /* copyright (c) 2022 - 2026 grunfink et al. / MIT license */ |
| 2 | 2 | ||
| 3 | #ifndef _XS_HTML_H | 3 | #ifndef _XS_HTML_H |
| 4 | 4 | ||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 1 | /* copyright (c) 2022 - 2026 grunfink et al. / MIT license */ |
| 2 | 2 | ||
| 3 | #ifndef _XS_HTTP_H | 3 | #ifndef _XS_HTTP_H |
| 4 | 4 | ||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 1 | /* copyright (c) 2022 - 2026 grunfink et al. / MIT license */ |
| 2 | 2 | ||
| 3 | #ifndef _XS_HTTPD_H | 3 | #ifndef _XS_HTTPD_H |
| 4 | 4 | ||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 1 | /* copyright (c) 2022 - 2026 grunfink et al. / MIT license */ |
| 2 | 2 | ||
| 3 | #ifndef _XS_IO_H | 3 | #ifndef _XS_IO_H |
| 4 | 4 | ||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 1 | /* copyright (c) 2022 - 2026 grunfink et al. / MIT license */ |
| 2 | 2 | ||
| 3 | #ifndef _XS_JSON_H | 3 | #ifndef _XS_JSON_H |
| 4 | 4 | ||
| @@ -28,6 +28,8 @@ int xs_json_load_object(FILE *f, int maxdepth, xs_dict **d); | |||
| 28 | 28 | ||
| 29 | /** IMPLEMENTATION **/ | 29 | /** IMPLEMENTATION **/ |
| 30 | 30 | ||
| 31 | #include "xs_unicode.h" | ||
| 32 | |||
| 31 | /** JSON dumps **/ | 33 | /** JSON dumps **/ |
| 32 | 34 | ||
| 33 | static void _xs_json_dump_str(const char *data, FILE *f) | 35 | static void _xs_json_dump_str(const char *data, FILE *f) |
| @@ -1,4 +1,4 @@ | |||
| 1 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 1 | /* copyright (c) 2022 - 2026 grunfink et al. / MIT license */ |
| 2 | 2 | ||
| 3 | #ifndef _XS_MATCH_H | 3 | #ifndef _XS_MATCH_H |
| 4 | 4 | ||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 1 | /* copyright (c) 2022 - 2026 grunfink et al. / MIT license */ |
| 2 | 2 | ||
| 3 | #ifndef _XS_MIME_H | 3 | #ifndef _XS_MIME_H |
| 4 | 4 | ||
diff --git a/xs_openssl.h b/xs_openssl.h index f215bcc..64b59dd 100644 --- a/xs_openssl.h +++ b/xs_openssl.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 1 | /* copyright (c) 2022 - 2026 grunfink et al. / MIT license */ |
| 2 | 2 | ||
| 3 | #ifndef _XS_OPENSSL_H | 3 | #ifndef _XS_OPENSSL_H |
| 4 | 4 | ||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* copyright (c) 2025 grunfink et al. / MIT license */ | 1 | /* copyright (c) 2025 - 2026 grunfink et al. / MIT license */ |
| 2 | 2 | ||
| 3 | #ifndef _XS_PO_H | 3 | #ifndef _XS_PO_H |
| 4 | 4 | ||
diff --git a/xs_random.h b/xs_random.h index f936099..357f9cb 100644 --- a/xs_random.h +++ b/xs_random.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 1 | /* copyright (c) 2022 - 2026 grunfink et al. / MIT license */ |
| 2 | 2 | ||
| 3 | #ifndef _XS_RANDOM_H | 3 | #ifndef _XS_RANDOM_H |
| 4 | 4 | ||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 1 | /* copyright (c) 2022 - 2026 grunfink et al. / MIT license */ |
| 2 | 2 | ||
| 3 | #ifndef _XS_REGEX_H | 3 | #ifndef _XS_REGEX_H |
| 4 | 4 | ||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 1 | /* copyright (c) 2022 - 2026 grunfink et al. / MIT license */ |
| 2 | 2 | ||
| 3 | #ifndef _XS_SET_H | 3 | #ifndef _XS_SET_H |
| 4 | 4 | ||
diff --git a/xs_socket.h b/xs_socket.h index 7bf5298..70bfe98 100644 --- a/xs_socket.h +++ b/xs_socket.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 1 | /* copyright (c) 2022 - 2026 grunfink et al. / MIT license */ |
| 2 | 2 | ||
| 3 | #ifndef _XS_SOCKET_H | 3 | #ifndef _XS_SOCKET_H |
| 4 | 4 | ||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 1 | /* copyright (c) 2022 - 2026 grunfink et al. / MIT license */ |
| 2 | 2 | ||
| 3 | #ifndef _XS_TIME_H | 3 | #ifndef _XS_TIME_H |
| 4 | 4 | ||
diff --git a/xs_unicode.h b/xs_unicode.h index 0b4de1c..7686dcd 100644 --- a/xs_unicode.h +++ b/xs_unicode.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 1 | /* copyright (c) 2022 - 2026 grunfink et al. / MIT license */ |
| 2 | 2 | ||
| 3 | #ifndef _XS_UNICODE_H | 3 | #ifndef _XS_UNICODE_H |
| 4 | 4 | ||
diff --git a/xs_unix_socket.h b/xs_unix_socket.h index 462a5b3..1ef7d39 100644 --- a/xs_unix_socket.h +++ b/xs_unix_socket.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 1 | /* copyright (c) 2022 - 2026 grunfink et al. / MIT license */ |
| 2 | 2 | ||
| 3 | #ifndef _XS_UNIX_SOCKET_H | 3 | #ifndef _XS_UNIX_SOCKET_H |
| 4 | 4 | ||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* copyright (c) 2022 - 2025 grunfink et al. / MIT license */ | 1 | /* copyright (c) 2022 - 2026 grunfink et al. / MIT license */ |
| 2 | 2 | ||
| 3 | #ifndef _XS_URL_H | 3 | #ifndef _XS_URL_H |
| 4 | 4 | ||
diff --git a/xs_version.h b/xs_version.h index 34a7a45..598c72e 100644 --- a/xs_version.h +++ b/xs_version.h | |||
| @@ -1 +1 @@ | |||
| /* 0a8b987d7bb945fe7844411727d03ac73f417455 2025-10-14T05:21:05+02:00 */ | /* ad74258be9b1585840a5366cdb4b6ef707c0e95a 2026-01-01T16:58:39+01:00 */ | ||
diff --git a/xs_webmention.h b/xs_webmention.h index f9578b4..035b3a6 100644 --- a/xs_webmention.h +++ b/xs_webmention.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* copyright (c) 2025 grunfink et al. / MIT license */ | 1 | /* copyright (c) 2025 - 2026 grunfink et al. / MIT license */ |
| 2 | 2 | ||
| 3 | #ifndef _XS_WEBMENTION_H | 3 | #ifndef _XS_WEBMENTION_H |
| 4 | 4 | ||