build-unit-test-docker: add openssl-3

OpenSSL 3 introduced significant compatibility issues from OpenSSL 1
but isn't included in Ubuntu yet.  Manually install it so that we can
perform CI against the same APIs that will be included in Yocto.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I6f44cc1dd94f40ac1673a40453ed08c8f85f8134
diff --git a/scripts/build-unit-test-docker b/scripts/build-unit-test-docker
index 8fbdc68..3de35cc 100755
--- a/scripts/build-unit-test-docker
+++ b/scripts/build-unit-test-docker
@@ -76,6 +76,20 @@
 
 # Packages to include in image.
 packages = {
+    # Install OpenSSL 3.x.
+    # Generally we want to rely on the version of OpenSSL from the OS, but v3.x
+    # was a major API change.  It is included in Yocto but not Ubuntu until
+    # 22.04.  Install it manually so that our CI can target the OpenSSL 3.x
+    # APIs.
+    "openssl/openssl": PackageDef(
+        rev="openssl-3.0.1",
+        build_type="custom",
+        build_steps=[
+            f"./Configure --prefix={prefix} --libdir=lib",
+            f"make -j{proc_count}",
+            f"make -j{proc_count} install"
+        ],
+    ),
     "boost": PackageDef(
         rev="1.77.0",
         url=(