Lines Matching refs:replace
530 char *orig, *avail, *oavail = NULL, *alg, *replace = NULL; in _ssh_order_hostkeyalgs() local
544 if ((replace = calloc(1, maxlen)) == NULL) { in _ssh_order_hostkeyalgs()
548 *replace = '\0'; in _ssh_order_hostkeyalgs()
556 if (*replace != '\0') in _ssh_order_hostkeyalgs()
557 strlcat(replace, ",", maxlen); in _ssh_order_hostkeyalgs()
558 strlcat(replace, alg, maxlen); in _ssh_order_hostkeyalgs()
563 if (*replace != '\0') { in _ssh_order_hostkeyalgs()
565 debug2_f("replace/%d %s", ssh->kex->server, replace); in _ssh_order_hostkeyalgs()
567 proposal[PROPOSAL_SERVER_HOST_KEY_ALGS] = replace; in _ssh_order_hostkeyalgs()
568 replace = NULL; /* owned by proposal */ in _ssh_order_hostkeyalgs()
573 free(replace); in _ssh_order_hostkeyalgs()