git: df0eb4e60d26 - main - security/openssl: Security update to 1.1.1q

From: Bernard Spil <brnrd_at_FreeBSD.org>
Date: Tue, 05 Jul 2022 14:54:57 UTC
The branch main has been updated by brnrd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=df0eb4e60d26841149380b794a10bfe9dc510e51

commit df0eb4e60d26841149380b794a10bfe9dc510e51
Author:     Bernard Spil <brnrd@FreeBSD.org>
AuthorDate: 2022-07-05 14:53:43 +0000
Commit:     Bernard Spil <brnrd@FreeBSD.org>
CommitDate: 2022-07-05 14:53:43 +0000

    security/openssl: Security update to 1.1.1q
    
     * Fixes vuln in AES OCB
    
    Security:       a28e8b7e-fc70-11ec-856e-d4c9ef517024
    MFH:            2022Q3
---
 security/openssl/Makefile                 |  2 +-
 security/openssl/distinfo                 |  6 +-
 security/openssl/files/patch-test_v3ext.c | 96 -------------------------------
 3 files changed, 4 insertions(+), 100 deletions(-)

diff --git a/security/openssl/Makefile b/security/openssl/Makefile
index 98bb3b2dae26..2fa65b05c556 100644
--- a/security/openssl/Makefile
+++ b/security/openssl/Makefile
@@ -1,7 +1,7 @@
 # Created by: Dirk Froemberg <dirk@FreeBSD.org>
 
 PORTNAME=	openssl
-PORTVERSION=	1.1.1p
+PORTVERSION=	1.1.1q
 PORTEPOCH=	1
 CATEGORIES=	security devel
 MASTER_SITES=	https://www.openssl.org/source/ \
diff --git a/security/openssl/distinfo b/security/openssl/distinfo
index 6bb4a692578e..3f63b2a9d46f 100644
--- a/security/openssl/distinfo
+++ b/security/openssl/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1655885637
-SHA256 (openssl-1.1.1p.tar.gz) = bf61b62aaa66c7c7639942a94de4c9ae8280c08f17d4eac2e44644d9fc8ace6f
-SIZE (openssl-1.1.1p.tar.gz) = 9860217
+TIMESTAMP = 1657032778
+SHA256 (openssl-1.1.1q.tar.gz) = d7939ce614029cdff0b6c20f0e2e5703158a489a72b2507b8bd51bf8c8fd10ca
+SIZE (openssl-1.1.1q.tar.gz) = 9864061
diff --git a/security/openssl/files/patch-test_v3ext.c b/security/openssl/files/patch-test_v3ext.c
deleted file mode 100644
index 75769d96ad49..000000000000
--- a/security/openssl/files/patch-test_v3ext.c
+++ /dev/null
@@ -1,96 +0,0 @@
-Fixes https://github.com/openssl/openssl/issues/18619
-
-Revert the test of 01fc9b6bce82f0534d6673659a0e59a71f57ee82
-
---- test/v3ext.c.orig	2022-06-21 13:39:39 UTC
-+++ test/v3ext.c
-@@ -37,89 +37,11 @@ end:
-     return ret;
- }
- 
--static int test_asid(void)
--{
--    ASN1_INTEGER *val1 = NULL, *val2 = NULL;
--    ASIdentifiers *asid1 = ASIdentifiers_new(), *asid2 = ASIdentifiers_new(),
--                  *asid3 = ASIdentifiers_new(), *asid4 = ASIdentifiers_new();
--    int testresult = 0;
--
--    if (!TEST_ptr(asid1)
--            || !TEST_ptr(asid2)
--            || !TEST_ptr(asid3))
--        goto err;
--
--    if (!TEST_ptr(val1 = ASN1_INTEGER_new())
--            || !TEST_true(ASN1_INTEGER_set_int64(val1, 64496)))
--        goto err;
--
--    if (!TEST_true(X509v3_asid_add_id_or_range(asid1, V3_ASID_ASNUM, val1, NULL)))
--        goto err;
--
--    val1 = NULL;
--    if (!TEST_ptr(val2 = ASN1_INTEGER_new())
--            || !TEST_true(ASN1_INTEGER_set_int64(val2, 64497)))
--        goto err;
--
--    if (!TEST_true(X509v3_asid_add_id_or_range(asid2, V3_ASID_ASNUM, val2, NULL)))
--        goto err;
--
--    val2 = NULL;
--    if (!TEST_ptr(val1 = ASN1_INTEGER_new())
--            || !TEST_true(ASN1_INTEGER_set_int64(val1, 64496))
--            || !TEST_ptr(val2 = ASN1_INTEGER_new())
--            || !TEST_true(ASN1_INTEGER_set_int64(val2, 64497)))
--        goto err;
--
--    /*
--     * Just tests V3_ASID_ASNUM for now. Could be extended at some point to also
--     * test V3_ASID_RDI if we think it is worth it.
--     */
--    if (!TEST_true(X509v3_asid_add_id_or_range(asid3, V3_ASID_ASNUM, val1, val2)))
--        goto err;
--    val1 = val2 = NULL;
--
--    /* Actual subsets */
--    if (!TEST_true(X509v3_asid_subset(NULL, NULL))
--            || !TEST_true(X509v3_asid_subset(NULL, asid1))
--            || !TEST_true(X509v3_asid_subset(asid1, asid1))
--            || !TEST_true(X509v3_asid_subset(asid2, asid2))
--            || !TEST_true(X509v3_asid_subset(asid1, asid3))
--            || !TEST_true(X509v3_asid_subset(asid2, asid3))
--            || !TEST_true(X509v3_asid_subset(asid3, asid3))
--            || !TEST_true(X509v3_asid_subset(asid4, asid1))
--            || !TEST_true(X509v3_asid_subset(asid4, asid2))
--            || !TEST_true(X509v3_asid_subset(asid4, asid3)))
--        goto err;
--
--    /* Not subsets */
--    if (!TEST_false(X509v3_asid_subset(asid1, NULL))
--            || !TEST_false(X509v3_asid_subset(asid1, asid2))
--            || !TEST_false(X509v3_asid_subset(asid2, asid1))
--            || !TEST_false(X509v3_asid_subset(asid3, asid1))
--            || !TEST_false(X509v3_asid_subset(asid3, asid2))
--            || !TEST_false(X509v3_asid_subset(asid1, asid4))
--            || !TEST_false(X509v3_asid_subset(asid2, asid4))
--            || !TEST_false(X509v3_asid_subset(asid3, asid4)))
--        goto err;
--
--    testresult = 1;
-- err:
--    ASN1_INTEGER_free(val1);
--    ASN1_INTEGER_free(val2);
--    ASIdentifiers_free(asid1);
--    ASIdentifiers_free(asid2);
--    ASIdentifiers_free(asid3);
--    ASIdentifiers_free(asid4);
--    return testresult;
--}
--
- int setup_tests(void)
- {
-     if (!TEST_ptr(infile = test_get_argument(0)))
-         return 0;
- 
-     ADD_TEST(test_pathlen);
--    ADD_TEST(test_asid);
-     return 1;
- }