Adding IPsec Parameters APIs and fixing several other APIs