Fixing issue 105. Fixing SSL version issue. Also modified test cases accordingly. Tried to minimize changes to existing API as much as possible