Finish up code to fetch SSL protocol version

The magic of ctypes.