From f3d96e56cacbdd8da053de604bddb8a18ef5fd14 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Wed, 28 Jan 2026 20:46:16 +0100 Subject: [PATCH 1/6] fix: add missing header files during install --- CMakeLists.txt | 5 +++++ include/ncrypto.h | 2 +- include/{ => ncrypto}/aead.h | 0 include/{ => ncrypto}/version.h | 0 release-please-config.json | 2 +- src/aead.cpp | 2 +- tests/basic.cpp | 2 +- 7 files changed, 9 insertions(+), 4 deletions(-) rename include/{ => ncrypto}/aead.h (100%) rename include/{ => ncrypto}/version.h (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index bdb2c35..ceff915 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,6 +50,11 @@ install( DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" COMPONENT ncrypto_development ) +install( + DIRECTORY include/ncrypto + DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" + COMPONENT ncrypto_development +) install( TARGETS ncrypto diff --git a/include/ncrypto.h b/include/ncrypto.h index 263c4dc..8621510 100644 --- a/include/ncrypto.h +++ b/include/ncrypto.h @@ -1760,6 +1760,6 @@ class KEM final { #endif // OPENSSL_VERSION_MAJOR >= 3 -#include "version.h" +#include "ncrypto/version.h" } // namespace ncrypto diff --git a/include/aead.h b/include/ncrypto/aead.h similarity index 100% rename from include/aead.h rename to include/ncrypto/aead.h diff --git a/include/version.h b/include/ncrypto/version.h similarity index 100% rename from include/version.h rename to include/ncrypto/version.h diff --git a/release-please-config.json b/release-please-config.json index 332b057..b940b09 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -4,7 +4,7 @@ "release-type": "simple", "extra-files": [ "CMakeLists.txt", - "include/version.h" + "include/ncrypto/version.h" ] } } diff --git a/src/aead.cpp b/src/aead.cpp index 73ea2c7..0c0d041 100644 --- a/src/aead.cpp +++ b/src/aead.cpp @@ -3,7 +3,7 @@ #include "ncrypto.h" #ifdef OPENSSL_IS_BORINGSSL -#include "aead.h" +#include "ncrypto/aead.h" namespace ncrypto { diff --git a/tests/basic.cpp b/tests/basic.cpp index d8c7f11..ebd7d71 100644 --- a/tests/basic.cpp +++ b/tests/basic.cpp @@ -1,4 +1,4 @@ -#include +#include #include #include From e8b171d58a4a0882d4d2fc5d225b0769d862e8d8 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Wed, 28 Jan 2026 20:53:49 +0100 Subject: [PATCH 2/6] fixup! fix: add missing header files during install --- BUILD.bazel | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BUILD.bazel b/BUILD.bazel index a566aa6..a42e5be 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -16,7 +16,7 @@ config_setting( cc_library( name = "ncrypto", srcs = glob(["src/*.cpp"]), - hdrs = glob(["include/*.h"]), + hdrs = glob(["include/*.h", "include/ncrypto/*.h"]), includes = ["include"], local_defines = { "NCRYPTO_BSSL_LIBDECREPIT_MISSING": select( From 3422e8fc33ab75544872f64b36bc9091effb438c Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Wed, 28 Jan 2026 20:57:53 +0100 Subject: [PATCH 3/6] fixup! fix: add missing header files during install --- tests/basic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/basic.cpp b/tests/basic.cpp index ebd7d71..66f7d66 100644 --- a/tests/basic.cpp +++ b/tests/basic.cpp @@ -1,5 +1,5 @@ -#include #include +#include #include #include From 02047367373052a3cc39cf42aa4fbee34c2ffb76 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Wed, 28 Jan 2026 21:09:10 +0100 Subject: [PATCH 4/6] fixup! fixup! fix: add missing header files during install --- src/CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 78f61de..5e4f46b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -13,6 +13,5 @@ endif() target_include_directories(ncrypto PUBLIC $ - $ $ ) From be146c0a652c2adfcbff80ad453687abeb6dcbb8 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Wed, 28 Jan 2026 21:13:50 +0100 Subject: [PATCH 5/6] fixup! fixup! fixup! fix: add missing header files during install --- src/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 5e4f46b..7f8d320 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -13,5 +13,7 @@ endif() target_include_directories(ncrypto PUBLIC $ + $ + $ $ ) From b073b61370cd722e44aa26109478f36d96c80ae0 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Wed, 28 Jan 2026 23:36:02 +0100 Subject: [PATCH 6/6] fixup! fixup! fixup! fixup! fix: add missing header files during install --- src/CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7f8d320..78f61de 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -13,7 +13,6 @@ endif() target_include_directories(ncrypto PUBLIC $ - $ $ $ )