Lines Matching refs:replace
531 char *orig, *avail, *oavail = NULL, *alg, *replace = NULL; in _ssh_order_hostkeyalgs() local
545 if ((replace = calloc(1, maxlen)) == NULL) { in _ssh_order_hostkeyalgs()
549 *replace = '\0'; in _ssh_order_hostkeyalgs()
563 if (*replace != '\0') in _ssh_order_hostkeyalgs()
564 strlcat(replace, ",", maxlen); in _ssh_order_hostkeyalgs()
565 strlcat(replace, alg, maxlen); in _ssh_order_hostkeyalgs()
569 if (*replace != '\0') { in _ssh_order_hostkeyalgs()
571 debug2_f("replace/%d %s", ssh->kex->server, replace); in _ssh_order_hostkeyalgs()
573 proposal[PROPOSAL_SERVER_HOST_KEY_ALGS] = replace; in _ssh_order_hostkeyalgs()
574 replace = NULL; /* owned by proposal */ in _ssh_order_hostkeyalgs()
579 free(replace); in _ssh_order_hostkeyalgs()