summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2023-05-09 17:12:50 +1000
committerDarren Tucker <dtucker@dtucker.net>2023-05-09 17:12:50 +1000
commit47742c513e4e045ecc985c6483fc5c8b050acda2 (patch)
tree9df726be87d60453b7da00b37f7a115188485e3b
parent86ad25d455a2313126125540e61e0f9314283f88 (diff)
downloadopenssh-git-47742c513e4e045ecc985c6483fc5c8b050acda2.tar.gz
Update OpenSSL compat test for 3.x.
-rw-r--r--openbsd-compat/regress/opensslvertest.c29
1 files 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