Strongswan, the open source IPSec VPN software (https://www.strongswan.org/) is written in object oriented C. Ref: https://docs.strongswan.org/docs/5.9/devs/objectOrientedC.ht...
I have not looked through the source myself but thought this might be an interesting reference.