From 47742c513e4e045ecc985c6483fc5c8b050acda2 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Tue, 9 May 2023 17:12:50 +1000 Subject: Update OpenSSL compat test for 3.x. --- openbsd-compat/regress/opensslvertest.c | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/openbsd-compat/regress/opensslvertest.c b/openbsd-compat/regress/opensslvertest.c index d5006660..99c89441 100644 --- a/openbsd-compat/regress/opensslvertest.c +++ b/openbsd-compat/regress/opensslvertest.c @@ -26,15 +26,6 @@ struct version_test { long libver; int result; } version_tests[] = { - /* built with 0.9.8b release headers */ - { 0x0090802fL, 0x0090802fL, 1}, /* exact match */ - { 0x0090802fL, 0x0090804fL, 1}, /* newer library fix version: ok */ - { 0x0090802fL, 0x0090801fL, 1}, /* older library fix version: ok */ - { 0x0090802fL, 0x0090702fL, 0}, /* older library minor version: NO */ - { 0x0090802fL, 0x0090902fL, 0}, /* newer library minor version: NO */ - { 0x0090802fL, 0x0080802fL, 0}, /* older library major version: NO */ - { 0x0090802fL, 0x1000100fL, 0}, /* newer library major version: NO */ - /* built with 1.0.1b release headers */ { 0x1000101fL, 0x1000101fL, 1},/* exact match */ { 0x1000101fL, 0x1000102fL, 1}, /* newer library patch version: ok */ @@ -44,6 +35,26 @@ struct version_test { { 0x1000101fL, 0x1010101fL, 0}, /* newer library minor version: NO */ { 0x1000101fL, 0x0000101fL, 0}, /* older library major version: NO */ { 0x1000101fL, 0x2000101fL, 0}, /* newer library major version: NO */ + + /* built with 1.1.1b release headers */ + { 0x1010101fL, 0x1010101fL, 1},/* exact match */ + { 0x1010101fL, 0x1010102fL, 1}, /* newer library patch version: ok */ + { 0x1010101fL, 0x1010100fL, 1}, /* older library patch version: ok */ + { 0x1010101fL, 0x1010201fL, 1}, /* newer library fix version: ok */ + { 0x1010101fL, 0x1010001fL, 0}, /* older library fix version: NO */ + { 0x1010101fL, 0x1020001fL, 0}, /* newer library minor version: NO */ + { 0x1010101fL, 0x0010101fL, 0}, /* older library major version: NO */ + { 0x1010101fL, 0x2010101fL, 0}, /* newer library major version: NO */ + + /* built with 3.0.1 release headers */ + { 0x3010101fL, 0x3010101fL, 1},/* exact match */ + { 0x3010101fL, 0x3010102fL, 1}, /* newer library patch version: ok */ + { 0x3010101fL, 0x3010100fL, 1}, /* older library patch version: ok */ + { 0x3010101fL, 0x3010201fL, 1}, /* newer library fix version: ok */ + { 0x3010101fL, 0x3010001fL, 1}, /* older library fix version: ok */ + { 0x3010101fL, 0x3020001fL, 1}, /* newer library minor version: ok */ + { 0x3010101fL, 0x1010101fL, 0}, /* older library major version: NO */ + { 0x3010101fL, 0x4010101fL, 0}, /* newer library major version: NO */ }; void -- cgit v1.2.1