[tor-commits] [tor/master] Split the client-only parts of init_keys() into a separate function