From 10fd3d1868f5d8e7e282aba2be99ec0cf75431e4 Mon Sep 17 00:00:00 2001 From: Kenjiro Nakayama Date: Fri, 20 Feb 2026 17:07:36 +0900 Subject: Add definition of ssize_t to cms.h for Windows MSVC does not define ssize_t. Hence, this patch adds a typedef for compatibility when LIBRESSL_INTERNAL is not defined. Fix https://github.com/libressl/portable/issues/1232 --- patches/cms.h.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 patches/cms.h.patch (limited to 'patches/cms.h.patch') diff --git a/patches/cms.h.patch b/patches/cms.h.patch new file mode 100644 index 0000000..5d403cd --- /dev/null +++ b/patches/cms.h.patch @@ -0,0 +1,16 @@ +--- include/openssl/cms.h.orig 2026-02-20 16:35:58 ++++ include/openssl/cms.h 2026-02-20 16:36:09 +@@ -67,6 +67,13 @@ + extern "C" { + #endif + ++#ifdef _MSC_VER ++#ifndef LIBRESSL_INTERNAL ++#include ++typedef SSIZE_T ssize_t; ++#endif ++#endif ++ + typedef struct CMS_ContentInfo_st CMS_ContentInfo; + typedef struct CMS_SignerInfo_st CMS_SignerInfo; + typedef struct CMS_CertificateChoices CMS_CertificateChoices; -- cgit v1.2.3-55-g6feb