Switch hpdelim interface to accept only ":" as delimiter.
authordtucker <dtucker@openbsd.org>
Tue, 8 Feb 2022 08:59:12 +0000 (08:59 +0000)
committerdtucker <dtucker@openbsd.org>
Tue, 8 Feb 2022 08:59:12 +0000 (08:59 +0000)
commit1143bc13fbc7142cef7b3403d9789291a909601e
tree9472594cb62566cbe68ec68014455052d1a6879e
parentc5e59ae303d998dce3e7d7b8ed51160203055237
Switch hpdelim interface to accept only ":" as delimiter.

Historicallly, hpdelim accepted ":" or "/" as a port delimiter between
hosts (or addresses) and ports.  These days most of the uses for "/"
are no longer accepted, so there are several places where it checks the
delimiter to disallow it.  Make hpdelim accept only ":" and use hpdelim2
in the other cases.  ok djm@
usr.bin/ssh/auth-options.c
usr.bin/ssh/misc.c
usr.bin/ssh/readconf.c
usr.bin/ssh/servconf.c
usr.bin/ssh/session.c
usr.bin/ssh/ssh.c