Commit 913cd240c7 for openssl.org
commit 913cd240c7b16a4440e5616ac82b608a8385ce0c
Author: Eugene Syromiatnikov <esyr@openssl.org>
Date: Fri Jun 26 19:12:46 2026 +0200
demos: add PKCS#12 reading and writing demos to the primary build system
For some reason, demos in the pkcs12 directory were omitted during
the initial conversion done in commit 2000281dad31 "Convert demos
to primary build system". Rescind this omission.
Complements: 2000281dad31 "Convert demos to primary build system"
Reported-by: Frederik Wedel-Heinen <frederik.wedel-heinen@dencrypt.dk>
Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Bob Beck <beck@openssl.org>
MergeDate: Mon Jul 20 11:18:55 2026
(Merged from https://github.com/openssl/openssl/pull/31751)
diff --git a/demos/build.info b/demos/build.info
index 49068f74ec..be3252fa9d 100644
--- a/demos/build.info
+++ b/demos/build.info
@@ -1,4 +1,4 @@
-SUBDIRS=bio cipher digest info keyexch mac kdf pkey signature \
+SUBDIRS=bio cipher digest info keyexch mac kdf pkcs12 pkey signature \
encrypt encode sslecho
IF[{- !$disabled{"h3demo"} -}]
diff --git a/demos/pkcs12/build.info b/demos/pkcs12/build.info
new file mode 100644
index 0000000000..6fd35d1822
--- /dev/null
+++ b/demos/pkcs12/build.info
@@ -0,0 +1,16 @@
+#
+# To run the demos when linked with a shared library (default) ensure that
+# libcrypto is on the library path. For example:
+#
+# LD_LIBRARY_PATH=../.. ./pkread
+
+PROGRAMS{noinst} = pkread \
+ pkwrite
+
+INCLUDE[pkread]=../../include
+SOURCE[pkread]=pkread.c
+DEPEND[pkread]=../../libcrypto
+
+INCLUDE[pkwrite]=../../include
+SOURCE[pkwrite]=pkwrite.c
+DEPEND[pkwrite]=../../libcrypto