Avoid using gets as an argument name in a prototype
authorTomas Mraz <tomas@openssl.org>
Mon, 9 Oct 2023 08:32:44 +0000 (10:32 +0200)
committerMatt Caswell <matt@openssl.org>
Wed, 25 Oct 2023 08:53:46 +0000 (09:53 +0100)
This otherwise breaks compilation of applications using ssl.h on MingW.

Fixes #22296

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22316)

include/openssl/bio.h.in

index c534dcd76cdb6d6ea0228979aa8c76a6b744c43a..418d119737f5b214d36b69e6d7f2aa18dd5dd79c 100644 (file)
@@ -967,7 +967,7 @@ int BIO_meth_set_puts(BIO_METHOD *biom,
                       int (*puts) (BIO *, const char *));
 int (*BIO_meth_get_gets(const BIO_METHOD *biom)) (BIO *, char *, int);
 int BIO_meth_set_gets(BIO_METHOD *biom,
-                      int (*gets) (BIO *, char *, int));
+                      int (*ossl_gets) (BIO *, char *, int));
 long (*BIO_meth_get_ctrl(const BIO_METHOD *biom)) (BIO *, int, long, void *);
 int BIO_meth_set_ctrl(BIO_METHOD *biom,
                       long (*ctrl) (BIO *, int, long, void *));