save-keys: Add warning message to log if keys are being saved
This commit is contained in:
committed by
Andreas Steffen
parent
1da1ba01c4
commit
bac71410f3
@@ -415,5 +415,21 @@ save_keys_listener_t *save_keys_listener_create()
|
||||
FALSE, lib->ns),
|
||||
);
|
||||
|
||||
if (this->path && (this->ike || this->esp))
|
||||
{
|
||||
char *keys = "IKE";
|
||||
|
||||
if (this->ike && this->esp)
|
||||
{
|
||||
keys = "IKE AND ESP";
|
||||
}
|
||||
else if (this->esp)
|
||||
{
|
||||
keys = "ESP";
|
||||
}
|
||||
DBG0(DBG_DMN, "!!", keys, this->path);
|
||||
DBG0(DBG_DMN, "!! WARNING: SAVING %s KEYS TO '%s'", keys, this->path);
|
||||
DBG0(DBG_DMN, "!!", keys, this->path);
|
||||
}
|
||||
return &this->public;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user