[PATCH 1/9] vpn-provider: Change vpn_provider_password_cb_t to use int error

Jussi Laakkonen <[email protected]> Mon, 26 Jan 2026 15:43:40 +0200
Newsgroups dev.linux.lists.connman
Message-ID <[email protected]>
The use of this callback is in VPN plugins only, it is meant to be used
after the reply from agent is received. To reduce code and not to
require parsing the char string error message it is preferred to use the
vpn_agent_check_and_process_reply_error() to get the error code for the
message and use it for the callbacks.
---
 vpn/vpn-provider.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vpn/vpn-provider.h b/vpn/vpn-provider.h
index 5d1455da..5c7ea5b8 100644
--- a/vpn/vpn-provider.h
+++ b/vpn/vpn-provider.h
@@ -145,7 +145,7 @@ typedef void (* vpn_provider_auth_cb_t) (struct vpn_provider *provider,
 typedef void (* vpn_provider_password_cb_t) (struct vpn_provider *provider,
 					const char *username,
 					const char *password,
-					const char *error, void *user_data);
+					int error, void *user_data);
 
 struct vpn_provider_driver {
 	const char *name;
-- 
2.47.3