[strongSwan] ipsec / stroke exit code

richter at ecos.de richter at ecos.de
Fri Sep 7 16:49:48 CEST 2012


Hi,

The ipsec command (in strongswan 5) does not set the exit code. It is always zero, regardless if an error occurs or not.

>From looking through the source code of stroke, it seems that stroke does not even know that there is an error, because it only prints out the return text from Charon.

It make scripting ipsec very hard, if there is no indicator if there is an error condition or not. 

Any chance to change this or is there another way to use ipsec and get proper errors back?

Thanks & Regards

Gerald






More information about the Users mailing list