Lines Matching refs:replace
515 char *orig, *avail, *oavail = NULL, *alg, *replace = NULL; in _ssh_order_hostkeyalgs() local
529 if ((replace = calloc(1, maxlen)) == NULL) { in _ssh_order_hostkeyalgs()
533 *replace = '\0'; in _ssh_order_hostkeyalgs()
541 if (*replace != '\0') in _ssh_order_hostkeyalgs()
542 strlcat(replace, ",", maxlen); in _ssh_order_hostkeyalgs()
543 strlcat(replace, alg, maxlen); in _ssh_order_hostkeyalgs()
548 if (*replace != '\0') { in _ssh_order_hostkeyalgs()
550 debug2_f("replace/%d %s", ssh->kex->server, replace); in _ssh_order_hostkeyalgs()
552 proposal[PROPOSAL_SERVER_HOST_KEY_ALGS] = replace; in _ssh_order_hostkeyalgs()
553 replace = NULL; /* owned by proposal */ in _ssh_order_hostkeyalgs()
558 free(replace); in _ssh_order_hostkeyalgs()