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:55:03 +0000 (09:55 +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)

(cherry picked from commit 2e471a740b621481b3f3236f82fdd677414900a1)

include/openssl/bio.h.in

index c521e41e4a17059b313097768fd1f040ecd3b552..cdc395b78390a748c126c360651867893e4ecdc4 100644 (file)
@@ -844,7 +844,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 *));