[sr-dev] git:master:019637af: auth: restructuring of code for auth_challenge()