void didReceiveAuthenticationChallengeCallback(CFURLDownloadRef, CFURLAuthChallengeRef challenge, const void* clientInfo) { Download* download = downloadFromClientInfo(clientInfo); download->didReceiveAuthenticationChallenge(AuthenticationChallenge(challenge, download->authenticationClient())); }