diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2023-07-05 19:25:02 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2023-07-05 19:25:02 +0000 |
commit | 34ca6e1a5951c997d3d56e68363dcf6d605a0ea5 (patch) | |
tree | c6aadd7eccf72c6c8fa465dabc7c6ad14cf06279 /lib | |
parent | a6e1e81c8879b38f2130e3a3418417c1218c8328 (diff) |
Merge bio.h patch from libressl-portable
ok beck@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcrypto/bio/bio.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/libcrypto/bio/bio.h b/lib/libcrypto/bio/bio.h index 82c4d68f128..124690b1ee5 100644 --- a/lib/libcrypto/bio/bio.h +++ b/lib/libcrypto/bio/bio.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bio.h,v 1.57 2023/07/05 17:32:51 beck Exp $ */ +/* $OpenBSD: bio.h,v 1.58 2023/07/05 19:25:01 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -663,6 +663,8 @@ void BIO_copy_next_retry(BIO *b); /*long BIO_ghbn_ctrl(int cmd,int iarg,char *parg);*/ +/* Needed for libressl-portable. */ +#ifndef __MINGW_PRINTF_FORMAT 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) @@ -673,6 +675,18 @@ int BIO_snprintf(char *buf, size_t n, const char *format, ...) int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) __attribute__((__deprecated__, __format__(__printf__, 3, 0), __nonnull__(3))); +#else +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))); +#endif void ERR_load_BIO_strings(void); |