Lines Matching refs:replace
532 char *orig, *avail, *oavail = NULL, *alg, *replace = NULL; in _ssh_order_hostkeyalgs() local
546 if ((replace = calloc(1, maxlen)) == NULL) { in _ssh_order_hostkeyalgs()
550 *replace = '\0'; in _ssh_order_hostkeyalgs()
558 if (*replace != '\0') in _ssh_order_hostkeyalgs()
559 strlcat(replace, ",", maxlen); in _ssh_order_hostkeyalgs()
560 strlcat(replace, alg, maxlen); in _ssh_order_hostkeyalgs()
565 if (*replace != '\0') { in _ssh_order_hostkeyalgs()
567 debug2_f("replace/%d %s", ssh->kex->server, replace); in _ssh_order_hostkeyalgs()
569 proposal[PROPOSAL_SERVER_HOST_KEY_ALGS] = replace; in _ssh_order_hostkeyalgs()
570 replace = NULL; /* owned by proposal */ in _ssh_order_hostkeyalgs()
575 free(replace); in _ssh_order_hostkeyalgs()