From 6ecbd3d6800f1c273a5ab84088eb0d46504fd10d Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Tue, 9 Jun 2026 12:06:49 -0700 Subject: openssl: import 3.0.21 This change adds OpenSSL 3.0.21 from upstream [1]. The 3.0.21 artifact was been verified via PGP key [2] and by SHA256 checksum [3]. This change is a security release which resolves several issues with OpenSSL 3.0, the highest severity issue being ranked "High". Users are strongly encouraged to update to this release. More information about the release (from a high level) can be found in the release notes [4]. Updated via [5] with `update_openssl.sh 3.0.21`. 1. https://github.com/openssl/openssl/releases/download/openssl-3.0.21/openssl-3.0.21.tar.gz 2. https://github.com/openssl/openssl/releases/download/openssl-3.0.21/openssl-3.0.21.tar.gz.asc 3. https://github.com/openssl/openssl/releases/download/openssl-3.0.21/openssl-3.0.21.tar.gz.sha256 4. https://github.com/openssl/openssl/blob/openssl-3.0.21/NEWS.md 5. https://codeberg.org/ngie/freebsd-powertools/src/branch/main/shell/update_openssl.sh (facdfe954) --- test/enginetest.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'test/enginetest.c') diff --git a/test/enginetest.c b/test/enginetest.c index 50556131b393..6132142d1e52 100644 --- a/test/enginetest.c +++ b/test/enginetest.c @@ -1,5 +1,5 @@ /* - * Copyright 2000-2022 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 2000-2026 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy @@ -61,6 +61,8 @@ static int test_engines(void) ENGINE *new_h4 = NULL; memset(block, 0, sizeof(block)); + memset(eid, 0, sizeof(eid)); + memset(ename, 0, sizeof(ename)); if (!TEST_ptr(new_h1 = ENGINE_new()) || !TEST_true(ENGINE_set_id(new_h1, "test_id0")) || !TEST_true(ENGINE_set_name(new_h1, "First test item")) @@ -171,10 +173,6 @@ cleanup_loop: goto end; ENGINE_free(ptr); } - for (loop = 0; loop < NUMTOADD; loop++) { - OPENSSL_free(eid[loop]); - OPENSSL_free(ename[loop]); - } to_return = 1; end: @@ -182,8 +180,11 @@ end: ENGINE_free(new_h2); ENGINE_free(new_h3); ENGINE_free(new_h4); - for (loop = 0; loop < NUMTOADD; loop++) + for (loop = 0; loop < NUMTOADD; loop++) { + OPENSSL_free(eid[loop]); + OPENSSL_free(ename[loop]); ENGINE_free(block[loop]); + } return to_return; } -- cgit v1.3