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
baad4295
...
baad429501ce8e3d2e5d2d00d71b660e396f8908
authored
2014-02-04 13:08:00 +0200
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Issue a deprecation warning if tls-required is used in pop3d or imap4d config
1 parent
b5b49d26
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
3 deletions
imap4d/imap4d.c
pop3d/pop3d.c
imap4d/imap4d.c
View file @
baad429
...
...
@@ -288,13 +288,23 @@ static int
cb_tls_required
(
void
*
data
,
mu_config_value_t
*
val
)
{
int
bv
;
if
(
mu_cfg_assert_value_type
(
val
,
MU_CFG_STRING
))
return
1
;
if
(
mu_cfg_parse_boolean
(
val
->
v
.
string
,
&
bv
))
mu_error
(
_
(
"Not a boolean value"
));
else
if
(
bv
)
tls_mode
=
tls_required
;
{
tls_mode
=
tls_required
;
mu_diag_output
(
MU_DIAG_WARNING
,
"the
\"
tls-required
\"
statement is deprecated, "
"use
\"
tls required
\"
instead"
);
}
else
mu_diag_output
(
MU_DIAG_WARNING
,
"the
\"
tls-required
\"
statement is deprecated, "
"use
\"
tls
\"
instead"
);
return
0
;
}
...
...
pop3d/pop3d.c
View file @
baad429
...
...
@@ -183,7 +183,17 @@ cb_tls_required (void *data, mu_config_value_t *val)
if
(
mu_cfg_parse_boolean
(
val
->
v
.
string
,
&
bv
))
mu_error
(
_
(
"Not a boolean value"
));
else
if
(
bv
)
tls_mode
=
tls_required
;
{
tls_mode
=
tls_required
;
mu_diag_output
(
MU_DIAG_WARNING
,
"the
\"
tls-required
\"
statement is deprecated, "
"use
\"
tls required
\"
instead"
);
}
else
mu_diag_output
(
MU_DIAG_WARNING
,
"the
\"
tls-required
\"
statement is deprecated, "
"use
\"
tls
\"
instead"
);
return
0
;
}
...
...
Please
register
or
sign in
to post a comment