@@ -97,14 +97,14 @@ LIBSSH_OBJS=${LIBOPENSSH_OBJS} \
9797SSHOBJS = ssh.o readconf.o clientloop.o sshtty.o \
9898 sshconnect.o sshconnect1.o sshconnect2.o mux.o
9999
100- SSHDOBJS =sshd.o auth-rhosts.o auth-passwd.o auth-rsa.o auth-rh-rsa.o \
100+ SSHDOBJS =sshd.o auth-rhosts.o auth-passwd.o \
101101 audit.o audit-bsm.o audit-linux.o platform.o \
102102 sshpty.o sshlogin.o servconf.o serverloop.o \
103- auth.o auth1.o auth2.o auth-options.o session.o \
104- auth-chall.o auth2-chall.o groupaccess.o \
103+ auth.o auth2.o auth-options.o session.o \
104+ auth2-chall.o groupaccess.o \
105105 auth-skey.o auth-bsdauth.o auth2-hostbased.o auth2-kbdint.o \
106106 auth2-none.o auth2-passwd.o auth2-pubkey.o \
107- monitor_mm.o monitor.o monitor_wrap.o auth-krb5.o \
107+ monitor.o monitor_wrap.o auth-krb5.o \
108108 auth2-gss.o gss-serv.o gss-serv-krb5.o \
109109 loginrec.o auth-pam.o auth-shadow.o auth-sia.o md5crypt.o \
110110 sftp-server.o sftp-common.o \
@@ -240,6 +240,10 @@ clean: regressclean
240240 rm -f regress/unittests/hostkeys/test_hostkeys
241241 rm -f regress/unittests/kex/* .o
242242 rm -f regress/unittests/kex/test_kex
243+ rm -f regress/unittests/match/* .o
244+ rm -f regress/unittests/match/test_match
245+ rm -f regress/unittests/utf8/* .o
246+ rm -f regress/unittests/utf8/test_utf8
243247 rm -f regress/misc/kexfuzz/* .o
244248 rm -f regress/misc/kexfuzz/kexfuzz
245249 (cd openbsd-compat && $( MAKE) clean)
@@ -262,6 +266,10 @@ distclean: regressclean
262266 rm -f regress/unittests/hostkeys/test_hostkeys
263267 rm -f regress/unittests/kex/* .o
264268 rm -f regress/unittests/kex/test_kex
269+ rm -f regress/unittests/match/* .o
270+ rm -f regress/unittests/match/test_match
271+ rm -f regress/unittests/utf8/* .o
272+ rm -f regress/unittests/utf8/test_utf8
265273 rm -f regress/unittests/misc/kexfuzz
266274 (cd openbsd-compat && $( MAKE) distclean)
267275 if test -d pkg ; then \
@@ -422,6 +430,10 @@ regress-prep:
422430 mkdir -p ` pwd` /regress/unittests/hostkeys
423431 [ -d ` pwd` /regress/unittests/kex ] || \
424432 mkdir -p ` pwd` /regress/unittests/kex
433+ [ -d ` pwd` /regress/unittests/match ] || \
434+ mkdir -p ` pwd` /regress/unittests/match
435+ [ -d ` pwd` /regress/unittests/utf8 ] || \
436+ mkdir -p ` pwd` /regress/unittests/utf8
425437 [ -d ` pwd` /regress/misc/kexfuzz ] || \
426438 mkdir -p ` pwd` /regress/misc/kexfuzz
427439 [ -f ` pwd` /regress/Makefile ] || \
@@ -512,6 +524,26 @@ regress/unittests/hostkeys/test_hostkeys$(EXEEXT): \
512524 regress/unittests/test_helper/libtest_helper.a \
513525 -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS)
514526
527+ UNITTESTS_TEST_MATCH_OBJS =\
528+ regress/unittests/match/tests.o
529+
530+ regress/unittests/match/test_match$(EXEEXT ) : \
531+ ${UNITTESTS_TEST_MATCH_OBJS} \
532+ regress/unittests/test_helper/libtest_helper.a libssh.a
533+ $(LD) -o $@ $(LDFLAGS) $(UNITTESTS_TEST_MATCH_OBJS) \
534+ regress/unittests/test_helper/libtest_helper.a \
535+ -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS)
536+
537+ UNITTESTS_TEST_UTF8_OBJS =\
538+ regress/unittests/utf8/tests.o
539+
540+ regress/unittests/utf8/test_utf8$(EXEEXT ) : \
541+ ${UNITTESTS_TEST_UTF8_OBJS} \
542+ regress/unittests/test_helper/libtest_helper.a libssh.a
543+ $(LD) -o $@ $(LDFLAGS) $(UNITTESTS_TEST_UTF8_OBJS) \
544+ regress/unittests/test_helper/libtest_helper.a \
545+ -lssh -lopenbsd-compat -lssh -lopenbsd-compat $(LIBS)
546+
515547MISC_KEX_FUZZ_OBJS =\
516548 regress/misc/kexfuzz/kexfuzz.o
517549
@@ -528,6 +560,8 @@ regress-binaries: regress/modpipe$(EXEEXT) \
528560 regress/unittests/bitmap/test_bitmap$(EXEEXT ) \
529561 regress/unittests/hostkeys/test_hostkeys$(EXEEXT ) \
530562 regress/unittests/kex/test_kex$(EXEEXT ) \
563+ regress/unittests/match/test_match$(EXEEXT ) \
564+ regress/unittests/utf8/test_utf8$(EXEEXT ) \
531565 regress/misc/kexfuzz/kexfuzz$(EXEEXT )
532566
533567tests interop-tests t-exec : regress-prep regress-binaries $(TARGETS )
@@ -546,6 +580,7 @@ tests interop-tests t-exec: regress-prep regress-binaries $(TARGETS)
546580 TEST_SSH_PUTTYGEN=" puttygen" ; \
547581 TEST_SSH_CONCH=" conch" ; \
548582 TEST_SSH_IPV6=" @TEST_SSH_IPV6@" ; \
583+ TEST_SSH_UTF8=" @TEST_SSH_UTF8@" ; \
549584 TEST_SSH_ECC=" @TEST_SSH_ECC@" ; \
550585 cd $(srcdir ) /regress || exit $$? ; \
551586 $(MAKE ) \
@@ -570,6 +605,7 @@ tests interop-tests t-exec: regress-prep regress-binaries $(TARGETS)
570605 TEST_SSH_PUTTYGEN=" $$ {TEST_SSH_PUTTYGEN}" \
571606 TEST_SSH_CONCH=" $$ {TEST_SSH_CONCH}" \
572607 TEST_SSH_IPV6=" $$ {TEST_SSH_IPV6}" \
608+ TEST_SSH_UTF8=" $$ {TEST_SSH_UTF8}" \
573609 TEST_SSH_ECC=" $$ {TEST_SSH_ECC}" \
574610 TEST_SHELL=" ${TEST_SHELL} " \
575611 EXEEXT=" $( EXEEXT) " \
0 commit comments