aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2021-08-26 23:53:14 +0200
committerMatthias Andree <matthias.andree@gmx.de>2021-08-26 23:53:14 +0200
commit7f0acc8fc9cc6274b4cb52390c77d78dacfecc15 (patch)
treed331c712a3c0f330660137b44f47385cfed372a5 /imap.c
parent5e9e3c8682180ddee8da74e3711dc3328ae2f306 (diff)
downloadfetchmail-7f0acc8fc9cc6274b4cb52390c77d78dacfecc15.tar.gz
fetchmail-7f0acc8fc9cc6274b4cb52390c77d78dacfecc15.tar.bz2
fetchmail-7f0acc8fc9cc6274b4cb52390c77d78dacfecc15.zip
IMAP: rename misnamed function and variable
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/imap.c b/imap.c
index 50e28a5a..ed10374b 100644
--- a/imap.c
+++ b/imap.c
@@ -390,7 +390,7 @@ static int capa_probe(int sock, struct query *ctl)
return PS_SUCCESS;
}
-static int do_authcert (int sock, const char *command, const char *name)
+static int do_auth_external (int sock, const char *command, const char *name)
/* do authentication "external" (authentication provided by client cert) */
{
char buf[256];
@@ -531,15 +531,15 @@ static int imap_getauth(int sock, struct query *ctl, char *greeting)
|| ctl->server.authenticate == A_EXTERNAL)
&& strstr(capabilities, "AUTH=EXTERNAL"))
{
- ok = do_authcert(sock, "AUTHENTICATE", ctl->remotename);
- if (ok)
+ int err = do_auth_external(sock, "AUTHENTICATE", ctl->remotename);
+ if (err)
{
/* SASL cancellation of authentication */
gen_send(sock, "*");
if (ctl->server.authenticate != A_ANY)
- return ok;
+ return err;
} else {
- return ok;
+ return PS_SUCCESS;
}
}