OpenSSL 1.1 is dead. This directory will use the default version in ports
(currently 3.2) for regress testing.
--- /dev/null
+# $OpenBSD: Makefile,v 1.1 2024/09/04 04:34:14 tb Exp $
+
+EOPENSSL = eopenssl32
+
+LDADD += -Wl,-rpath,/usr/local/lib/${EOPENSSL} -L/usr/local/lib/${EOPENSSL}
+CFLAGS += -I${.CURDIR}/ -I/usr/local/include/${EOPENSSL}/
+
+.PATH: ${.CURDIR}/..
+
+.include <bsd.regress.mk>
--- /dev/null
+/*
+ * Public domain
+ * compatibility shim for OpenSSL 3
+ * overloading unistd.h is a ugly guly hack for this issue but works here
+ */
+
+#include_next <unistd.h>
+
+#include <openssl/cms.h>
+#include <openssl/stack.h>
+
+#ifndef DECLARE_STACK_OF
+#define DECLARE_STACK_OF DEFINE_STACK_OF
+#endif
+
+static inline int
+CMS_get_version(CMS_ContentInfo *cms, long *version)
+{
+ *version = 3;
+ return 1;
+}
+
+static inline int
+CMS_SignerInfo_get_version(CMS_SignerInfo *si, long *version)
+{
+ *version = 3;
+ return 1;
+}