Commit c2de412e7d for openssl.org

commit c2de412e7dc9fc7ac80073908153c25545832d99
Author: Richard Levitte <levitte@openssl.foundation>
Date:   Mon Sep 7 08:49:28 2026 +0200

    OpenSSL::Test::Utils: add a target() accessor

    config() reads the %config hash; the resolved target attributes
    (%target, with the final combined flag strings such as cflags and
    CFLAGS) are loaded into the module but have no accessor.

    Assisted-by: Pi:moonshotai/kimi-k3
    Signed-off-by: Richard Levitte <levitte@openssl.foundation>
    Reviewed-by: Andrew Dinh <andrewd@openssl.org>
    Reviewed-by: Tomas Mraz <tomas@openssl.foundation>
    Merge-date: Sat Nov 14 17:36:40 2026
    Merged-from: https://github.com/openssl/openssl/pull/32442

diff --git a/util/perl/OpenSSL/Test/Utils.pm b/util/perl/OpenSSL/Test/Utils.pm
index 1764dc7923..e3ae4f454a 100644
--- a/util/perl/OpenSSL/Test/Utils.pm
+++ b/util/perl/OpenSSL/Test/Utils.pm
@@ -14,8 +14,8 @@ use Exporter;
 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
 $VERSION = "0.1";
 @ISA = qw(Exporter);
-@EXPORT = qw(alldisabled anydisabled disabled config available_protocols
-             have_IPv4 have_IPv6);
+@EXPORT = qw(alldisabled anydisabled disabled config target
+             available_protocols have_IPv4 have_IPv6);

 =head1 NAME

@@ -67,6 +67,10 @@ disabled.

 Returns an item from the %config hash in \$TOP/configdata.pm.

+=item B<target STRING>
+
+Returns an item from the %target hash in \$TOP/configdata.pm.
+
 =item B<have_IPv4>

 =item B<have_IPv6>
@@ -166,6 +170,11 @@ sub config {
     return $config{$_[0]};
 }

+sub target {
+    load_configdata() unless $configdata_loaded;
+    return $target{$_[0]};
+}
+
 # IPv4 / IPv6 checker
 my $have_IPv4 = -1;
 my $have_IPv6 = -1;