]> git.ipfire.org Git - thirdparty/dovecot/core.git/log
thirdparty/dovecot/core.git
5 weeks agolib-auth-client: auth-master - Restructure auth_user_list_reply_callback()
Stephan Bosch [Wed, 3 Jun 2020 20:26:30 +0000 (22:26 +0200)] 
lib-auth-client: auth-master - Restructure auth_user_list_reply_callback()

5 weeks agolib-auth-client: auth-master - Add structural comments
Stephan Bosch [Mon, 2 Oct 2017 14:30:40 +0000 (16:30 +0200)] 
lib-auth-client: auth-master - Add structural comments

5 weeks agolib-auth-client: auth-master - Rename auth_idle_timeout() to auth_master_idle_timeout()
Stephan Bosch [Wed, 3 Jun 2020 21:39:28 +0000 (23:39 +0200)] 
lib-auth-client: auth-master - Rename auth_idle_timeout() to auth_master_idle_timeout()

5 weeks agolib-auth-client: auth-master - Rename conn->request_counter to conn->id_counter
Stephan Bosch [Sat, 5 Jan 2019 14:31:47 +0000 (15:31 +0100)] 
lib-auth-client: auth-master - Rename conn->request_counter to conn->id_counter

This is shorter and consistent with lib-master/master-login-auth.

5 weeks agolib-auth-client: auth-master - Rename struct auth_master_lookup_ctx to struct auth_ma...
Stephan Bosch [Sun, 19 Apr 2020 17:57:08 +0000 (19:57 +0200)] 
lib-auth-client: auth-master - Rename struct auth_master_lookup_ctx to struct auth_master_lookup

5 weeks agolib-auth-client: auth_master - Rename "cmd" parameter to parse_reply() to "reply"
Stephan Bosch [Mon, 2 Oct 2017 13:14:26 +0000 (15:14 +0200)] 
lib-auth-client: auth_master - Rename "cmd" parameter to parse_reply() to "reply"

5 weeks agolib-auth-client: auth-master - Move auth_idle_timeout()
Stephan Bosch [Wed, 3 Jun 2020 21:31:23 +0000 (23:31 +0200)] 
lib-auth-client: auth-master - Move auth_idle_timeout()

5 weeks agolib-auth-client: auth-master - Move auth_master_pass_lookup()
Stephan Bosch [Sun, 19 Apr 2020 17:14:03 +0000 (19:14 +0200)] 
lib-auth-client: auth-master - Move auth_master_pass_lookup()

5 weeks agolib-auth-client: auth-master - Move auth_master_cache_flush()
Stephan Bosch [Sun, 19 Apr 2020 16:51:01 +0000 (18:51 +0200)] 
lib-auth-client: auth-master - Move auth_master_cache_flush()

5 weeks agolib-auth-client: auth-master - Move request-related code to new auth-master-request.c
Stephan Bosch [Sat, 5 Jan 2019 10:22:44 +0000 (11:22 +0100)] 
lib-auth-client: auth-master - Move request-related code to new auth-master-request.c

5 weeks agolib-auth-client: auth-master - Make auth_master_connect() public
Stephan Bosch [Fri, 4 Jan 2019 21:26:25 +0000 (22:26 +0100)] 
lib-auth-client: auth-master - Make auth_master_connect() public

5 weeks agolib-auth-client: auth-master - Rename auth_connection_close() to auth_master_disconne...
Stephan Bosch [Mon, 2 Oct 2017 18:26:19 +0000 (20:26 +0200)] 
lib-auth-client: auth-master - Rename auth_connection_close() to auth_master_disconnect() and make it public

5 weeks agolib-auth-client: auth-master - Move call to auth_request_lookup_abort() to central...
Stephan Bosch [Mon, 2 Oct 2017 15:05:21 +0000 (17:05 +0200)] 
lib-auth-client: auth-master - Move call to auth_request_lookup_abort() to central place

This is a preparation for a later changes that add more abort invokations.

5 weeks agolib-auth-client: auth-master - Move definitions to new auth-master-private.h
Stephan Bosch [Sun, 11 Mar 2018 13:20:26 +0000 (14:20 +0100)] 
lib-auth-client: auth-master - Move definitions to new auth-master-private.h

5 weeks agolib-auth-client: auth-master - Move auth master connection function definitions in...
Stephan Bosch [Mon, 2 Oct 2017 14:25:58 +0000 (16:25 +0200)] 
lib-auth-client: auth-master - Move auth master connection function definitions in header

5 weeks agolib-auth-client: auth-master - Move timeout callbacks
Stephan Bosch [Mon, 2 Oct 2017 12:53:24 +0000 (14:53 +0200)] 
lib-auth-client: auth-master - Move timeout callbacks

5 weeks agolib-auth-client: auth-master - Move definition of struct auth_master_user_list_ctx
Stephan Bosch [Wed, 22 Feb 2017 21:29:54 +0000 (22:29 +0100)] 
lib-auth-client: auth-master - Move definition of struct auth_master_user_list_ctx

5 weeks agolib-auth-client: auth-master - Move definition of struct auth_master_lookup_ctx
Stephan Bosch [Mon, 2 Oct 2017 09:47:07 +0000 (11:47 +0200)] 
lib-auth-client: auth-master - Move definition of struct auth_master_lookup_ctx

5 weeks agolib-auth-client: auth-master - Move auth_request_lookup_abort()
Stephan Bosch [Mon, 2 Oct 2017 13:01:48 +0000 (15:01 +0200)] 
lib-auth-client: auth-master - Move auth_request_lookup_abort()

5 weeks agolib-auth-client: auth-master - Move is_valid_string()
Stephan Bosch [Mon, 2 Oct 2017 09:43:28 +0000 (11:43 +0200)] 
lib-auth-client: auth-master - Move is_valid_string()

5 weeks agolib-auth-client: auth-master - Move args_hide_passwords()
Stephan Bosch [Mon, 2 Oct 2017 09:42:19 +0000 (11:42 +0200)] 
lib-auth-client: auth-master - Move args_hide_passwords()

5 weeks agolib-auth-client: auth-master - Move parse_reply()
Stephan Bosch [Mon, 2 Oct 2017 09:40:22 +0000 (11:40 +0200)] 
lib-auth-client: auth-master - Move parse_reply()

5 weeks agolib-auth-client: auth-master - Move auth_lookup_reply_callback()
Stephan Bosch [Mon, 2 Oct 2017 09:38:59 +0000 (11:38 +0200)] 
lib-auth-client: auth-master - Move auth_lookup_reply_callback()

5 weeks agolib-auth-client: auth-master - Move auth_master_handshake_line()
Stephan Bosch [Mon, 2 Oct 2017 09:35:06 +0000 (11:35 +0200)] 
lib-auth-client: auth-master - Move auth_master_handshake_line()

5 weeks agolib-lua: dluaL_error() - Add noreturn attribute to the function
Timo Sirainen [Mon, 25 Aug 2025 10:09:01 +0000 (13:09 +0300)] 
lib-lua: dluaL_error() - Add noreturn attribute to the function

This helps static analyzers.

5 weeks agolib-storage: mdbox_save_begin() - Drop redundant code.
Marco Bettini [Mon, 25 Aug 2025 15:13:06 +0000 (15:13 +0000)] 
lib-storage: mdbox_save_begin() - Drop redundant code.

Found by Coverity, 41954  Operands don't affect result
The comparison with UOFF_T_MAX is always true.

5 weeks agolib-storage: mdbox_map_append_assign_map_uids() - Drop redundant code.
Marco Bettini [Mon, 25 Aug 2025 15:09:47 +0000 (15:09 +0000)] 
lib-storage: mdbox_map_append_assign_map_uids() - Drop redundant code.

Found by Coverity, 41955, 41956  Operands don't affect result
The comparison with UOFF_T_MAX is always true.

5 weeks agolib-auth-client: Make auth lookups stop if master service is killed
Aki Tuomi [Fri, 30 May 2025 09:07:27 +0000 (12:07 +0300)] 
lib-auth-client: Make auth lookups stop if master service is killed

5 weeks agolib-auth: auth-master - Prevent stopped ioloop from hiding error in auth_master_input...
Stephan Bosch [Tue, 5 May 2020 09:58:06 +0000 (11:58 +0200)] 
lib-auth: auth-master - Prevent stopped ioloop from hiding error in auth_master_input_line()

5 weeks agolib-oauth2, oauth2: Add oauth2_token_expire_grace setting
Timo Sirainen [Fri, 15 Aug 2025 10:36:08 +0000 (13:36 +0300)] 
lib-oauth2, oauth2: Add oauth2_token_expire_grace setting

5 weeks agolib-oauth2: jwt - Improve error logging for timestamp errors
Timo Sirainen [Fri, 15 Aug 2025 10:20:16 +0000 (13:20 +0300)] 
lib-oauth2: jwt - Improve error logging for timestamp errors

5 weeks agolib-oauth2: jwt - Allow nbf and iat to point 1 second into future
Timo Sirainen [Fri, 15 Aug 2025 08:48:53 +0000 (11:48 +0300)] 
lib-oauth2: jwt - Allow nbf and iat to point 1 second into future

The token could have just been generated with a server where time is
slightly into the future compared to this server.

5 weeks agoglobal: Use doveadm_print_empty()
Timo Sirainen [Mon, 25 Aug 2025 09:51:05 +0000 (12:51 +0300)] 
global: Use doveadm_print_empty()

5 weeks agodoveadm: Add doveadm_print_empty()
Timo Sirainen [Mon, 25 Aug 2025 09:49:50 +0000 (12:49 +0300)] 
doveadm: Add doveadm_print_empty()

5 weeks agolib-lua: Add dlua_push_timeval()
Timo Sirainen [Mon, 25 Aug 2025 09:47:44 +0000 (12:47 +0300)] 
lib-lua: Add dlua_push_timeval()

6 weeks agoconfig: Add support for $SET:filter/path/setting
Timo Sirainen [Thu, 21 Aug 2025 10:44:55 +0000 (13:44 +0300)] 
config: Add support for $SET:filter/path/setting

For example $SET:service/auth/service_client_limit

6 weeks agodoveadm: Don't print duplicate sub-commands in help output
Timo Sirainen [Tue, 19 Aug 2025 07:59:35 +0000 (10:59 +0300)] 
doveadm: Don't print duplicate sub-commands in help output

For example mailbox command output listed "cache|cache|..."

6 weeks agodoveadm: Fix printing help for sub-sub-commands
Timo Sirainen [Tue, 19 Aug 2025 07:41:25 +0000 (10:41 +0300)] 
doveadm: Fix printing help for sub-sub-commands

For example "doveadm mailbox" would list all mailbox commands, but
"doveadm mailbox metadata" still listed just mailbox commands, not
"mailbox metadata commands".

6 weeks agolib-storage/index/dbox-multi: mdbox-map - Treat size=0 as last message in record
Karl Fleischmann [Mon, 18 Aug 2025 21:07:55 +0000 (23:07 +0200)] 
lib-storage/index/dbox-multi: mdbox-map - Treat size=0 as last message in record

6 weeks agolib-storage/index/dbox-multi/mdbox-save: dbox_save_mail - Use uoff_t for append_offset
Karl Fleischmann [Fri, 1 Aug 2025 13:25:00 +0000 (15:25 +0200)] 
lib-storage/index/dbox-multi/mdbox-save: dbox_save_mail - Use uoff_t for append_offset

6 weeks agolib-storage/index/dbox-multi/mdbox-storage-rebuild: mdbox_rebuild_msg - Use uoff_t...
Karl Fleischmann [Fri, 1 Aug 2025 13:19:46 +0000 (15:19 +0200)] 
lib-storage/index/dbox-multi/mdbox-storage-rebuild: mdbox_rebuild_msg - Use uoff_t for file-related size/offset

6 weeks agolib-storage/index/dbox-multi: mdbox-map - Use UOFF_T_MAX as special value
Karl Fleischmann [Thu, 17 Apr 2025 07:34:42 +0000 (09:34 +0200)] 
lib-storage/index/dbox-multi: mdbox-map - Use UOFF_T_MAX as special value

6 weeks agoimap: cmd-append - Replace spaces with tabs
Karl Fleischmann [Thu, 17 Apr 2025 09:50:25 +0000 (11:50 +0200)] 
imap: cmd-append - Replace spaces with tabs

6 weeks agolib-sql: driver-sqlite - Mark disconnected on disconnect
Aki Tuomi [Fri, 15 Aug 2025 12:30:44 +0000 (15:30 +0300)] 
lib-sql: driver-sqlite - Mark disconnected on disconnect

Forgotten in 6b2738c39a868ff9291867138c55029fc40cf105

7 weeks agolib-sql: Use strchr() based while loop to fill template
Aki Tuomi [Mon, 18 Aug 2025 05:30:42 +0000 (08:30 +0300)] 
lib-sql: Use strchr() based while loop to fill template

This is much faster than going one byte at a time.

7 weeks agoauth: ldap - Fix potential crash at deinit
Timo Sirainen [Tue, 12 Aug 2025 10:08:08 +0000 (13:08 +0300)] 
auth: ldap - Fix potential crash at deinit

Continuation of 5ff9a8686a29c423e1fcf90f2d36af521cef6f7d. It didn't fix
a situation where there were passdb requests still pending, because
passdb deinit only unreferenced db-ldap and then freed passdb settings.
Only after userdb deinit unreferenced db-ldap again did it try to abort
the ldap requests, but now the passdb settings were already NULL.

7 weeks agologin-common: If proxying fails due to remote having invalid SSL cert, don't reconnect
Timo Sirainen [Fri, 8 Aug 2025 09:12:51 +0000 (12:12 +0300)] 
login-common: If proxying fails due to remote having invalid SSL cert, don't reconnect

Consistently use LOGIN_PROXY_FAILURE_TYPE_INTERNAL_CONFIG type regardless of
whether the failure happens in ssl_iostream_handshake() or later.

7 weeks agolib-ssl-iostream, global: Rename ssl_iostream_has_[valid_]client_cert() to ssl_iostre...
Timo Sirainen [Fri, 8 Aug 2025 12:30:58 +0000 (15:30 +0300)] 
lib-ssl-iostream, global: Rename ssl_iostream_has_[valid_]client_cert() to ssl_iostream_has_[valid_]cert()

These functions can be used (and are used) for both client and server
connections, so it's confusing having the "client" in the function name.

7 weeks agolib-ssl-iostream: Replace ssl_iostream.has_[valid_]client_cert() with new ssl_iostrea...
Timo Sirainen [Fri, 8 Aug 2025 12:17:35 +0000 (15:17 +0300)] 
lib-ssl-iostream: Replace ssl_iostream.has_[valid_]client_cert() with new ssl_iostream.get_cert_validity()

7 weeks agolib-ssl-iostream: Remove ssl_iostream_has_handshake_failed()
Timo Sirainen [Fri, 8 Aug 2025 11:57:02 +0000 (14:57 +0300)] 
lib-ssl-iostream: Remove ssl_iostream_has_handshake_failed()

Its meaning is a bit too ambiguous. It's better for callers to use
ssl_iostream_get_state().

7 weeks agolib-http, lib-smtp: Retry requests on unexpected SSL handshake failures
Timo Sirainen [Fri, 8 Aug 2025 11:54:54 +0000 (14:54 +0300)] 
lib-http, lib-smtp: Retry requests on unexpected SSL handshake failures

Retrying should be disabled only when certificate is invalid, not for other
handshake errors.

7 weeks agolib-ssl-iostream: Implement ssl_iostream_is_handshaked() with ssl_iostream_get_state()
Timo Sirainen [Fri, 8 Aug 2025 11:48:45 +0000 (14:48 +0300)] 
lib-ssl-iostream: Implement ssl_iostream_is_handshaked() with ssl_iostream_get_state()

7 weeks agolib-ssl-iostream: Add ssl_iostream_get_state()
Timo Sirainen [Fri, 8 Aug 2025 11:45:50 +0000 (14:45 +0300)] 
lib-ssl-iostream: Add ssl_iostream_get_state()

7 weeks agolib-ssl-iostream: Fix indent
Timo Sirainen [Fri, 8 Aug 2025 11:42:48 +0000 (14:42 +0300)] 
lib-ssl-iostream: Fix indent

7 weeks agolib-ssl-iostream, global: Change ssl_iostream_handshake_callback_t to return enum
Timo Sirainen [Fri, 8 Aug 2025 11:35:21 +0000 (14:35 +0300)] 
lib-ssl-iostream, global: Change ssl_iostream_handshake_callback_t to return enum

The enum gives more details what failed.

7 weeks agolib-ssl-iostream, global: ssl_iostream_check_cert_validity() - Change return value...
Timo Sirainen [Fri, 8 Aug 2025 11:27:20 +0000 (14:27 +0300)] 
lib-ssl-iostream, global: ssl_iostream_check_cert_validity() - Change return value to enum

The enum gives more details what failed.

8 weeks agoauth: Deinitialize userdb before freeing up settings
Timo Sirainen [Fri, 8 Aug 2025 10:13:03 +0000 (13:13 +0300)] 
auth: Deinitialize userdb before freeing up settings

Some userdbs need the settings during deinitialization.

This was done for passdbs in 054ee6ae3b9a0ec7f669724037cca9059251b138.

8 weeks agologin-common: Initialize rawlog after TLS handshake
Aki Tuomi [Thu, 31 Jul 2025 11:27:47 +0000 (14:27 +0300)] 
login-common: Initialize rawlog after TLS handshake

8 weeks agologin-common: Reload client settings before proxying
Aki Tuomi [Thu, 31 Jul 2025 06:27:58 +0000 (09:27 +0300)] 
login-common: Reload client settings before proxying

This allows expanding settings that need username.

8 weeks agologin-common: Extract client_reload_settings()
Aki Tuomi [Mon, 4 Aug 2025 14:47:21 +0000 (17:47 +0300)] 
login-common: Extract client_reload_settings()

2 months agolib-dict-extra: dict-client - Retry transactions on errors if possible
Timo Sirainen [Tue, 5 Aug 2025 06:54:13 +0000 (09:54 +0300)] 
lib-dict-extra: dict-client - Retry transactions on errors if possible

If transaction has "atomic inc" operation, it cannot be retried.

2 months agolib-dict-extra: dict-client - Delay sending transactions to dict-server until commit
Timo Sirainen [Tue, 5 Aug 2025 06:52:06 +0000 (09:52 +0300)] 
lib-dict-extra: dict-client - Delay sending transactions to dict-server until commit

2 months agolib-dict-extra: dict-client - Retry commands when disconnected from server
Timo Sirainen [Mon, 4 Aug 2025 13:07:33 +0000 (16:07 +0300)] 
lib-dict-extra: dict-client - Retry commands when disconnected from server

Commands were previously retried when sending the command failed, but not
afterwards.

2 months agolib-dict-extra: dict-client - Add LF to stored query strings
Timo Sirainen [Tue, 5 Aug 2025 06:42:12 +0000 (09:42 +0300)] 
lib-dict-extra: dict-client - Add LF to stored query strings

This simplifies the following changes.

2 months agolib-dict-extra: dict-client - Add client_dict_cmd_get_log_query() wrapper
Timo Sirainen [Tue, 5 Aug 2025 07:41:02 +0000 (10:41 +0300)] 
lib-dict-extra: dict-client - Add client_dict_cmd_get_log_query() wrapper

2 months agolib: unicode-transform - Fix integer comparisons in Hangul functions
Stephan Bosch [Mon, 4 Aug 2025 23:50:02 +0000 (01:50 +0200)] 
lib: unicode-transform - Fix integer comparisons in Hangul functions

2 months agolib: iostream-rawlog - Do not log errors for permissions
Aki Tuomi [Thu, 31 Jul 2025 09:23:37 +0000 (12:23 +0300)] 
lib: iostream-rawlog - Do not log errors for permissions

If permissions are not sufficient, fail silently.

2 months agoconfig: Fix chaining $SET variables to a setting with $variables
Timo Sirainen [Mon, 4 Aug 2025 09:21:10 +0000 (12:21 +0300)] 
config: Fix chaining $SET variables to a setting with $variables

2 months agoconfig: Allow config_write_keyvariable() to fail at expansion time without panic
Timo Sirainen [Mon, 4 Aug 2025 09:58:25 +0000 (12:58 +0300)] 
config: Allow config_write_keyvariable() to fail at expansion time without panic

Needed by the next commit.

2 months agoconfig: Prepare for config_get_value() to return different errors
Timo Sirainen [Mon, 4 Aug 2025 10:03:02 +0000 (13:03 +0300)] 
config: Prepare for config_get_value() to return different errors

2 months agoconfig: Remove special service_* -> $SET:default_* handling
Timo Sirainen [Thu, 31 Jul 2025 12:21:24 +0000 (15:21 +0300)] 
config: Remove special service_* -> $SET:default_* handling

This now works by setting them with regular setting_keyvalues.

2 months agoconfig: Assume config parser end hook wants to change default settings
Timo Sirainen [Thu, 31 Jul 2025 12:47:53 +0000 (15:47 +0300)] 
config: Assume config parser end hook wants to change default settings

This is what Pigeonhole wants at least. This was already happening a bit
accidentally. Make thie explicit, because the next commit removes the
accidental method.

2 months agoconfig: Delay expanding $SET variables until the whole config is parsed
Timo Sirainen [Tue, 29 Jul 2025 12:00:03 +0000 (15:00 +0300)] 
config: Delay expanding $SET variables until the whole config is parsed

This most importantly fixes using $SET in built-in group settings which
prevents changing the setting in the config file before it is already
expanded.

2 months agoconfig: Prepare for storing unexpanded $SET variables into setting values
Timo Sirainen [Tue, 29 Jul 2025 10:00:37 +0000 (13:00 +0300)] 
config: Prepare for storing unexpanded $SET variables into setting values

2 months agoconfig: Add and use set_str_expanded() to simplify the following changes
Timo Sirainen [Tue, 29 Jul 2025 09:34:48 +0000 (12:34 +0300)] 
config: Add and use set_str_expanded() to simplify the following changes

2 months agoconfig: Prepare for expanding $SET variables later
Timo Sirainen [Tue, 29 Jul 2025 09:06:55 +0000 (12:06 +0300)] 
config: Prepare for expanding $SET variables later

2 months agoconfig: Fix $SET expansion handling between default/non-default settings
Timo Sirainen [Thu, 31 Jul 2025 10:14:32 +0000 (13:14 +0300)] 
config: Fix $SET expansion handling between default/non-default settings

This becomes more important after following changes, which otherwise would
cause e.g. built-in $SET:default_idle_kill_interval to not use
default_idle_kill_interval from dovecot.conf.

2 months agoconfig: config_write_keyvariable() - Add filter_parser parameter
Timo Sirainen [Tue, 29 Jul 2025 11:47:55 +0000 (14:47 +0300)] 
config: config_write_keyvariable() - Add filter_parser parameter

2 months agoconfig: Refactor config_get_value()
Timo Sirainen [Thu, 31 Jul 2025 11:57:32 +0000 (14:57 +0300)] 
config: Refactor config_get_value()

2 months agoconfig: Move config_filters_find_child()
Timo Sirainen [Thu, 31 Jul 2025 11:51:41 +0000 (14:51 +0300)] 
config: Move config_filters_find_child()

2 months agoconfig: Move config_get_value()
Timo Sirainen [Tue, 29 Jul 2025 11:31:53 +0000 (14:31 +0300)] 
config: Move config_get_value()

2 months agoconfig: config_get_value() - Add filter_parser parameter
Timo Sirainen [Tue, 29 Jul 2025 11:31:04 +0000 (14:31 +0300)] 
config: config_get_value() - Add filter_parser parameter

2 months agoconfig: Split config_module_parser.array to list and filter_array
Timo Sirainen [Tue, 29 Jul 2025 09:41:17 +0000 (12:41 +0300)] 
config: Split config_module_parser.array to list and filter_array

The list is used for SET_STRLIST and SET_BOOLLIST, while filter_array is
used for SET_FILTER_ARRAY.

2 months agoconfig: Rename config_apply_line() to config_apply_key_value()
Timo Sirainen [Tue, 29 Jul 2025 08:55:27 +0000 (11:55 +0300)] 
config: Rename config_apply_line() to config_apply_key_value()

2 months agolib-settings, global: Add prefix parameter to settings_parse_read_file()
Timo Sirainen [Tue, 29 Jul 2025 09:59:37 +0000 (12:59 +0300)] 
lib-settings, global: Add prefix parameter to settings_parse_read_file()

2 months agodoveconf: Fix crash when asking for specific settings but config is unusable
Timo Sirainen [Tue, 29 Jul 2025 12:36:00 +0000 (15:36 +0300)] 
doveconf: Fix crash when asking for specific settings but config is unusable

2 months agoauth: auth-cache - Drop auth_cache_parse_key()
Aki Tuomi [Fri, 25 Jul 2025 09:00:57 +0000 (12:00 +0300)] 
auth: auth-cache - Drop auth_cache_parse_key()

It's only used by tests and can now just call
auth_cache_parse_key_and_fields().

2 months agoauth: auth-cache - Require cache key to contain at least one variable
Aki Tuomi [Fri, 25 Jul 2025 08:41:03 +0000 (11:41 +0300)] 
auth: auth-cache - Require cache key to contain at least one variable

2 months agoauth: auth-cache - Treat cache key parsing errors as fatals
Aki Tuomi [Fri, 25 Jul 2025 08:52:36 +0000 (11:52 +0300)] 
auth: auth-cache - Treat cache key parsing errors as fatals

Avoids accidentically turning off caching

2 months agoauth: auth-cache - Change auth_cache_parse_key_exclude() to return error
Aki Tuomi [Fri, 25 Jul 2025 08:51:16 +0000 (11:51 +0300)] 
auth: auth-cache - Change auth_cache_parse_key_exclude() to return error

Simplifies following commit

2 months agoauth: auth-cache - Deduplicate auth_cache_parse_key() to use auth_cache_parse_key_and...
Aki Tuomi [Fri, 25 Jul 2025 08:48:43 +0000 (11:48 +0300)] 
auth: auth-cache - Deduplicate auth_cache_parse_key() to use auth_cache_parse_key_and_fields()

Simplifies following commit

2 months agoauth: auth-cache - Refactor auth_cache_parse_key_and_fields()
Aki Tuomi [Wed, 30 Jul 2025 06:42:20 +0000 (09:42 +0300)] 
auth: auth-cache - Refactor auth_cache_parse_key_and_fields()

Call auth_cache_parse_key_exclude() at the function end,
simplifies next commit.

2 months agoauth: Use AUTH_CACHE_KEY_USER instead of per-database constants
Aki Tuomi [Fri, 25 Jul 2025 05:16:52 +0000 (08:16 +0300)] 
auth: Use AUTH_CACHE_KEY_USER instead of per-database constants

Fixes cache key issue where users would end up overwriting
each other in cache due to cache key being essentially static
string because we no longer support %u.

Forgotten in 2e298e7ee98b6df61cf85117f000290d60a473b8

2 months agolib-language: Substitute libicu lowercase mapping implementation with our own
Stephan Bosch [Tue, 1 Apr 2025 02:43:33 +0000 (04:43 +0200)] 
lib-language: Substitute libicu lowercase mapping implementation with our own

2 months agolib: unicode-transform - Implement case mapping
Stephan Bosch [Tue, 1 Apr 2025 02:23:15 +0000 (04:23 +0200)] 
lib: unicode-transform - Implement case mapping

2 months agolib: unicode-data - Add case folding mappings
Stephan Bosch [Tue, 1 Apr 2025 01:07:30 +0000 (03:07 +0200)] 
lib: unicode-data - Add case folding mappings

2 months agolib: unicode-data - Add special case mappings for upper and lower case
Stephan Bosch [Mon, 31 Mar 2025 21:23:01 +0000 (23:23 +0200)] 
lib: unicode-data - Add special case mappings for upper and lower case

2 months agolib-language: Drop old word break and word boundary lookup implementation
Stephan Bosch [Fri, 21 Mar 2025 18:40:01 +0000 (19:40 +0100)] 
lib-language: Drop old word break and word boundary lookup implementation

2 months agolib-language: lang-tokenizer-generic - Use the new Unicode character database
Stephan Bosch [Fri, 21 Mar 2025 18:34:44 +0000 (19:34 +0100)] 
lib-language: lang-tokenizer-generic - Use the new Unicode character database

2 months agolib: unicode-data - Add relevant word break and boundary bits
Stephan Bosch [Fri, 21 Mar 2025 17:18:07 +0000 (18:18 +0100)] 
lib: unicode-data - Add relevant word break and boundary bits