respecting ipsec.conf cachecrls= option
This commit is contained in:
@@ -118,16 +118,6 @@ starter_start_charon (starter_config_t *cfg, bool debug)
|
||||
{
|
||||
arg[argc++] = "--use-syslog";
|
||||
}
|
||||
if (cfg->setup.cachecrls)
|
||||
{
|
||||
arg[argc++] = "--cachecrls";
|
||||
}
|
||||
if (cfg->setup.crlcheckinterval > 0)
|
||||
{
|
||||
snprintf(buffer1, BUF_LEN, "%u", cfg->setup.crlcheckinterval);
|
||||
arg[argc++] = "--crlcheckinterval";
|
||||
arg[argc++] = buffer1;
|
||||
}
|
||||
|
||||
{ /* parse debug string */
|
||||
char *pos, *level, *buf_pos, type[4];
|
||||
|
||||
+27
-27
@@ -885,7 +885,7 @@ The currently-accepted
|
||||
names in a
|
||||
.B config
|
||||
.B setup
|
||||
section are:
|
||||
section affecting both daemons are:
|
||||
.TP 14
|
||||
.B cachecrls
|
||||
certificate revocation lists (CRLs) fetched via http or ldap will be cached in
|
||||
@@ -905,11 +905,6 @@ Accepted values are
|
||||
or
|
||||
.BR no .
|
||||
.TP
|
||||
.B crlcheckinterval
|
||||
interval in seconds. CRL fetching is enabled if the value is greater than zero.
|
||||
Asynchronous, periodic checking for fresh CRLs is currently done by the
|
||||
IKEv1 Pluto daemon only.
|
||||
.TP
|
||||
.B dumpdir
|
||||
in what directory should things started by \fBipsec starter\fR
|
||||
(notably the Pluto and Charon daemons) be allowed to dump core?
|
||||
@@ -940,11 +935,37 @@ which reverts to
|
||||
if at least one CRL URI is defined and to
|
||||
.B no
|
||||
if no URI is known.
|
||||
.TP
|
||||
.B uniqueids
|
||||
whether a particular participant ID should be kept unique,
|
||||
with any new (automatically keyed)
|
||||
connection using an ID from a different IP address
|
||||
deemed to replace all old ones using that ID;
|
||||
acceptable values are
|
||||
.B yes
|
||||
(the default)
|
||||
and
|
||||
.BR no .
|
||||
Participant IDs normally \fIare\fR unique,
|
||||
so a new (automatically-keyed) connection using the same ID is
|
||||
almost invariably intended to replace an old one.
|
||||
The IKEv2 daemon also accepts the value
|
||||
.B replace
|
||||
wich is identical to
|
||||
.B yes
|
||||
and the value
|
||||
.B keep
|
||||
to reject new IKE_SA setups and keep the duplicate established earlier.
|
||||
.PP
|
||||
The following
|
||||
.B config section
|
||||
parameters are used by the IKEv1 Pluto daemon only:
|
||||
.TP
|
||||
.B crlcheckinterval
|
||||
interval in seconds. CRL fetching is enabled if the value is greater than zero.
|
||||
Asynchronous, periodic checking for fresh CRLs is currently done by the
|
||||
IKEv1 Pluto daemon only.
|
||||
.TP
|
||||
.B keep_alive
|
||||
interval in seconds between NAT keep alive packets, the default being 20 seconds.
|
||||
.TP
|
||||
@@ -1035,27 +1056,6 @@ Default is none.
|
||||
.TP
|
||||
.B virtual_private
|
||||
defines private networks using a wildcard notation.
|
||||
.TP
|
||||
.B uniqueids
|
||||
whether a particular participant ID should be kept unique,
|
||||
with any new (automatically keyed)
|
||||
connection using an ID from a different IP address
|
||||
deemed to replace all old ones using that ID;
|
||||
acceptable values are
|
||||
.B yes
|
||||
(the default)
|
||||
and
|
||||
.BR no .
|
||||
Participant IDs normally \fIare\fR unique,
|
||||
so a new (automatically-keyed) connection using the same ID is
|
||||
almost invariably intended to replace an old one.
|
||||
The IKEv2 daemon also accepts the value
|
||||
.B replace
|
||||
wich is identical to
|
||||
.B yes
|
||||
and the value
|
||||
.B keep
|
||||
to reject new IKE_SA setups and keep the duplicate established earlier.
|
||||
.PP
|
||||
The following
|
||||
.B config section
|
||||
|
||||
@@ -541,6 +541,7 @@ int main (int argc, char **argv)
|
||||
/* schedule next try */
|
||||
alarm(PLUTO_RESTART_DELAY);
|
||||
}
|
||||
starter_stroke_configure(cfg);
|
||||
}
|
||||
_action_ &= ~FLAG_ACTION_START_CHARON;
|
||||
}
|
||||
|
||||
@@ -327,4 +327,17 @@ int starter_stroke_del_ca(starter_ca_t *ca)
|
||||
return send_stroke_msg(&msg);
|
||||
}
|
||||
|
||||
int starter_stroke_configure(starter_config_t *cfg)
|
||||
{
|
||||
stroke_msg_t msg;
|
||||
|
||||
if (cfg->setup.cachecrls)
|
||||
{
|
||||
msg.type = STR_CONFIG;
|
||||
msg.length = offsetof(stroke_msg_t, buffer);
|
||||
msg.config.cachecrl = 1;
|
||||
return send_stroke_msg(&msg);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -25,5 +25,6 @@ extern int starter_stroke_route_conn(starter_conn_t *conn);
|
||||
extern int starter_stroke_initiate_conn(starter_conn_t *conn);
|
||||
extern int starter_stroke_add_ca(starter_ca_t *ca);
|
||||
extern int starter_stroke_del_ca(starter_ca_t *ca);
|
||||
extern int starter_stroke_configure(starter_config_t *cfg);
|
||||
|
||||
#endif /* _STARTER_STROKE_H_ */
|
||||
|
||||
Reference in New Issue
Block a user