Co-authored-by: Tobias Brunner <[email protected]> Closes strongswan/strongswan#189. References #3498.