aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2022-02-27 05:37:43 -0600
committerBrent Cook <busterb@gmail.com>2022-02-27 05:37:43 -0600
commit115cf2d553e6310e02a117ebe9985b33c0be6245 (patch)
tree2b80844597bd63aa3863a5cde11bb067caf0a369
parent2f43da43c1b0bf55881ab9cd61b3d90ce03c485d (diff)
downloadportable-115cf2d553e6310e02a117ebe9985b33c0be6245.tar.gz
portable-115cf2d553e6310e02a117ebe9985b33c0be6245.tar.bz2
portable-115cf2d553e6310e02a117ebe9985b33c0be6245.zip
rebase patches
-rw-r--r--patches/bio.h.patch24
-rw-r--r--patches/bn_lcl.h.patch6
-rw-r--r--patches/tlsexttest.c.patch8
-rw-r--r--patches/windows_headers.patch9
4 files changed, 24 insertions, 23 deletions
diff --git a/patches/bio.h.patch b/patches/bio.h.patch
index e726e20..29bba0c 100644
--- a/patches/bio.h.patch
+++ b/patches/bio.h.patch
@@ -1,12 +1,12 @@
1--- include/openssl/bio.h.orig 2018-07-24 21:59:17.000000000 -0500 1--- include/openssl/bio.h.orig Fri Feb 18 16:30:39 2022
2+++ include/openssl/bio.h 2018-11-07 18:44:43.000000000 -0600 2+++ include/openssl/bio.h Mon Feb 21 05:39:35 2022
3@@ -713,6 +713,22 @@ 3@@ -666,8 +666,24 @@
4 4
5 /*long BIO_ghbn_ctrl(int cmd,int iarg,char *parg);*/ 5 /*long BIO_ghbn_ctrl(int cmd,int iarg,char *parg);*/
6 6
7+#ifdef __MINGW_PRINTF_FORMAT 7+#ifdef __MINGW_PRINTF_FORMAT
8+int 8 int
9+BIO_printf(BIO *bio, const char *format, ...) 9 BIO_printf(BIO *bio, const char *format, ...)
10+ __attribute__((__format__(__MINGW_PRINTF_FORMAT, 2, 3), __nonnull__(2))); 10+ __attribute__((__format__(__MINGW_PRINTF_FORMAT, 2, 3), __nonnull__(2)));
11+int 11+int
12+BIO_vprintf(BIO *bio, const char *format, va_list args) 12+BIO_vprintf(BIO *bio, const char *format, va_list args)
@@ -20,15 +20,17 @@
20+ __attribute__((__deprecated__, __format__(__MINGW_PRINTF_FORMAT, 3, 0), 20+ __attribute__((__deprecated__, __format__(__MINGW_PRINTF_FORMAT, 3, 0),
21+ __nonnull__(3))); 21+ __nonnull__(3)));
22+#else 22+#else
23 int 23+int
24 BIO_printf(BIO *bio, const char *format, ...) 24+BIO_printf(BIO *bio, const char *format, ...)
25 __attribute__((__format__(__printf__, 2, 3), __nonnull__(2))); 25 __attribute__((__format__(__printf__, 2, 3), __nonnull__(2)));
26@@ -727,6 +743,8 @@ 26 int
27 BIO_vprintf(BIO *bio, const char *format, va_list args)
28@@ -680,6 +696,8 @@
27 BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) 29 BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args)
28 __attribute__((__deprecated__, __format__(__printf__, 3, 0), 30 __attribute__((__deprecated__, __format__(__printf__, 3, 0),
29 __nonnull__(3))); 31 __nonnull__(3)));
30+#endif 32+#endif
31+ 33+
32 34
33 /* BEGIN ERROR CODES */ 35 /* BEGIN ERROR CODES */
34 /* The following lines are auto generated by the script mkerr.pl. Any changes 36 /* The following lines are auto generated by the script mkerr.pl. Any changes
diff --git a/patches/bn_lcl.h.patch b/patches/bn_lcl.h.patch
index 184bbd7..84835ed 100644
--- a/patches/bn_lcl.h.patch
+++ b/patches/bn_lcl.h.patch
@@ -1,6 +1,6 @@
1--- ./openbsd/src/lib/libcrypto/bn/bn_lcl.h 2018-12-17 06:59:43.067523154 -0600 1--- ./crypto/bn/bn_lcl.h.orig Fri Feb 18 16:30:39 2022
2+++ ./crypto/bn/bn_lcl.h 2019-01-20 19:43:53.679717457 -0600 2+++ ./crypto/bn/bn_lcl.h Mon Feb 21 05:39:35 2022
3@@ -239,7 +239,7 @@ 3@@ -283,7 +283,7 @@
4 : "r"(a), "r"(b)); \ 4 : "r"(a), "r"(b)); \
5 ret; }) 5 ret; })
6 # endif /* compiler */ 6 # endif /* compiler */
diff --git a/patches/tlsexttest.c.patch b/patches/tlsexttest.c.patch
index be73102..b1b8652 100644
--- a/patches/tlsexttest.c.patch
+++ b/patches/tlsexttest.c.patch
@@ -1,5 +1,5 @@
1--- tests/tlsexttest.c.orig Sun Feb 6 20:37:16 2022 1--- tests/tlsexttest.c.orig Fri Feb 18 16:30:40 2022
2+++ tests/tlsexttest.c Sun Feb 6 21:07:42 2022 2+++ tests/tlsexttest.c Mon Feb 21 05:39:35 2022
3@@ -1658,7 +1658,9 @@ 3@@ -1658,7 +1658,9 @@
4 }; 4 };
5 5
@@ -39,7 +39,7 @@
39 if (!tlsext_sni_client_parse(ssl, SSL_TLSEXT_MSG_SH, &cbs, &alert)) { 39 if (!tlsext_sni_client_parse(ssl, SSL_TLSEXT_MSG_SH, &cbs, &alert)) {
40 FAIL("failed to parse server SNI\n"); 40 FAIL("failed to parse server SNI\n");
41 goto err; 41 goto err;
42@@ -2746,7 +2748,10 @@ 42@@ -2747,7 +2749,10 @@
43 0x04, 0x03, 0x02, 0x01, 0x02, 0x03, 43 0x04, 0x03, 0x02, 0x01, 0x02, 0x03,
44 }; 44 };
45 45
@@ -51,7 +51,7 @@
51 51
52 static int 52 static int
53 test_tlsext_clienthello_build(void) 53 test_tlsext_clienthello_build(void)
54@@ -2823,18 +2828,18 @@ 54@@ -2826,18 +2831,18 @@
55 goto err; 55 goto err;
56 } 56 }
57 57
diff --git a/patches/windows_headers.patch b/patches/windows_headers.patch
index 49e2a97..cfbed95 100644
--- a/patches/windows_headers.patch
+++ b/patches/windows_headers.patch
@@ -26,13 +26,12 @@ diff -u include/openssl.orig/dtls1.h include/openssl/dtls1.h
26 #if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR) 26 #if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
27 #define OPENSSLDIR "/etc/ssl" 27 #define OPENSSLDIR "/etc/ssl"
28 #endif 28 #endif
29diff -u include/openssl.orig/ossl_typ.h include/openssl/ossl_typ.h 29--- include/openssl/ossl_typ.h.orig Fri Feb 18 16:30:39 2022
30--- include/openssl.orig/ossl_typ.h Mon Dec 7 07:58:32 2015 30+++ include/openssl/ossl_typ.h Mon Feb 21 05:39:35 2022
31+++ include/openssl/ossl_typ.h Mon Dec 7 07:56:14 2015 31@@ -82,6 +82,22 @@
32@@ -80,6 +80,22 @@
33 typedef struct ASN1_ITEM_st ASN1_ITEM; 32 typedef struct ASN1_ITEM_st ASN1_ITEM;
34 typedef struct asn1_pctx_st ASN1_PCTX; 33 typedef struct asn1_pctx_st ASN1_PCTX;
35 34
36+#if defined(_WIN32) && defined(__WINCRYPT_H__) 35+#if defined(_WIN32) && defined(__WINCRYPT_H__)
37+#ifndef LIBRESSL_INTERNAL 36+#ifndef LIBRESSL_INTERNAL
38+#ifdef _MSC_VER 37+#ifdef _MSC_VER