Build DM schema and require OpenSSL HPKE support

This commit is contained in:
evgeny committed 2026-11-03 12:26:39 +01:00
1 parent 451c66ede3
commit b3460e2039
2 files changed
+6

No files matched your search

+2
View File
@@ -50,6 +50,8 @@ if test "x$with_openssl" = "xyes"; then
AC_CHECK_LIB([crypto], [SHA256_Init],
[AC_DEFINE([USE_OPENSSL], [1], [Define to use OpenSSL for cryptography])],
[AC_MSG_ERROR([OpenSSL crypto library required. Use --without-openssl to use TinyCrypt.])])
AC_CHECK_HEADERS([openssl/hpke.h], [], [AC_MSG_ERROR([DM requires OpenSSL 3.2 or newer with HPKE headers.])])
AC_CHECK_LIB([crypto], [OSSL_HPKE_CTX_new], [], [AC_MSG_ERROR([DM requires an OpenSSL crypto library with HPKE support.])])
LIBS="$save_LIBS"
fi
+4
View File
@@ -208,6 +208,8 @@ utun_CORE_SOURCES = \
dm/dm_identity.h \
dm/dm_protocol.c \
dm/dm_protocol.h \
dm/dm_schema.c \
dm/dm_schema.h \
dm/dm_history.c \
dm/dm_history.h \
dm/dm_crypto.c \
@@ -413,6 +415,8 @@ libutun_a_SOURCES = \
dm/dm_identity.h \
dm/dm_protocol.c \
dm/dm_protocol.h \
dm/dm_schema.c \
dm/dm_schema.h \
dm/dm_history.c \
dm/dm_history.h \
dm/dm_crypto.c \