Lines Matching refs:replace
486 char *orig, *avail, *oavail = NULL, *alg, *replace = NULL; in _ssh_order_hostkeyalgs() local
500 if ((replace = calloc(1, maxlen)) == NULL) { in _ssh_order_hostkeyalgs()
504 *replace = '\0'; in _ssh_order_hostkeyalgs()
512 if (*replace != '\0') in _ssh_order_hostkeyalgs()
513 strlcat(replace, ",", maxlen); in _ssh_order_hostkeyalgs()
514 strlcat(replace, alg, maxlen); in _ssh_order_hostkeyalgs()
519 if (*replace != '\0') { in _ssh_order_hostkeyalgs()
521 debug2("%s: replace/%d %s", __func__, ssh->kex->server, replace); in _ssh_order_hostkeyalgs()
523 proposal[PROPOSAL_SERVER_HOST_KEY_ALGS] = replace; in _ssh_order_hostkeyalgs()
524 replace = NULL; /* owned by proposal */ in _ssh_order_hostkeyalgs()
529 free(replace); in _ssh_order_hostkeyalgs()