prepared support of ca information records and ocsp functionality
This commit is contained in:
@@ -633,6 +633,22 @@ static void stroke_terminate(stroke_msg_t *msg, FILE *out)
|
||||
charon->ike_sa_manager->delete_by_name(charon->ike_sa_manager, msg->terminate.name);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a ca information record to the cainfo list
|
||||
*/
|
||||
static void stroke_add_ca(stroke_msg_t *msg, FILE *out)
|
||||
{
|
||||
/* TODO add code */
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete a ca information record from the cainfo list
|
||||
*/
|
||||
static void stroke_del_ca(stroke_msg_t *msg, FILE *out)
|
||||
{
|
||||
/* TODO add code */
|
||||
}
|
||||
|
||||
/**
|
||||
* show status of daemon
|
||||
*/
|
||||
@@ -882,6 +898,17 @@ static void stroke_reread(stroke_msg_t *msg, FILE *out)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* purge various information
|
||||
*/
|
||||
static void stroke_purge(stroke_msg_t *msg, FILE *out)
|
||||
{
|
||||
if (msg->purge.flags & PURGE_OCSP)
|
||||
{
|
||||
/* TODO charon->credentials->purge_ocsp(charon->credentials); */
|
||||
}
|
||||
}
|
||||
|
||||
signal_t get_signal_from_logtype(char *type)
|
||||
{
|
||||
if (strcasecmp(type, "any") == 0) return SIG_ANY;
|
||||
@@ -986,6 +1013,12 @@ static void stroke_process(int *fd)
|
||||
case STR_DEL_CONN:
|
||||
stroke_del_conn(msg, out);
|
||||
break;
|
||||
case STR_ADD_CA:
|
||||
stroke_add_ca(msg, out);
|
||||
break;
|
||||
case STR_DEL_CA:
|
||||
stroke_del_ca(msg, out);
|
||||
break;
|
||||
case STR_LOGLEVEL:
|
||||
stroke_loglevel(msg, out);
|
||||
break;
|
||||
@@ -995,6 +1028,9 @@ static void stroke_process(int *fd)
|
||||
case STR_REREAD:
|
||||
stroke_reread(msg, out);
|
||||
break;
|
||||
case STR_PURGE:
|
||||
stroke_purge(msg, out);
|
||||
break;
|
||||
default:
|
||||
DBG1(DBG_CFG, "received unknown stroke");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user