Changed ssl.c to match the new API for polarssl