Fix for SSL implementation to prevent beast attacks.