Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
6ff823fa
...
6ff823fad8cd38e2da050d0a21f0d1f2bec02c00
authored
2004-11-15 16:31:41 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
New option --tls-required: do not allow authentication until TLS negotiation succeeds.
1 parent
4a4cd69d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
imap4d/imap4d.c
imap4d/imap4d.c
View file @
6ff823f
...
...
@@ -35,15 +35,18 @@ struct daemon_param daemon_param = {
NULL
/* No PID file by default */
};
int
login_disabled
;
int
login_disabled
;
/* Disable LOGIN command */
int
tls_required
;
/* Require STARTTLS */
/* Number of child processes. */
volatile
size_t
children
;
size_t
children
;
const
char
*
program_version
=
"imap4d ("
PACKAGE_STRING
")"
;
static
char
doc
[]
=
N_
(
"GNU imap4d -- the IMAP4D daemon"
);
#define ARG_LOGIN_DISABLED 1
#define ARG_TLS_REQUIRED 2
static
struct
argp_option
options
[]
=
{
{
"other-namespace"
,
'O'
,
N_
(
"PATHLIST"
),
0
,
N_
(
"set the `other' namespace"
),
0
},
...
...
@@ -51,6 +54,10 @@ static struct argp_option options[] = {
N_
(
"set the `shared' namespace"
),
0
},
{
"login-disabled"
,
ARG_LOGIN_DISABLED
,
NULL
,
0
,
N_
(
"Disable LOGIN command"
)},
#ifdef WITH_TLS
{
"tls-required"
,
ARG_TLS_REQUIRED
,
NULL
,
0
,
N_
(
"Always require STARTTLS before entering authentication phase"
)},
#endif
{
NULL
,
0
,
NULL
,
0
,
NULL
,
0
}
};
...
...
@@ -105,8 +112,15 @@ imap4d_parse_opt (int key, char *arg, struct argp_state *state)
case
ARG_LOGIN_DISABLED
:
login_disabled
=
1
;
imap4d_capability_add
(
"LOGINDISABLED"
);
imap4d_capability_add
(
IMAP_CAPA_LOGINDISABLED
);
break
;
#ifdef WITH_TLS
case
ARG_TLS_REQUIRED
:
tls_required
=
1
;
imap4d_capability_add
(
IMAP_CAPA_XTLSREQUIRED
);
break
;
#endif
default:
return
ARGP_ERR_UNKNOWN
;
...
...
Please
register
or
sign in
to post a comment