Reordered SSL_get_error error cases to match enum and functions to remove prototypes