crypto/evp/evp_key.c: #define BUFSIZ if <stdio.h> doesn't #define it
authorLaszlo Ersek <lersek@redhat.com>
Thu, 9 May 2019 19:29:48 +0000 (21:29 +0200)
committerPauli <paul.dale@oracle.com>
Sun, 26 May 2019 22:01:50 +0000 (08:01 +1000)
commit2e9d61ecd81a6a512a0700486ccc1b3784b4c969
treec4c0e64ab6ae444028009c166695cf5da004bf61
parent7817e74dc8540abad63d62d8585d8efe9c458fcf
crypto/evp/evp_key.c: #define BUFSIZ if <stdio.h> doesn't #define it

CLA: trivial

Fixes #8904

Commit 48feaceb53fa ("Remove the possibility to disable the UI module
entirely", 2017-07-03) made the BUFSIZ references in "evp_key.c"
unconditional, by deleting the preprocessing directive "#ifndef
OPENSSL_NO_UI". This breaks the build when compiling OpenSSL for edk2
(OPENSSL_SYS_UEFI), because edk2's <stdio.h> doesn't #define BUFSIZ.

Provide a fallback definition, like we do in "crypto/ui/ui_util.c" (from
commit 984d6c605216, "Fix no-stdio build", 2015-09-29).

Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8922)
crypto/evp/evp_key.c