gtls: Use preferred 'CURLcode result'