Co-authored-by: Tobias Brunner <tobias@strongswan.org> Closes strongswan/strongswan#189. References #3498.