Skip to contentSkip to conversation

config-msvc.h: indicate key material export support

PATCH Applied Lev Stipakov 2 participants 3 messages Dec 13, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 config-msvc.h: indicate key material export support

From: Lev Stipakov <[email protected]...>

MSVC build uses OpenSSL from vcpkg, which at the moment is 1.1.1l. Key material export was added to 1.1.1, so it is safe to indicate its support unconditionally.

This enables Windows releases to benefit from tls-ekm data channel keys derivation.

---
 config-msvc.h | 2 ++
 1 file changed, 2 insertions(+)
config-msvc.h +2 -0
index a624f97d..e7479c86 100644
@@ -113,6 +113,8 @@
 #define HAVE_EC_GROUP_ORDER_BITS 1
 #define HAVE_EVP_CIPHER_CTX_RESET 1
 
+#define HAVE_EXPORT_KEYING_MATERIAL 1
+
 #define HAVE_DIINSTALLDEVICE 1
 
 #define PATH_SEPARATOR     '\\'
Signature · 1 line
2.23.0.windows.1
#1 lore raw

Hi,

I just realized that tls-ekm is a 2.6 feature, which means that while patch is still valid for 2.5, the last sentence in the commit message is not.

Signature · 1 line
-Lev
Acked-by on v1 1/1 Applied
#2 lore raw
In reply to Lev Stipakov

Applied to 2.5 even if 2.5 does not have tls-ekm, but it has the generic "keying material export" which works in 2.5.0-2.5.3 and got broken due to the change to MSVC in 2.5.4 -> regression, bugfix.

Your patch has been applied to the release/2.5 branch.

commit 0cad4ec29ad303bf1ec64035f0345e3dacf5a932

Author: Lev Stipakov
Date:   Mon Dec 13 15:58:14 2021 +0200
     config-msvc.h: indicate key material export support

     Signed-off-by: Lev Stipakov <[email protected]...>
     Acked-by: Gert Doering <[email protected]...>
     Message-Id: <[email protected]...>
     URL: https://www.mail-archive.com/[email protected]/msg23395.html
     Signed-off-by: Gert Doering <[email protected]...>

--
kind regards,

Gert Doering