]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
login-common, *-login: Add login_binary.service_name
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 3 Dec 2025 13:58:55 +0000 (15:58 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Thu, 27 Nov 2025 07:53:37 +0000 (07:53 +0000)
This will be used for anvil.

src/imap-login/imap-login-client.c
src/imap-urlauth-login/imap-urlauth-login.c
src/login-common/login-common.h
src/pop3-login/client.c
src/submission-login/client.c

index 83c65f32e32d713cf31ad3165bc013173a998680..c761f91d6e1d6fd0829fc87b47fb0b6d8393dfe3 100644 (file)
@@ -607,6 +607,7 @@ static struct client_vfuncs imap_client_vfuncs = {
 
 static struct login_binary imap_login_binary = {
        .protocol = "imap",
+       .service_name = "imap",
        .process_name = "imap-login",
        .default_port = 143,
        .default_ssl_port = 993,
index 03c6b4f3d30e961865654c718fdbd957dcb51ba5..ce75204a6c773a2c868a4280db00dee892134d11 100644 (file)
@@ -187,6 +187,7 @@ static struct client_vfuncs imap_urlauth_vfuncs = {
 
 static struct login_binary imap_urlauth_login_binary = {
        .protocol = "imap-urlauth",
+       .service_name = "imap-urlauth",
        .process_name = "imap-urlauth-login",
        .default_login_socket = LOGIN_TOKEN_DEFAULT_SOCKET,
 
index 7156745d8eb644e41e961cb1fde328658f3341d5..040ca49c9ef77d10468e602f96d42483333a8202 100644 (file)
 #define LOGIN_TOKEN_DEFAULT_SOCKET "tokenlogin"
 
 struct login_binary {
-       /* e.g. imap, pop3 */
+       /* e.g. imap, pop3, sieve */
        const char *protocol;
-       /* e.g. imap-login, pop3-login */
+       /* e.g. imap, pop3, managesieve */
+       const char *service_name;
+       /* e.g. imap-login, pop3-login, managesieve-login */
        const char *process_name;
        /* e.g. ManageSieve, h2.. */
        const char *const *application_protocols;
index 4f32efef57ddb2436a20ac88ff20566c94738d89..dd9973987eacad970f3a7e052c61956fe76af8d0 100644 (file)
@@ -379,6 +379,7 @@ static struct client_vfuncs pop3_client_vfuncs = {
 
 static struct login_binary pop3_login_binary = {
        .protocol = "pop3",
+       .service_name = "pop3",
        .process_name = "pop3-login",
        .default_port = POP3_DEFAULT_PORT,
        .default_ssl_port = POP3S_DEFAULT_PORT,
index a42ab261ab8e7bed65c3503c09f8fdebc35e21e7..52af9597044df1cde42b87950667d047ba51b0db 100644 (file)
@@ -345,6 +345,7 @@ static struct client_vfuncs submission_client_vfuncs = {
 
 static struct login_binary submission_login_binary = {
        .protocol = "submission",
+       .service_name = "submission",
        .process_name = "submission-login",
        .default_port = 587,