aboutsummaryrefslogtreecommitdiff
path: root/patches/bio.h.patch
blob: f7318798c40f4051c11e071bc7dc509906b71edb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
--- include/openssl/bio.h.orig	Tue Nov 22 21:08:27 2022
+++ include/openssl/bio.h	Tue Nov 22 21:08:48 2022
@@ -667,8 +667,24 @@ void BIO_copy_next_retry(BIO *b);
 
 /*long BIO_ghbn_ctrl(int cmd,int iarg,char *parg);*/
 
+#ifdef __MINGW_PRINTF_FORMAT
 int
 BIO_printf(BIO *bio, const char *format, ...)
+	__attribute__((__format__(__MINGW_PRINTF_FORMAT, 2, 3), __nonnull__(2)));
+int
+BIO_vprintf(BIO *bio, const char *format, va_list args)
+	__attribute__((__format__(__MINGW_PRINTF_FORMAT, 2, 0), __nonnull__(2)));
+int
+BIO_snprintf(char *buf, size_t n, const char *format, ...)
+	__attribute__((__deprecated__, __format__(__MINGW_PRINTF_FORMAT, 3, 4),
+	    __nonnull__(3)));
+int
+BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args)
+	__attribute__((__deprecated__, __format__(__MINGW_PRINTF_FORMAT, 3, 0),
+	    __nonnull__(3)));
+#else
+int
+BIO_printf(BIO *bio, const char *format, ...)
 	__attribute__((__format__(__printf__, 2, 3), __nonnull__(2)));
 int
 BIO_vprintf(BIO *bio, const char *format, va_list args)
@@ -681,6 +697,7 @@ int
 BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args)
 	__attribute__((__deprecated__, __format__(__printf__, 3, 0),
 	    __nonnull__(3)));
+#endif
 
 void ERR_load_BIO_strings(void);