==== run-regress-constraints ====
cc -O2 -pipe  -DLIBRESSL_INTERNAL -Wall -Werror -I/home/src/regress/lib/libcrypto/x509/../../../../lib/libcrypto/x509 -I/home/src/regress/lib/libcrypto/x509/../../../../lib/libcrypto/bytestring -g -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow  -MD -MP  -c /home/src/regress/lib/libcrypto/x509/constraints.c
cc   -o constraints constraints.o -Wl,-Bstatic -lcrypto -Wl,-Bdynamic
./constraints

==== run-regress-verify ====
cc -O2 -pipe  -DLIBRESSL_INTERNAL -Wall -Werror -I/home/src/regress/lib/libcrypto/x509/../../../../lib/libcrypto/x509 -I/home/src/regress/lib/libcrypto/x509/../../../../lib/libcrypto/bytestring -g -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow  -MD -MP  -c /home/src/regress/lib/libcrypto/x509/verify.c
cc   -o verify verify.o -Wl,-Bstatic -lcrypto -Wl,-Bdynamic
perl /home/src/regress/lib/libcrypto/x509/make-dir-roots.pl /home/src/regress/lib/libcrypto/x509/../certs .
./verify /home/src/regress/lib/libcrypto/x509/../certs


Testing legacy x509_vfy
== Test 0 (1a)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 1 (2a)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 2 (2b)
CN = LibreSSL Test Server 1
verify error at depth 0: unable to get local issuer certificate
failed to verify at 0: unable to get local issuer certificate
INFO: Succeeded with 0 chains

== Test 3 (2c)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 4 (3a)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Intermediate CA 3
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 5 (3b)
CN = LibreSSL Test Intermediate CA 2
verify error at depth 2: unable to get local issuer certificate
failed to verify at 2: unable to get local issuer certificate
INFO: Succeeded with 0 chains

== Test 6 (3c)
CN = LibreSSL Test Intermediate CA 3
verify error at depth 1: unable to get local issuer certificate
failed to verify at 1: unable to get local issuer certificate
INFO: Succeeded with 0 chains

== Test 7 (3d)
CN = LibreSSL Test Server 1
verify error at depth 0: unable to get local issuer certificate
failed to verify at 0: unable to get local issuer certificate
INFO: Succeeded with 0 chains

== Test 8 (3e)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Intermediate CA 3
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 9 (4a)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 10 (4b)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 11 (4c)
CN = LibreSSL Test Intermediate CA 1
verify error at depth 1: unable to get local issuer certificate
failed to verify at 1: unable to get local issuer certificate
FAIL: Failed with 0 chains (legacy failure)

== Test 12 (4d)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 13 (4e)
CN = LibreSSL Test Root CA 2
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 14 (4f)
CN = LibreSSL Test Root CA 2
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 15 (4g)
CN = LibreSSL Test Intermediate CA 1
verify error at depth 1: unable to get local issuer certificate
failed to verify at 1: unable to get local issuer certificate
FAIL: Failed with 0 chains (legacy failure)

== Test 16 (4h)
CN = LibreSSL Test Root CA 2
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 17 (5a)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 18 (5b)
CN = LibreSSL Test Intermediate CA 1
verify error at depth 2: unable to get local issuer certificate
failed to verify at 2: unable to get local issuer certificate
FAIL: Failed with 0 chains (legacy failure)

== Test 19 (5c)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 20 (5d)
CN = LibreSSL Test Root CA 2
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 21 (5e)
CN = LibreSSL Test Intermediate CA 2
verify error at depth 1: unable to get local issuer certificate
failed to verify at 1: unable to get local issuer certificate
FAIL: Failed with 0 chains (legacy failure)

== Test 22 (5f)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 23 (5g)
CN = LibreSSL Test Root CA 2
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 24 (5h)
CN = LibreSSL Test Root CA 2
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 25 (5i)
CN = LibreSSL Test Intermediate CA 2
verify error at depth 1: unable to get local issuer certificate
failed to verify at 1: unable to get local issuer certificate
FAIL: Failed with 0 chains (legacy failure)

== Test 26 (6a)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 27 (6b)
CN = LibreSSL Test Root CA 2
verify error at depth 2: certificate has expired
failed to verify at 2: certificate has expired
FAIL: Failed with 0 chains (legacy failure)

== Test 28 (7a)
CN = LibreSSL Test Root CA 1
verify error at depth 3: certificate has expired
failed to verify at 3: certificate has expired
FAIL: Failed with 0 chains (legacy failure)

== Test 29 (7b)
CN = LibreSSL Test Root CA 2
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 30 (8a)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
verify error at depth 0: certificate has expired
failed to verify at 0: certificate has expired
INFO: Succeeded with 0 chains

== Test 31 (9a)
CN = LibreSSL Test Server 1
verify error at depth 0: unable to get local issuer certificate
failed to verify at 0: unable to get local issuer certificate
INFO: Succeeded with 0 chains

== Test 32 (10a)
CN = LibreSSL Test Root CA 2
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 33 (10b)
CN = LibreSSL Test Root CA 2
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 34 (11a)
CN = LibreSSL Test Intermediate CA 2
verify error at depth 1: unable to get local issuer certificate
failed to verify at 1: unable to get local issuer certificate
FAIL: Failed with 0 chains (legacy failure)

== Test 35 (11b)
CN = LibreSSL Test Root CA 2
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 36 (12a)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 37 (13a)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
verify error at depth 2: certificate has expired
failed to verify at 2: certificate has expired
FAIL: Failed with 0 chains (legacy failure)



Testing modern x509_vfy
== Test 0 (1a)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 1 (2a)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 2 (2b)
CN = LibreSSL Test Server 1
verify error at depth 0: unable to get local issuer certificate
failed to verify at 0: unable to get local issuer certificate
INFO: Succeeded with 0 chains

== Test 3 (2c)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 4 (3a)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Intermediate CA 3
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 5 (3b)
CN = LibreSSL Test Server 1
verify error at depth 2: unable to get local issuer certificate
failed to verify at 2: unable to get local issuer certificate
INFO: Succeeded with 0 chains

== Test 6 (3c)
CN = LibreSSL Test Server 1
verify error at depth 1: unable to get local issuer certificate
failed to verify at 1: unable to get local issuer certificate
INFO: Succeeded with 0 chains

== Test 7 (3d)
CN = LibreSSL Test Server 1
verify error at depth 0: unable to get local issuer certificate
failed to verify at 0: unable to get local issuer certificate
INFO: Succeeded with 0 chains

== Test 8 (3e)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Intermediate CA 3
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 9 (4a)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 10 (4b)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 11 (4c)
CN = LibreSSL Test Root CA 2
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains (legacy failure)

== Test 12 (4d)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 13 (4e)
CN = LibreSSL Test Root CA 2
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 14 (4f)
CN = LibreSSL Test Root CA 2
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 15 (4g)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains (legacy failure)

== Test 16 (4h)
CN = LibreSSL Test Root CA 2
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 17 (5a)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 18 (5b)
CN = LibreSSL Test Root CA 2
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains (legacy failure)

== Test 19 (5c)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 20 (5d)
CN = LibreSSL Test Root CA 2
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 21 (5e)
CN = LibreSSL Test Root CA 2
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains (legacy failure)

== Test 22 (5f)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 23 (5g)
CN = LibreSSL Test Root CA 2
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 24 (5h)
CN = LibreSSL Test Root CA 2
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 25 (5i)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains (legacy failure)

== Test 26 (6a)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 27 (6b)
CN = LibreSSL Test Root CA 2
verify error at depth 2: certificate has expired
CN = LibreSSL Test Root CA 1
verify error at depth 3: certificate has expired
CN = LibreSSL Test Intermediate CA 1
verify error at depth 2: certificate has expired
CN = LibreSSL Test Intermediate CA 2
verify error at depth 1: certificate has expired
CN = LibreSSL Test Server 1
verify error at depth 0: certificate has expired
INFO: Succeeded with 1 chains (legacy failure)

== Test 28 (7a)
CN = LibreSSL Test Root CA 1
verify error at depth 3: certificate has expired
CN = LibreSSL Test Root CA 2
verify error at depth 2: certificate has expired
CN = LibreSSL Test Intermediate CA 2
verify error at depth 1: certificate has expired
CN = LibreSSL Test Server 1
verify error at depth 0: certificate has expired
INFO: Succeeded with 1 chains (legacy failure)

== Test 29 (7b)
CN = LibreSSL Test Root CA 2
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 30 (8a)
CN = LibreSSL Test Server 1
verify error at depth 0: certificate has expired
CN = LibreSSL Test Server 1
verify error at depth 0: certificate has expired
CN = LibreSSL Test Server 1
verify error at depth 0: certificate has expired
failed to verify at 0: certificate has expired
INFO: Succeeded with 0 chains

== Test 31 (9a)
CN = LibreSSL Test Intermediate CA 1
verify error at depth 1: certificate has expired
CN = LibreSSL Test Intermediate CA 1
verify error at depth 1: certificate has expired
CN = LibreSSL Test Intermediate CA 1
verify error at depth 1: certificate has expired
failed to verify at 1: certificate has expired
INFO: Succeeded with 0 chains

== Test 32 (10a)
CN = LibreSSL Test Intermediate CA 1
verify error at depth 1: certificate has expired
CN = LibreSSL Test Root CA 2
verify error at depth 2: certificate has expired
CN = LibreSSL Test Intermediate CA 1
verify error at depth 1: certificate has expired
CN = LibreSSL Test Server 1
verify error at depth 0: certificate has expired
INFO: Succeeded with 1 chains

== Test 33 (10b)
CN = LibreSSL Test Intermediate CA 1
verify error at depth 1: certificate has expired
CN = LibreSSL Test Root CA 2
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 34 (11a)
CN = LibreSSL Test Intermediate CA 1
verify error at depth 2: certificate has expired
CN = LibreSSL Test Root CA 2
verify error at depth 2: certificate has expired
CN = LibreSSL Test Intermediate CA 2
verify error at depth 1: certificate has expired
CN = LibreSSL Test Server 1
verify error at depth 0: certificate has expired
INFO: Succeeded with 1 chains (legacy failure)

== Test 35 (11b)
CN = LibreSSL Test Root CA 2
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 36 (12a)
CN = LibreSSL Test Intermediate CA 1
verify error at depth 2: certificate has expired
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 37 (13a)
CN = LibreSSL Test Intermediate CA 1
verify error at depth 2: certificate has expired
CN = LibreSSL Test Root CA 1
verify error at depth 3: certificate has expired
CN = LibreSSL Test Intermediate CA 1
verify error at depth 2: certificate has expired
CN = LibreSSL Test Intermediate CA 2
verify error at depth 1: certificate has expired
CN = LibreSSL Test Server 1
verify error at depth 0: certificate has expired
INFO: Succeeded with 1 chains (legacy failure)



Testing modern x509_vfy by_dir
== Test 0 (1a)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 1 (2a)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 2 (2b)
CN = LibreSSL Test Server 1
verify error at depth 0: unable to get local issuer certificate
failed to verify at 0: unable to get local issuer certificate
INFO: Succeeded with 0 chains

== Test 3 (2c)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 4 (3a)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Intermediate CA 3
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 5 (3b)
CN = LibreSSL Test Server 1
verify error at depth 2: unable to get local issuer certificate
failed to verify at 2: unable to get local issuer certificate
INFO: Succeeded with 0 chains

== Test 6 (3c)
CN = LibreSSL Test Server 1
verify error at depth 1: unable to get local issuer certificate
failed to verify at 1: unable to get local issuer certificate
INFO: Succeeded with 0 chains

== Test 7 (3d)
CN = LibreSSL Test Server 1
verify error at depth 0: unable to get local issuer certificate
failed to verify at 0: unable to get local issuer certificate
INFO: Succeeded with 0 chains

== Test 8 (3e)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Intermediate CA 3
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 9 (4a)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 10 (4b)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 11 (4c)
CN = LibreSSL Test Root CA 2
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains (legacy failure)

== Test 12 (4d)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 13 (4e)
CN = LibreSSL Test Root CA 2
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 14 (4f)
CN = LibreSSL Test Root CA 2
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 15 (4g)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains (legacy failure)

== Test 16 (4h)
CN = LibreSSL Test Root CA 2
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 17 (5a)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 18 (5b)
CN = LibreSSL Test Root CA 2
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains (legacy failure)

== Test 19 (5c)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 20 (5d)
CN = LibreSSL Test Root CA 2
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 21 (5e)
CN = LibreSSL Test Root CA 2
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains (legacy failure)

== Test 22 (5f)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 23 (5g)
CN = LibreSSL Test Root CA 2
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 24 (5h)
CN = LibreSSL Test Root CA 2
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 25 (5i)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains (legacy failure)

== Test 26 (6a)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 27 (6b)
CN = LibreSSL Test Root CA 2
verify error at depth 2: certificate has expired
CN = LibreSSL Test Root CA 1
verify error at depth 3: certificate has expired
CN = LibreSSL Test Intermediate CA 1
verify error at depth 2: certificate has expired
CN = LibreSSL Test Intermediate CA 2
verify error at depth 1: certificate has expired
CN = LibreSSL Test Server 1
verify error at depth 0: certificate has expired
INFO: Succeeded with 1 chains (legacy failure)

== Test 28 (7a)
CN = LibreSSL Test Root CA 1
verify error at depth 3: certificate has expired
CN = LibreSSL Test Root CA 2
verify error at depth 2: certificate has expired
CN = LibreSSL Test Intermediate CA 2
verify error at depth 1: certificate has expired
CN = LibreSSL Test Server 1
verify error at depth 0: certificate has expired
INFO: Succeeded with 1 chains (legacy failure)

== Test 29 (7b)
CN = LibreSSL Test Root CA 2
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 30 (8a)
CN = LibreSSL Test Server 1
verify error at depth 0: certificate has expired
CN = LibreSSL Test Server 1
verify error at depth 0: certificate has expired
CN = LibreSSL Test Server 1
verify error at depth 0: certificate has expired
failed to verify at 0: certificate has expired
INFO: Succeeded with 0 chains

== Test 31 (9a)
CN = LibreSSL Test Intermediate CA 1
verify error at depth 1: certificate has expired
CN = LibreSSL Test Intermediate CA 1
verify error at depth 1: certificate has expired
CN = LibreSSL Test Intermediate CA 1
verify error at depth 1: certificate has expired
failed to verify at 1: certificate has expired
INFO: Succeeded with 0 chains

== Test 32 (10a)
CN = LibreSSL Test Intermediate CA 1
verify error at depth 1: certificate has expired
CN = LibreSSL Test Root CA 2
verify error at depth 2: certificate has expired
CN = LibreSSL Test Intermediate CA 1
verify error at depth 1: certificate has expired
CN = LibreSSL Test Server 1
verify error at depth 0: certificate has expired
INFO: Succeeded with 1 chains

== Test 33 (10b)
CN = LibreSSL Test Intermediate CA 1
verify error at depth 1: certificate has expired
CN = LibreSSL Test Root CA 2
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 34 (11a)
CN = LibreSSL Test Intermediate CA 1
verify error at depth 2: certificate has expired
CN = LibreSSL Test Root CA 2
verify error at depth 2: certificate has expired
CN = LibreSSL Test Intermediate CA 2
verify error at depth 1: certificate has expired
CN = LibreSSL Test Server 1
verify error at depth 0: certificate has expired
INFO: Succeeded with 1 chains (legacy failure)

== Test 35 (11b)
CN = LibreSSL Test Root CA 2
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 36 (12a)
CN = LibreSSL Test Intermediate CA 1
verify error at depth 2: certificate has expired
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 37 (13a)
CN = LibreSSL Test Intermediate CA 1
verify error at depth 2: certificate has expired
CN = LibreSSL Test Root CA 1
verify error at depth 3: certificate has expired
CN = LibreSSL Test Intermediate CA 1
verify error at depth 2: certificate has expired
CN = LibreSSL Test Intermediate CA 2
verify error at depth 1: certificate has expired
CN = LibreSSL Test Server 1
verify error at depth 0: certificate has expired
INFO: Succeeded with 1 chains (legacy failure)



Testing x509_verify
== Test 0 (1a)
Chain 0
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Root CA 1
INFO: Succeeded with 1 chains

== Test 1 (2a)
Chain 0
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Root CA 1
INFO: Succeeded with 1 chains

== Test 2 (2b)
failed to verify at 0: unable to get local issuer certificate
INFO: Succeeded with 0 chains

== Test 3 (2c)
Chain 0
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Root CA 1
INFO: Succeeded with 1 chains

== Test 4 (3a)
Chain 0
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 3
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Root CA 1
INFO: Succeeded with 1 chains

== Test 5 (3b)
failed to verify at 2: unable to get local issuer certificate
INFO: Succeeded with 0 chains

== Test 6 (3c)
failed to verify at 1: unable to get local issuer certificate
INFO: Succeeded with 0 chains

== Test 7 (3d)
failed to verify at 0: unable to get local issuer certificate
INFO: Succeeded with 0 chains

== Test 8 (3e)
Chain 0
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 3
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Root CA 1
INFO: Succeeded with 1 chains

== Test 9 (4a)
Chain 0
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Root CA 1
Chain 1
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Root CA 2
INFO: Succeeded with 2 chains

== Test 10 (4b)
Chain 0
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Root CA 1
INFO: Succeeded with 1 chains

== Test 11 (4c)
Chain 0
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Root CA 2
INFO: Succeeded with 1 chains (legacy failure)

== Test 12 (4d)
Chain 0
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Root CA 1
INFO: Succeeded with 1 chains

== Test 13 (4e)
Chain 0
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Root CA 2
INFO: Succeeded with 1 chains

== Test 14 (4f)
Chain 0
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Root CA 2
Chain 1
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Root CA 1
INFO: Succeeded with 2 chains

== Test 15 (4g)
Chain 0
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Root CA 1
INFO: Succeeded with 1 chains (legacy failure)

== Test 16 (4h)
Chain 0
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Root CA 2
INFO: Succeeded with 1 chains

== Test 17 (5a)
Chain 0
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Root CA 1
Chain 1
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Root CA 2
INFO: Succeeded with 2 chains

== Test 18 (5b)
Chain 0
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Root CA 2
INFO: Succeeded with 1 chains (legacy failure)

== Test 19 (5c)
Chain 0
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Root CA 1
INFO: Succeeded with 1 chains

== Test 20 (5d)
Chain 0
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Root CA 2
INFO: Succeeded with 1 chains

== Test 21 (5e)
Chain 0
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Root CA 2
INFO: Succeeded with 1 chains (legacy failure)

== Test 22 (5f)
Chain 0
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Root CA 1
INFO: Succeeded with 1 chains

== Test 23 (5g)
Chain 0
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Root CA 2
Chain 1
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Root CA 1
INFO: Succeeded with 2 chains

== Test 24 (5h)
Chain 0
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Root CA 2
INFO: Succeeded with 1 chains

== Test 25 (5i)
Chain 0
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Root CA 1
INFO: Succeeded with 1 chains (legacy failure)

== Test 26 (6a)
Chain 0
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Root CA 1
INFO: Succeeded with 1 chains

== Test 27 (6b)
Chain 0
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Root CA 1
INFO: Succeeded with 1 chains (legacy failure)

== Test 28 (7a)
Chain 0
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Root CA 2
INFO: Succeeded with 1 chains (legacy failure)

== Test 29 (7b)
Chain 0
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Root CA 2
INFO: Succeeded with 1 chains

== Test 30 (8a)
failed to verify at 0: certificate has expired
INFO: Succeeded with 0 chains

== Test 31 (9a)
failed to verify at 1: certificate has expired
INFO: Succeeded with 0 chains

== Test 32 (10a)
Chain 0
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Root CA 2
INFO: Succeeded with 1 chains

== Test 33 (10b)
Chain 0
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Root CA 2
INFO: Succeeded with 1 chains

== Test 34 (11a)
Chain 0
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Root CA 2
INFO: Succeeded with 1 chains (legacy failure)

== Test 35 (11b)
Chain 0
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Root CA 2
INFO: Succeeded with 1 chains

== Test 36 (12a)
Chain 0
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Intermediate CA 1
INFO: Succeeded with 1 chains

== Test 37 (13a)
Chain 0
--------
CN = LibreSSL Test Server 1
CN = LibreSSL Test Intermediate CA 2
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Root CA 1
INFO: Succeeded with 1 chains (legacy failure)


==== run-regress-x509attribute ====
cc -O2 -pipe  -DLIBRESSL_INTERNAL -Wall -Werror -I/home/src/regress/lib/libcrypto/x509/../../../../lib/libcrypto/x509 -I/home/src/regress/lib/libcrypto/x509/../../../../lib/libcrypto/bytestring -g -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow  -MD -MP  -c /home/src/regress/lib/libcrypto/x509/x509attribute.c
cc   -o x509attribute x509attribute.o -lcrypto
./x509attribute

==== run-regress-x509name ====
cc -O2 -pipe  -DLIBRESSL_INTERNAL -Wall -Werror -I/home/src/regress/lib/libcrypto/x509/../../../../lib/libcrypto/x509 -I/home/src/regress/lib/libcrypto/x509/../../../../lib/libcrypto/bytestring -g -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow  -MD -MP  -c /home/src/regress/lib/libcrypto/x509/x509name.c
cc   -o x509name x509name.o -lcrypto
./x509name > x509name.result
diff -u /home/src/regress/lib/libcrypto/x509/x509name.expected x509name.result

==== run-regress-x509req_ext ====
cc -O2 -pipe  -DLIBRESSL_INTERNAL -Wall -Werror -I/home/src/regress/lib/libcrypto/x509/../../../../lib/libcrypto/x509 -I/home/src/regress/lib/libcrypto/x509/../../../../lib/libcrypto/bytestring -g -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow  -MD -MP  -c /home/src/regress/lib/libcrypto/x509/x509req_ext.c
cc   -o x509req_ext x509req_ext.o -lcrypto
./x509req_ext

==== run-regress-callback ====
cc -O2 -pipe  -DLIBRESSL_INTERNAL -Wall -Werror -I/home/src/regress/lib/libcrypto/x509/../../../../lib/libcrypto/x509 -I/home/src/regress/lib/libcrypto/x509/../../../../lib/libcrypto/bytestring -g -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow  -MD -MP  -c /home/src/regress/lib/libcrypto/x509/callback.c
cc   -o callback callback.o -lcrypto
./callback /home/src/regress/lib/libcrypto/x509/../certs


Testing legacy and modern X509_vfy
failed to verify at 0: unable to get local issuer certificate
failed to verify at 0: unable to get local issuer certificate
failed to verify at 2: unable to get local issuer certificate
failed to verify at 2: unable to get local issuer certificate
failed to verify at 1: unable to get local issuer certificate
failed to verify at 1: unable to get local issuer certificate
failed to verify at 0: unable to get local issuer certificate
failed to verify at 0: unable to get local issuer certificate
failed to verify at 1: unable to get local issuer certificate
failed to verify at 1: unable to get local issuer certificate
failed to verify at 2: unable to get local issuer certificate
failed to verify at 1: unable to get local issuer certificate
failed to verify at 1: unable to get local issuer certificate
failed to verify at 2: certificate has expired
failed to verify at 3: certificate has expired
failed to verify at 0: certificate has expired
failed to verify at 0: certificate has expired
failed to verify at 0: unable to get local issuer certificate
failed to verify at 1: certificate has expired
failed to verify at 1: unable to get local issuer certificate
failed to verify at 2: certificate has expired
perl /home/src/regress/lib/libcrypto/x509/callback.pl callback.out
== Test 0 (1a)
== Legacy:
depth 1 error 0 cert: CN = LibreSSL Test Root CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Root CA 1
INFO: Succeeded with 1 chains

== Modern:
depth 1 error 0 cert: CN = LibreSSL Test Root CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Root CA 1
INFO: Succeeded with 1 chains

== Test 0 (1a) has 2 legacy lines and 2 modern lines
== Test 1 (2a)
== Legacy:
depth 2 error 0 cert: CN = LibreSSL Test Root CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 1
INFO: Succeeded with 1 chains

== Modern:
depth 2 error 0 cert: CN = LibreSSL Test Root CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 1
INFO: Succeeded with 1 chains

== Test 1 (2a) has 3 legacy lines and 3 modern lines
== Test 2 (2b)
== Legacy:
depth 0 error 20 cert: CN = LibreSSL Test Server 1 issuer: NULL
INFO: Succeeded with 0 chains

== Modern:
depth 0 error 20 cert: CN = LibreSSL Test Server 1 issuer: NULL
INFO: Succeeded with 0 chains

== Test 2 (2b) has 1 legacy lines and 1 modern lines
== Test 3 (2c)
== Legacy:
depth 2 error 0 cert: CN = LibreSSL Test Root CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 1
INFO: Succeeded with 1 chains

== Modern:
depth 2 error 0 cert: CN = LibreSSL Test Root CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 1
INFO: Succeeded with 1 chains

== Test 3 (2c) has 3 legacy lines and 3 modern lines
== Test 4 (3a)
== Legacy:
depth 4 error 0 cert: CN = LibreSSL Test Root CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 3 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 2 error 0 cert: CN = LibreSSL Test Intermediate CA 2 issuer: CN = LibreSSL Test Intermediate CA 1
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 3 issuer: CN = LibreSSL Test Intermediate CA 2
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 3
INFO: Succeeded with 1 chains

== Modern:
depth 4 error 0 cert: CN = LibreSSL Test Root CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 3 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 2 error 0 cert: CN = LibreSSL Test Intermediate CA 2 issuer: CN = LibreSSL Test Intermediate CA 1
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 3 issuer: CN = LibreSSL Test Intermediate CA 2
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 3
INFO: Succeeded with 1 chains

== Test 4 (3a) has 5 legacy lines and 5 modern lines
== Test 5 (3b)
== Legacy:
depth 2 error 20 cert: CN = LibreSSL Test Intermediate CA 2 issuer: NULL
INFO: Succeeded with 0 chains

== Modern:
depth 2 error 20 cert: CN = LibreSSL Test Server 1 issuer: NULL
INFO: Succeeded with 0 chains

== Test 5 (3b) has 1 legacy lines and 1 modern lines
== Test 6 (3c)
== Legacy:
depth 1 error 20 cert: CN = LibreSSL Test Intermediate CA 3 issuer: NULL
INFO: Succeeded with 0 chains

== Modern:
depth 1 error 20 cert: CN = LibreSSL Test Server 1 issuer: NULL
INFO: Succeeded with 0 chains

== Test 6 (3c) has 1 legacy lines and 1 modern lines
== Test 7 (3d)
== Legacy:
depth 0 error 20 cert: CN = LibreSSL Test Server 1 issuer: NULL
INFO: Succeeded with 0 chains

== Modern:
depth 0 error 20 cert: CN = LibreSSL Test Server 1 issuer: NULL
INFO: Succeeded with 0 chains

== Test 7 (3d) has 1 legacy lines and 1 modern lines
== Test 8 (3e)
== Legacy:
depth 4 error 0 cert: CN = LibreSSL Test Root CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 3 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 2 error 0 cert: CN = LibreSSL Test Intermediate CA 2 issuer: CN = LibreSSL Test Intermediate CA 1
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 3 issuer: CN = LibreSSL Test Intermediate CA 2
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 3
INFO: Succeeded with 1 chains

== Modern:
depth 4 error 0 cert: CN = LibreSSL Test Root CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 3 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 2 error 0 cert: CN = LibreSSL Test Intermediate CA 2 issuer: CN = LibreSSL Test Intermediate CA 1
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 3 issuer: CN = LibreSSL Test Intermediate CA 2
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 3
INFO: Succeeded with 1 chains

== Test 8 (3e) has 5 legacy lines and 5 modern lines
== Test 9 (4a)
== Legacy:
depth 2 error 0 cert: CN = LibreSSL Test Root CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 1
INFO: Succeeded with 1 chains

== Modern:
depth 2 error 0 cert: CN = LibreSSL Test Root CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 1
INFO: Succeeded with 1 chains

== Test 9 (4a) has 3 legacy lines and 3 modern lines
== Test 10 (4b)
== Legacy:
depth 2 error 0 cert: CN = LibreSSL Test Root CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 1
INFO: Succeeded with 1 chains

== Modern:
depth 2 error 0 cert: CN = LibreSSL Test Root CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 1
INFO: Succeeded with 1 chains

== Test 10 (4b) has 3 legacy lines and 3 modern lines
== Test 11 (4c)
== Legacy:
depth 1 error 20 cert: CN = LibreSSL Test Intermediate CA 1 issuer: NULL
FAIL: Failed with 0 chains (legacy failure)

== Modern:
depth 2 error 0 cert: CN = LibreSSL Test Root CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 2
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 1
INFO: Succeeded with 1 chains (legacy failure)

== Test 11 (4c) has 1 legacy lines and 3 modern lines
== Test 12 (4d)
== Legacy:
depth 2 error 0 cert: CN = LibreSSL Test Root CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 1
INFO: Succeeded with 1 chains

== Modern:
depth 2 error 0 cert: CN = LibreSSL Test Root CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 1
INFO: Succeeded with 1 chains

== Test 12 (4d) has 3 legacy lines and 3 modern lines
== Test 13 (4e)
== Legacy:
depth 2 error 0 cert: CN = LibreSSL Test Root CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 2
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 1
INFO: Succeeded with 1 chains

== Modern:
depth 2 error 0 cert: CN = LibreSSL Test Root CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 2
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 1
INFO: Succeeded with 1 chains

== Test 13 (4e) has 3 legacy lines and 3 modern lines
== Test 14 (4f)
== Legacy:
depth 2 error 0 cert: CN = LibreSSL Test Root CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 2
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 1
INFO: Succeeded with 1 chains

== Modern:
depth 2 error 0 cert: CN = LibreSSL Test Root CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 2
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 1
INFO: Succeeded with 1 chains

== Test 14 (4f) has 3 legacy lines and 3 modern lines
== Test 15 (4g)
== Legacy:
depth 1 error 20 cert: CN = LibreSSL Test Intermediate CA 1 issuer: NULL
FAIL: Failed with 0 chains (legacy failure)

== Modern:
depth 2 error 0 cert: CN = LibreSSL Test Root CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 1
INFO: Succeeded with 1 chains (legacy failure)

== Test 15 (4g) has 1 legacy lines and 3 modern lines
== Test 16 (4h)
== Legacy:
depth 2 error 0 cert: CN = LibreSSL Test Root CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 2
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 1
INFO: Succeeded with 1 chains

== Modern:
depth 2 error 0 cert: CN = LibreSSL Test Root CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 2
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 1
INFO: Succeeded with 1 chains

== Test 16 (4h) has 3 legacy lines and 3 modern lines
== Test 17 (5a)
== Legacy:
depth 3 error 0 cert: CN = LibreSSL Test Root CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 2 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 2 issuer: CN = LibreSSL Test Intermediate CA 1
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 2
INFO: Succeeded with 1 chains

== Modern:
depth 3 error 0 cert: CN = LibreSSL Test Root CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 2 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 2 issuer: CN = LibreSSL Test Intermediate CA 1
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 2
INFO: Succeeded with 1 chains

== Test 17 (5a) has 4 legacy lines and 4 modern lines
== Test 18 (5b)
== Legacy:
depth 2 error 20 cert: CN = LibreSSL Test Intermediate CA 1 issuer: NULL
FAIL: Failed with 0 chains (legacy failure)

== Modern:
depth 2 error 0 cert: CN = LibreSSL Test Root CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 2
INFO: Succeeded with 1 chains (legacy failure)

== Test 18 (5b) has 1 legacy lines and 3 modern lines
== Test 19 (5c)
== Legacy:
depth 3 error 0 cert: CN = LibreSSL Test Root CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 2 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 2 issuer: CN = LibreSSL Test Intermediate CA 1
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 2
INFO: Succeeded with 1 chains

== Modern:
depth 3 error 0 cert: CN = LibreSSL Test Root CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 2 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 2 issuer: CN = LibreSSL Test Intermediate CA 1
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 2
INFO: Succeeded with 1 chains

== Test 19 (5c) has 4 legacy lines and 4 modern lines
== Test 20 (5d)
== Legacy:
depth 2 error 0 cert: CN = LibreSSL Test Root CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 2
INFO: Succeeded with 1 chains

== Modern:
depth 2 error 0 cert: CN = LibreSSL Test Root CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 2
INFO: Succeeded with 1 chains

== Test 20 (5d) has 3 legacy lines and 3 modern lines
== Test 21 (5e)
== Legacy:
depth 1 error 20 cert: CN = LibreSSL Test Intermediate CA 2 issuer: NULL
FAIL: Failed with 0 chains (legacy failure)

== Modern:
depth 2 error 0 cert: CN = LibreSSL Test Root CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 2
INFO: Succeeded with 1 chains (legacy failure)

== Test 21 (5e) has 1 legacy lines and 3 modern lines
== Test 22 (5f)
== Legacy:
depth 3 error 0 cert: CN = LibreSSL Test Root CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 2 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 2 issuer: CN = LibreSSL Test Intermediate CA 1
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 2
INFO: Succeeded with 1 chains

== Modern:
depth 3 error 0 cert: CN = LibreSSL Test Root CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 2 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 2 issuer: CN = LibreSSL Test Intermediate CA 1
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 2
INFO: Succeeded with 1 chains

== Test 22 (5f) has 4 legacy lines and 4 modern lines
== Test 23 (5g)
== Legacy:
depth 2 error 0 cert: CN = LibreSSL Test Root CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 2
INFO: Succeeded with 1 chains

== Modern:
depth 2 error 0 cert: CN = LibreSSL Test Root CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 2
INFO: Succeeded with 1 chains

== Test 23 (5g) has 3 legacy lines and 3 modern lines
== Test 24 (5h)
== Legacy:
depth 2 error 0 cert: CN = LibreSSL Test Root CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 2
INFO: Succeeded with 1 chains

== Modern:
depth 2 error 0 cert: CN = LibreSSL Test Root CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 2
INFO: Succeeded with 1 chains

== Test 24 (5h) has 3 legacy lines and 3 modern lines
== Test 25 (5i)
== Legacy:
depth 1 error 20 cert: CN = LibreSSL Test Intermediate CA 2 issuer: NULL
FAIL: Failed with 0 chains (legacy failure)

== Modern:
depth 3 error 0 cert: CN = LibreSSL Test Root CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 2 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 2 issuer: CN = LibreSSL Test Intermediate CA 1
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 2
INFO: Succeeded with 1 chains (legacy failure)

== Test 25 (5i) has 1 legacy lines and 4 modern lines
== Test 26 (6a)
== Legacy:
depth 3 error 0 cert: CN = LibreSSL Test Root CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 2 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 2 issuer: CN = LibreSSL Test Intermediate CA 1
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 2
INFO: Succeeded with 1 chains

== Modern:
depth 3 error 0 cert: CN = LibreSSL Test Root CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 2 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 2 issuer: CN = LibreSSL Test Intermediate CA 1
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 2
INFO: Succeeded with 1 chains

== Test 26 (6a) has 4 legacy lines and 4 modern lines
== Test 27 (6b)
== Legacy:
depth 2 error 10 cert: CN = LibreSSL Test Root CA 2 issuer: NULL
FAIL: Failed with 0 chains (legacy failure)

== Modern:
depth 2 error 10 cert: CN = LibreSSL Test Root CA 2 issuer: NULL
depth 3 error 10 cert: CN = LibreSSL Test Root CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 2 error 10 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 1 error 10 cert: CN = LibreSSL Test Intermediate CA 2 issuer: CN = LibreSSL Test Intermediate CA 1
depth 0 error 10 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 2
INFO: Succeeded with 1 chains (legacy failure)

== Test 27 (6b) has 1 legacy lines and 5 modern lines
== Test 28 (7a)
== Legacy:
depth 3 error 10 cert: CN = LibreSSL Test Root CA 1 issuer: NULL
FAIL: Failed with 0 chains (legacy failure)

== Modern:
depth 3 error 10 cert: CN = LibreSSL Test Root CA 1 issuer: NULL
depth 2 error 10 cert: CN = LibreSSL Test Root CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 1 error 10 cert: CN = LibreSSL Test Intermediate CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 0 error 10 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 2
INFO: Succeeded with 1 chains (legacy failure)

== Test 28 (7a) has 1 legacy lines and 4 modern lines
== Test 29 (7b)
== Legacy:
depth 2 error 0 cert: CN = LibreSSL Test Root CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 2
INFO: Succeeded with 1 chains

== Modern:
depth 2 error 0 cert: CN = LibreSSL Test Root CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 2
INFO: Succeeded with 1 chains

== Test 29 (7b) has 3 legacy lines and 3 modern lines
== Test 30 (8a)
== Legacy:
depth 2 error 0 cert: CN = LibreSSL Test Root CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 0 error 10 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Root CA 1
INFO: Succeeded with 0 chains

== Modern:
depth 0 error 10 cert: CN = LibreSSL Test Server 1 issuer: NULL
depth 0 error 10 cert: CN = LibreSSL Test Server 1 issuer: NULL
depth 0 error 10 cert: CN = LibreSSL Test Server 1 issuer: NULL
INFO: Succeeded with 0 chains

== Test 30 (8a) has 3 legacy lines and 3 modern lines
== Test 31 (9a)
== Legacy:
depth 0 error 20 cert: CN = LibreSSL Test Server 1 issuer: NULL
INFO: Succeeded with 0 chains

== Modern:
depth 1 error 10 cert: CN = LibreSSL Test Intermediate CA 1 issuer: NULL
depth 1 error 10 cert: CN = LibreSSL Test Intermediate CA 1 issuer: NULL
depth 1 error 10 cert: CN = LibreSSL Test Intermediate CA 1 issuer: NULL
INFO: Succeeded with 0 chains

== Test 31 (9a) has 1 legacy lines and 3 modern lines
== Test 32 (10a)
== Legacy:
depth 2 error 0 cert: CN = LibreSSL Test Root CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 2
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 1
INFO: Succeeded with 1 chains

== Modern:
depth 1 error 10 cert: CN = LibreSSL Test Intermediate CA 1 issuer: NULL
depth 2 error 10 cert: CN = LibreSSL Test Root CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 1 error 10 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 2
depth 0 error 10 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 1
INFO: Succeeded with 1 chains

== Test 32 (10a) has 3 legacy lines and 4 modern lines
== Test 33 (10b)
== Legacy:
depth 2 error 0 cert: CN = LibreSSL Test Root CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 2
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 1
INFO: Succeeded with 1 chains

== Modern:
depth 1 error 10 cert: CN = LibreSSL Test Intermediate CA 1 issuer: NULL
depth 2 error 0 cert: CN = LibreSSL Test Root CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 2
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 1
INFO: Succeeded with 1 chains

== Test 33 (10b) has 3 legacy lines and 4 modern lines
== Test 34 (11a)
== Legacy:
depth 1 error 20 cert: CN = LibreSSL Test Intermediate CA 2 issuer: NULL
FAIL: Failed with 0 chains (legacy failure)

== Modern:
depth 2 error 10 cert: CN = LibreSSL Test Intermediate CA 1 issuer: NULL
depth 2 error 10 cert: CN = LibreSSL Test Root CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 1 error 10 cert: CN = LibreSSL Test Intermediate CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 0 error 10 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 2
INFO: Succeeded with 1 chains (legacy failure)

== Test 34 (11a) has 1 legacy lines and 4 modern lines
== Test 35 (11b)
== Legacy:
depth 2 error 0 cert: CN = LibreSSL Test Root CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 2
INFO: Succeeded with 1 chains

== Modern:
depth 2 error 0 cert: CN = LibreSSL Test Root CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 2 issuer: CN = LibreSSL Test Root CA 2
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 2
INFO: Succeeded with 1 chains

== Test 35 (11b) has 3 legacy lines and 3 modern lines
== Test 36 (12a)
== Legacy:
depth 3 error 0 cert: CN = LibreSSL Test Root CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 2 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 2 issuer: CN = LibreSSL Test Intermediate CA 1
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 2
INFO: Succeeded with 1 chains

== Modern:
depth 2 error 10 cert: CN = LibreSSL Test Intermediate CA 1 issuer: NULL
depth 3 error 0 cert: CN = LibreSSL Test Root CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 2 error 0 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 1 error 0 cert: CN = LibreSSL Test Intermediate CA 2 issuer: CN = LibreSSL Test Intermediate CA 1
depth 0 error 0 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 2
INFO: Succeeded with 1 chains

== Test 36 (12a) has 4 legacy lines and 5 modern lines
== Test 37 (13a)
== Legacy:
depth 3 error 0 cert: CN = LibreSSL Test Root CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 2 error 10 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 1
FAIL: Failed with 0 chains (legacy failure)

== Modern:
depth 2 error 10 cert: CN = LibreSSL Test Intermediate CA 1 issuer: NULL
depth 3 error 10 cert: CN = LibreSSL Test Root CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 2 error 10 cert: CN = LibreSSL Test Intermediate CA 1 issuer: CN = LibreSSL Test Root CA 1
depth 1 error 10 cert: CN = LibreSSL Test Intermediate CA 2 issuer: CN = LibreSSL Test Intermediate CA 1
depth 0 error 10 cert: CN = LibreSSL Test Server 1 issuer: CN = LibreSSL Test Intermediate CA 2
INFO: Succeeded with 1 chains (legacy failure)

== Test 37 (13a) has 2 legacy lines and 5 modern lines
=============Test Summary============
Success: No Mismatches

==== run-regress-expirecallback ====
cc -O2 -pipe  -DLIBRESSL_INTERNAL -Wall -Werror -I/home/src/regress/lib/libcrypto/x509/../../../../lib/libcrypto/x509 -I/home/src/regress/lib/libcrypto/x509/../../../../lib/libcrypto/bytestring -g -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow  -MD -MP  -c /home/src/regress/lib/libcrypto/x509/expirecallback.c
cc   -o expirecallback expirecallback.o -lcrypto
./expirecallback /home/src/regress/lib/libcrypto/x509/../certs


Testing legacy x509_vfy
== Test 0 (2a)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 1 (8a)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
IGNORING verify error at depth 0: certificate has expired
CN = LibreSSL Test Server 1
IGNORING verify error at depth 0: certificate has expired
INFO: Succeeded with 1 chains

== Test 2 (9a)
CN = LibreSSL Test Server 1
verify error at depth 0: unable to get local issuer certificate
failed to verify at 0: unable to get local issuer certificate
FAIL: Failed with 0 chains (legacy failure)



Testing modern x509_vfy
== Test 0 (2a)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 1 (8a)
CN = LibreSSL Test Server 1
IGNORING verify error at depth 0: certificate has expired
CN = LibreSSL Test Root CA 1
IGNORING verify error at depth 2: certificate has expired
CN = LibreSSL Test Intermediate CA 1
IGNORING verify error at depth 1: certificate has expired
CN = LibreSSL Test Server 1
IGNORING verify error at depth 0: certificate has expired
INFO: Succeeded with 1 chains

== Test 2 (9a)
CN = LibreSSL Test Intermediate CA 1
IGNORING verify error at depth 1: certificate has expired
CN = LibreSSL Test Root CA 1
IGNORING verify error at depth 2: certificate has expired
CN = LibreSSL Test Intermediate CA 1
IGNORING verify error at depth 1: certificate has expired
CN = LibreSSL Test Server 1
IGNORING verify error at depth 0: certificate has expired
INFO: Succeeded with 1 chains (legacy failure)



Testing modern x509_vfy by_dir
== Test 0 (2a)
CN = LibreSSL Test Root CA 1
CN = LibreSSL Test Intermediate CA 1
CN = LibreSSL Test Server 1
INFO: Succeeded with 1 chains

== Test 1 (8a)
CN = LibreSSL Test Server 1
IGNORING verify error at depth 0: certificate has expired
CN = LibreSSL Test Root CA 1
IGNORING verify error at depth 2: certificate has expired
CN = LibreSSL Test Intermediate CA 1
IGNORING verify error at depth 1: certificate has expired
CN = LibreSSL Test Server 1
IGNORING verify error at depth 0: certificate has expired
INFO: Succeeded with 1 chains

== Test 2 (9a)
CN = LibreSSL Test Intermediate CA 1
IGNORING verify error at depth 1: certificate has expired
CN = LibreSSL Test Root CA 1
IGNORING verify error at depth 2: certificate has expired
CN = LibreSSL Test Intermediate CA 1
IGNORING verify error at depth 1: certificate has expired
CN = LibreSSL Test Server 1
IGNORING verify error at depth 0: certificate has expired
INFO: Succeeded with 1 chains (legacy failure)


==== run-regress-callbackfailures ====
cc -O2 -pipe  -DLIBRESSL_INTERNAL -Wall -Werror -I/home/src/regress/lib/libcrypto/x509/../../../../lib/libcrypto/x509 -I/home/src/regress/lib/libcrypto/x509/../../../../lib/libcrypto/bytestring -g -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow  -MD -MP  -c /home/src/regress/lib/libcrypto/x509/callbackfailures.c
cc   -o callbackfailures callbackfailures.o -lcrypto
./callbackfailures /home/src/regress/lib/libcrypto/x509/../certs


Testing legacy x509_vfy
== Test 0 (1a)
== depth 0
== error 20
CN = LibreSSL Test Server 1
verify error at depth 0: unable to get local issuer certificate
chain of length 1
failed to verify at 0: unable to get local issuer certificate
INFO: Succeeded with 0 chains

== Test 1 (2a)
== depth 1
== error 20
CN = LibreSSL Test Intermediate CA 1
verify error at depth 1: unable to get local issuer certificate
chain of length 2
failed to verify at 1: unable to get local issuer certificate
INFO: Succeeded with 0 chains

== Test 2 (2c)
== depth 2
== error 19
CN = LibreSSL Test Root CA 1
verify error at depth 2: self signed certificate in certificate chain
chain of length 3
failed to verify at 2: self signed certificate in certificate chain
INFO: Succeeded with 0 chains



Testing modern x509_vfy
== Test 0 (1a)
== depth 0
== error 20
CN = LibreSSL Test Server 1
verify error at depth 0: unable to get local issuer certificate
chain of length 1
failed to verify at 0: unable to get local issuer certificate
INFO: Succeeded with 0 chains

== Test 1 (2a)
== depth 1
== error 20
CN = LibreSSL Test Server 1
verify error at depth 1: unable to get local issuer certificate
chain of length 2
failed to verify at 1: unable to get local issuer certificate
INFO: Succeeded with 0 chains

== Test 2 (2c)
== depth 2
== error 19
CN = LibreSSL Test Server 1
verify error at depth 2: self signed certificate in certificate chain
chain of length 3
failed to verify at 2: self signed certificate in certificate chain
INFO: Succeeded with 0 chains


==== run-regress-x509_asn1 ====
cc -O2 -pipe  -DLIBRESSL_INTERNAL -Wall -Werror -I/home/src/regress/lib/libcrypto/x509/../../../../lib/libcrypto/x509 -I/home/src/regress/lib/libcrypto/x509/../../../../lib/libcrypto/bytestring -g -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow  -MD -MP  -c /home/src/regress/lib/libcrypto/x509/x509_asn1.c
cc   -o x509_asn1 x509_asn1.o -lcrypto
./x509_asn1
x509_asn1: X509_set_version() OK
x509_asn1: X509_set_serialNumber() OK
x509_asn1: X509_set_issuer_name() OK
x509_asn1: X509_set_subject_name() OK
x509_asn1: X509_set_notBefore() OK
x509_asn1: X509_set_notAfter() OK
x509_asn1: X509_set_pubkey() OK
x509_asn1: X509_CRL_set_version() stale version of encoding after i2d
x509_asn1: X509_CRL_set_issuer_name() stale version of encoding after i2d
x509_asn1: X509_CRL_set_lastUpdate() stale version of encoding after i2d
x509_asn1: X509_CRL_set_nextUpdate() stale version of encoding after i2d
x509_asn1: X509_REQ_add_extensions() stale version of encoding after i2d
x509_asn1: X509_REQ_add1_attr() stale version of encoding after i2d

==== run-regress-x509_extensions_test ====
cc -O2 -pipe  -DLIBRESSL_INTERNAL -Wall -Werror -I/home/src/regress/lib/libcrypto/x509/../../../../lib/libcrypto/x509 -I/home/src/regress/lib/libcrypto/x509/../../../../lib/libcrypto/bytestring -g -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow  -MD -MP  -c /home/src/regress/lib/libcrypto/x509/x509_extensions_test.c
cc   -o x509_extensions_test x509_extensions_test.o -lcrypto
./x509_extensions_test

==== run-regress-x509_name_test ====
cc -O2 -pipe  -DLIBRESSL_INTERNAL -Wall -Werror -I/home/src/regress/lib/libcrypto/x509/../../../../lib/libcrypto/x509 -I/home/src/regress/lib/libcrypto/x509/../../../../lib/libcrypto/bytestring -g -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow  -MD -MP  -c /home/src/regress/lib/libcrypto/x509/x509_name_test.c
cc   -o x509_name_test x509_name_test.o -lcrypto
./x509_name_test

===> bettertls
==== bettertls-test ====
cc -O2 -pipe  -g -DLIBRESSL_INTERNAL -Wundef -Werror -g -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow  -MD -MP  -c /home/src/regress/lib/libcrypto/x509/bettertls/verify.c
cc   -o verify verify.o -lcrypto
./verify /home/src/regress/lib/libcrypto/x509/bettertls/certificates > test.out
/home/src/regress/lib/libcrypto/x509/bettertls/check.perl /home/src/regress/lib/libcrypto/x509/bettertls/expected /home/src/regress/lib/libcrypto/x509/bettertls/known /home/src/regress/lib/libcrypto/x509/bettertls/obj/test.out
SUCCESS - no new regressions (0 known failures)


Tested 3645 certificates

===> policy
==== run-regress-policy ====
cc -O2 -pipe  -DLIBRESSL_INTERNAL -Wall -Werror -I/home/src/regress/lib/libcrypto/x509/policy/../../../../../lib/libcrypto/x509 -I/home/src/regress/lib/libcrypto/x509/policy/../../../../../lib/libcrypto/bytestring -DCERTSDIR=\"/home/src/regress/lib/libcrypto/x509/policy/../../../libcrypto/x509/policy\" -g -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow  -MD -MP  -c /home/src/regress/lib/libcrypto/x509/policy/policy.c
cc   -o policy policy.o -Wl,-Bstatic -lcrypto -Wl,-Bdynamic
./policy


Testing legacy x509_vfy
== Test 0 (nothing  in 1 and 2)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
INFO: Succeeded with 1 chains

== Test 1 (1, in 1 and 2)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
INFO: Succeeded with 1 chains

== Test 2 (2, in 1 and 2)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
INFO: Succeeded with 1 chains

== Test 3 (3, in 1 and 2)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
verify error at depth 0: no explicit policy
failed to verify at 0: no explicit policy
INFO: Succeeded with 0 chains

== Test 4 (1 and 2, in 1 and 2)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
INFO: Succeeded with 1 chains

== Test 5 (1 and 3, in 1 and 2)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
INFO: Succeeded with 1 chains

== Test 6 (1 in invalid intermediate policy)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
CN = Policy Intermediate
verify error at depth 0: invalid or inconsistent certificate policy extension
failed to verify at 0: invalid or inconsistent certificate policy extension
INFO: Succeeded with 0 chains

== Test 7 (invalid intermediate)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
CN = Policy Intermediate
verify error at depth 0: invalid or inconsistent certificate policy extension
failed to verify at 0: invalid or inconsistent certificate policy extension
INFO: Succeeded with 0 chains

== Test 8 (1 in invalid policy in leaf)
CN = Policy Root
CN = www.example.com
CN = www.example.com
verify error at depth 0: invalid or inconsistent certificate policy extension
failed to verify at 0: invalid or inconsistent certificate policy extension
INFO: Succeeded with 0 chains

== Test 9 (invalid leaf)
CN = Policy Root
CN = www.example.com
CN = www.example.com
verify error at depth 0: invalid or inconsistent certificate policy extension
failed to verify at 0: invalid or inconsistent certificate policy extension
INFO: Succeeded with 0 chains

== Test 10 (invalid leaf without explicit policy)
CN = Policy Root
CN = www.example.com
CN = www.example.com
verify error at depth 0: invalid or inconsistent certificate policy extension
failed to verify at 0: invalid or inconsistent certificate policy extension
INFO: Succeeded with 0 chains

== Test 11 (1 in duplicate policy extension in leaf)
CN = Policy Root
CN = www.example.com
CN = www.example.com
verify error at depth 0: invalid or inconsistent certificate policy extension
failed to verify at 0: invalid or inconsistent certificate policy extension
INFO: Succeeded with 0 chains

== Test 12 (1 in duplicate policy extension in intermediate)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
CN = Policy Intermediate
verify error at depth 0: invalid or inconsistent certificate policy extension
failed to verify at 0: invalid or inconsistent certificate policy extension
INFO: Succeeded with 0 chains

== Test 13 (nothing with explicit_policy unset)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
INFO: Succeeded with 1 chains

== Test 14 (oid3 with explicit_policy unset)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
INFO: Succeeded with 1 chains

== Test 15 (oid1 with explicit_policy unset, intermediate requiring policy)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
INFO: Succeeded with 1 chains

== Test 16 (oid3 with explicit_policy unset, intermediate requiring policy)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
verify error at depth 0: no explicit policy
failed to verify at 0: no explicit policy
INFO: Succeeded with 0 chains

== Test 17 (nothing explict_policy unset, with intermediate requiring policy)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
verify error at depth 0: no explicit policy
failed to verify at 0: no explicit policy
INFO: Succeeded with 0 chains

== Test 18 (nothing explicit_policy unset, with leaf requiring policy)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
INFO: Succeeded with 1 chains

== Test 19 (oid3, explicit policy unset,  with leaf requiring policy)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
verify error at depth 0: no explicit policy
failed to verify at 0: no explicit policy
INFO: Succeeded with 0 chains

== Test 20 (oid3, with intermediate requiring explicit depth 1)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
verify error at depth 0: no explicit policy
failed to verify at 0: no explicit policy
INFO: Succeeded with 0 chains

== Test 21 (oid3, with intermediate requiring explicit depth 2)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
INFO: Succeeded with 1 chains

== Test 22 (oid3, with leaf requiring explicit depth 1)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
INFO: Succeeded with 1 chains

== Test 23 (oid3, with leaf and intermediate requiring explicit depth 1)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
verify error at depth 0: no explicit policy
failed to verify at 0: no explicit policy
INFO: Succeeded with 0 chains

== Test 24 (oid3, with leaf requiring explicit depth 1 and intermediate depth 2)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
verify error at depth 0: no explicit policy
failed to verify at 0: no explicit policy
INFO: Succeeded with 0 chains

== Test 25 (oid1 with explicit_policy unset, intermediate requiring policy but specifying none)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
verify error at depth 0: no explicit policy
failed to verify at 0: no explicit policy
INFO: Succeeded with 0 chains

== Test 26 (oid1 with explicit_policy unset, intermediate requiring policy but has duplicate)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
CN = Policy Intermediate
verify error at depth 0: invalid or inconsistent certificate policy extension
failed to verify at 0: invalid or inconsistent certificate policy extension
INFO: Succeeded with 0 chains

== Test 27 (oid1, with explicit_policy set, with leaf asserting any)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
INFO: Succeeded with 1 chains

== Test 28 (oid3, with explicit_policy set, with leaf asserting any)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
verify error at depth 0: no explicit policy
failed to verify at 0: no explicit policy
INFO: Succeeded with 0 chains

== Test 29 (oid1, with explicit_policy set, with leaf and intermediate asserting any)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
INFO: Succeeded with 1 chains

== Test 30 (oid3, with explicit_policy set, with leaf and intermediate asserting any)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
INFO: Succeeded with 1 chains



Testing modern x509_vfy
== Test 0 (nothing  in 1 and 2)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
INFO: Succeeded with 1 chains

== Test 1 (1, in 1 and 2)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
INFO: Succeeded with 1 chains

== Test 2 (2, in 1 and 2)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
INFO: Succeeded with 1 chains

== Test 3 (3, in 1 and 2)
verify error at depth 0: no explicit policy
verify error at depth 0: no explicit policy
verify error at depth 0: no explicit policy
failed to verify at 0: no explicit policy
INFO: Succeeded with 0 chains

== Test 4 (1 and 2, in 1 and 2)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
INFO: Succeeded with 1 chains

== Test 5 (1 and 3, in 1 and 2)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
INFO: Succeeded with 1 chains

== Test 6 (1 in invalid intermediate policy)
CN = Policy Intermediate
verify error at depth 0: invalid or inconsistent certificate policy extension
CN = Policy Intermediate
verify error at depth 0: invalid or inconsistent certificate policy extension
CN = Policy Intermediate
verify error at depth 0: invalid or inconsistent certificate policy extension
failed to verify at 0: invalid or inconsistent certificate policy extension
INFO: Succeeded with 0 chains

== Test 7 (invalid intermediate)
CN = Policy Intermediate
verify error at depth 0: invalid or inconsistent certificate policy extension
CN = Policy Intermediate
verify error at depth 0: invalid or inconsistent certificate policy extension
CN = Policy Intermediate
verify error at depth 0: invalid or inconsistent certificate policy extension
failed to verify at 0: invalid or inconsistent certificate policy extension
INFO: Succeeded with 0 chains

== Test 8 (1 in invalid policy in leaf)
CN = www.example.com
verify error at depth 0: invalid or inconsistent certificate policy extension
CN = www.example.com
verify error at depth 0: invalid or inconsistent certificate policy extension
CN = www.example.com
verify error at depth 0: invalid or inconsistent certificate policy extension
failed to verify at 0: invalid or inconsistent certificate policy extension
INFO: Succeeded with 0 chains

== Test 9 (invalid leaf)
CN = www.example.com
verify error at depth 0: invalid or inconsistent certificate policy extension
CN = www.example.com
verify error at depth 0: invalid or inconsistent certificate policy extension
CN = www.example.com
verify error at depth 0: invalid or inconsistent certificate policy extension
failed to verify at 0: invalid or inconsistent certificate policy extension
INFO: Succeeded with 0 chains

== Test 10 (invalid leaf without explicit policy)
CN = www.example.com
verify error at depth 0: invalid or inconsistent certificate policy extension
CN = www.example.com
verify error at depth 0: invalid or inconsistent certificate policy extension
CN = www.example.com
verify error at depth 0: invalid or inconsistent certificate policy extension
failed to verify at 0: invalid or inconsistent certificate policy extension
INFO: Succeeded with 0 chains

== Test 11 (1 in duplicate policy extension in leaf)
CN = www.example.com
verify error at depth 0: invalid or inconsistent certificate policy extension
CN = www.example.com
verify error at depth 0: invalid or inconsistent certificate policy extension
CN = www.example.com
verify error at depth 0: invalid or inconsistent certificate policy extension
failed to verify at 0: invalid or inconsistent certificate policy extension
INFO: Succeeded with 0 chains

== Test 12 (1 in duplicate policy extension in intermediate)
CN = Policy Intermediate
verify error at depth 0: invalid or inconsistent certificate policy extension
CN = Policy Intermediate
verify error at depth 0: invalid or inconsistent certificate policy extension
CN = Policy Intermediate
verify error at depth 0: invalid or inconsistent certificate policy extension
failed to verify at 0: invalid or inconsistent certificate policy extension
INFO: Succeeded with 0 chains

== Test 13 (nothing with explicit_policy unset)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
INFO: Succeeded with 1 chains

== Test 14 (oid3 with explicit_policy unset)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
INFO: Succeeded with 1 chains

== Test 15 (oid1 with explicit_policy unset, intermediate requiring policy)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
INFO: Succeeded with 1 chains

== Test 16 (oid3 with explicit_policy unset, intermediate requiring policy)
verify error at depth 0: no explicit policy
verify error at depth 0: no explicit policy
verify error at depth 0: no explicit policy
failed to verify at 0: no explicit policy
INFO: Succeeded with 0 chains

== Test 17 (nothing explict_policy unset, with intermediate requiring policy)
verify error at depth 0: no explicit policy
verify error at depth 0: no explicit policy
verify error at depth 0: no explicit policy
failed to verify at 0: no explicit policy
INFO: Succeeded with 0 chains

== Test 18 (nothing explicit_policy unset, with leaf requiring policy)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
INFO: Succeeded with 1 chains

== Test 19 (oid3, explicit policy unset,  with leaf requiring policy)
verify error at depth 0: no explicit policy
verify error at depth 0: no explicit policy
verify error at depth 0: no explicit policy
failed to verify at 0: no explicit policy
INFO: Succeeded with 0 chains

== Test 20 (oid3, with intermediate requiring explicit depth 1)
verify error at depth 0: no explicit policy
verify error at depth 0: no explicit policy
verify error at depth 0: no explicit policy
failed to verify at 0: no explicit policy
INFO: Succeeded with 0 chains

== Test 21 (oid3, with intermediate requiring explicit depth 2)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
INFO: Succeeded with 1 chains

== Test 22 (oid3, with leaf requiring explicit depth 1)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
INFO: Succeeded with 1 chains

== Test 23 (oid3, with leaf and intermediate requiring explicit depth 1)
verify error at depth 0: no explicit policy
verify error at depth 0: no explicit policy
verify error at depth 0: no explicit policy
failed to verify at 0: no explicit policy
INFO: Succeeded with 0 chains

== Test 24 (oid3, with leaf requiring explicit depth 1 and intermediate depth 2)
verify error at depth 0: no explicit policy
verify error at depth 0: no explicit policy
verify error at depth 0: no explicit policy
failed to verify at 0: no explicit policy
INFO: Succeeded with 0 chains

== Test 25 (oid1 with explicit_policy unset, intermediate requiring policy but specifying none)
verify error at depth 0: no explicit policy
verify error at depth 0: no explicit policy
verify error at depth 0: no explicit policy
failed to verify at 0: no explicit policy
INFO: Succeeded with 0 chains

== Test 26 (oid1 with explicit_policy unset, intermediate requiring policy but has duplicate)
CN = Policy Intermediate
verify error at depth 0: invalid or inconsistent certificate policy extension
CN = Policy Intermediate
verify error at depth 0: invalid or inconsistent certificate policy extension
CN = Policy Intermediate
verify error at depth 0: invalid or inconsistent certificate policy extension
failed to verify at 0: invalid or inconsistent certificate policy extension
INFO: Succeeded with 0 chains

== Test 27 (oid1, with explicit_policy set, with leaf asserting any)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
INFO: Succeeded with 1 chains

== Test 28 (oid3, with explicit_policy set, with leaf asserting any)
verify error at depth 0: no explicit policy
verify error at depth 0: no explicit policy
verify error at depth 0: no explicit policy
failed to verify at 0: no explicit policy
INFO: Succeeded with 0 chains

== Test 29 (oid1, with explicit_policy set, with leaf and intermediate asserting any)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
INFO: Succeeded with 1 chains

== Test 30 (oid3, with explicit_policy set, with leaf and intermediate asserting any)
CN = Policy Root
CN = Policy Intermediate
CN = www.example.com
INFO: Succeeded with 1 chains


===> rfc3779
==== run-regress-rfc3779 ====
cc -O2 -pipe  -Werror -g -Wall -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow  -MD -MP  -c /home/src/regress/lib/libcrypto/x509/rfc3779/rfc3779.c
cc   -o rfc3779 rfc3779.o -lcrypto
./rfc3779