Allow argv_split() to optionally terminate tokenisation when it
authordjm <djm@openbsd.org>
Tue, 8 Jun 2021 06:54:40 +0000 (06:54 +0000)
committerdjm <djm@openbsd.org>
Tue, 8 Jun 2021 06:54:40 +0000 (06:54 +0000)
commit86a8bd52db7b583922339da4f948c4412c57d25e
tree19082d57d6405a97bca8554b11991b94b1ae198d
parentf93cb3deb2dde51aabc8ddceefc561c8db7d4958
Allow argv_split() to optionally terminate tokenisation when it
encounters an unquoted comment.

Add some additional utility function for working with argument
vectors, since we'll be switching to using them to parse
ssh/sshd_config shortly.

ok markus@ as part of a larger diff; tested in snaps
usr.bin/ssh/auth2-pubkey.c
usr.bin/ssh/misc.c
usr.bin/ssh/misc.h
usr.bin/ssh/sshconnect.c