MCPcopy Create free account
hub / github.com/RsyncProject/rsync / output_daemon_greeting

Function output_daemon_greeting

compat.c:833–846  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

831}
832
833void output_daemon_greeting(int f_out, int am_client)
834{
835 char tmpbuf[MAX_NSTR_STRLEN];
836 int our_sub = get_subprotocol_version();
837
838 init_checksum_choices();
839
840 get_default_nno_list(&valid_auth_checksums, tmpbuf, MAX_NSTR_STRLEN, '\0');
841
842 io_printf(f_out, "@RSYNCD: %d.%d %s\n", protocol_version, our_sub, tmpbuf);
843
844 if (am_client && DEBUG_GTE(NSTR, 2))
845 rprintf(FINFO, "Client %s list (on client): %s\n", valid_auth_checksums.type, tmpbuf);
846}
847
848void negotiate_daemon_auth(int f_out, int am_client)
849{

Callers 1

exchange_protocolsFunction · 0.85

Calls 5

get_subprotocol_versionFunction · 0.85
init_checksum_choicesFunction · 0.85
get_default_nno_listFunction · 0.85
io_printfFunction · 0.85
rprintfFunction · 0.70

Tested by

no test coverage detected