openssl/crypto
Matt Caswell db943f43a6 Detect EOF while reading in libssl
If we hit an EOF while reading in libssl then we will report an error
back to the application (SSL_ERROR_SYSCALL) but errno will be 0. We add
an error to the stack (which means we instead return SSL_ERROR_SSL) and
therefore give a hint as to what went wrong.

Contains a partial fix for #10880

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/10882)
2020-02-20 17:02:30 +00:00
..
aes Do not silently truncate files on perlasm errors 2020-02-17 12:21:27 +10:00
aria Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
asn1 Forgotten GOST2012 support in non-vital places 2020-02-12 15:20:41 +03:00
async Fix header file include guard names 2019-09-27 23:58:12 +02:00
bf Do not silently truncate files on perlasm errors 2020-02-17 12:21:27 +10:00
bio Detect EOF while reading in libssl 2020-02-20 17:02:30 +00:00
blake2 Reorganize local header files 2019-09-27 23:58:06 +02:00
bn Do not silently truncate files on perlasm errors 2020-02-17 12:21:27 +10:00
buffer Update copyright year 2018-04-03 13:57:12 +01:00
camellia Do not silently truncate files on perlasm errors 2020-02-17 12:21:27 +10:00
cast Do not silently truncate files on perlasm errors 2020-02-17 12:21:27 +10:00
chacha Do not silently truncate files on perlasm errors 2020-02-17 12:21:27 +10:00
cmac Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
cms Fix a bundle of mischecks of return values 2019-09-30 17:19:05 +08:00
comp Reorganize local header files 2019-09-27 23:58:06 +02:00
conf Run make update 2020-01-02 14:45:04 +00:00
ct Reorganize local header files 2019-09-27 23:58:06 +02:00
des Do not silently truncate files on perlasm errors 2020-02-17 12:21:27 +10:00
dh Fix misspelling errors and typos reported by codespell 2020-02-06 16:52:07 +01:00
dsa Document and add macros for additional DSA options 2019-10-15 16:04:46 +02:00
dso Reorganize local header files 2019-09-27 23:58:06 +02:00
ec Do not silently truncate files on perlasm errors 2020-02-17 12:21:27 +10:00
engine Engine: Add NULL check. 2019-11-21 14:32:54 +10:00
err Detect EOF while reading in libssl 2020-02-20 17:02:30 +00:00
evp Avoid leak in error path of PKCS5_PBE_keyivgen 2020-02-06 17:21:31 +01:00
hmac Don't store an HMAC key for longer than we need 2020-01-07 11:53:29 +00:00
idea Reorganize local header files 2019-09-27 23:58:06 +02:00
kdf Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
lhash Reorganize local header files 2019-09-27 23:58:06 +02:00
md2 Remove parentheses of return. 2017-10-18 16:05:06 +01:00
md4 md4/md5: macros should not include the line following them 2019-11-01 15:59:40 +01:00
md5 Do not silently truncate files on perlasm errors 2020-02-17 12:21:27 +10:00
mdc2 Remove parentheses of return. 2017-10-18 16:05:06 +01:00
modes Do not silently truncate files on perlasm errors 2020-02-17 12:21:27 +10:00
objects Run make update 2020-01-02 14:45:04 +00:00
ocsp Reorganize local header files 2019-09-27 23:58:06 +02:00
pem i2b_PVK(): Use Encrypt, not Decrypt 2019-11-27 20:34:13 +01:00
perlasm Do not silently truncate files on perlasm errors 2020-02-17 12:21:27 +10:00
pkcs7 Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
pkcs12 Reorganize local header files 2019-09-27 23:58:06 +02:00
poly1305 Do not silently truncate files on perlasm errors 2020-02-17 12:21:27 +10:00
rand VMS: Correct error reporting in crypto/rand/rand_vms.c 2020-02-15 06:48:04 +01:00
rc2 Reorganize local header files 2019-09-27 23:58:06 +02:00
rc4 Do not silently truncate files on perlasm errors 2020-02-17 12:21:27 +10:00
rc5 Do not silently truncate files on perlasm errors 2020-02-17 12:21:27 +10:00
ripemd Do not silently truncate files on perlasm errors 2020-02-17 12:21:27 +10:00
rsa Stop accepting certificates signed using SHA1 at security level 1 2020-02-05 22:07:38 +01:00
seed Fix header file include guard names 2019-09-27 23:58:12 +02:00
sha Do not silently truncate files on perlasm errors 2020-02-17 12:21:27 +10:00
siphash Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
sm2 Suppress an error when doing SM2 sign/verify ops 2019-10-29 20:36:05 +08:00
sm3 Reorganize local header files 2019-09-27 23:58:06 +02:00
sm4 Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
srp Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
stack Revert "stack/stack.c: omit redundant NULL checks." 2018-08-09 14:37:10 +01:00
store Reorganize local header files 2019-09-27 23:58:06 +02:00
ts Reorganize local header files 2019-09-27 23:58:06 +02:00
txt_db Update copyright year 2018-04-03 13:57:12 +01:00
ui UI_UTIL_wrap_read_pem_callback(): when |cb| is NULL, use PEM_def_callback 2019-11-22 15:22:37 +01:00
whrlpool Do not silently truncate files on perlasm errors 2020-02-17 12:21:27 +10:00
x509 Stop accepting certificates signed using SHA1 at security level 1 2020-02-05 22:07:38 +01:00
x509v3 Don't leak memory in the event of a failure in i2v_GENERAL_NAMES 2019-11-04 12:54:36 +00:00
alphacpuid.pl Do not silently truncate files on perlasm errors 2020-02-17 12:21:27 +10:00
arm64cpuid.pl Do not silently truncate files on perlasm errors 2020-02-17 12:21:27 +10:00
arm_arch.h Fix header file include guard names 2019-09-27 23:58:12 +02:00
armcap.c Update copyright year 2019-02-26 14:05:09 +00:00
armv4cpuid.pl Do not silently truncate files on perlasm errors 2020-02-17 12:21:27 +10:00
build.info Use secure_getenv(3) when available. 2018-09-24 11:22:22 +10:00
c64xpluscpuid.pl Do not silently truncate files on perlasm errors 2020-02-17 12:21:27 +10:00
cpt_err.c Fix last(?) batch of malloc-NULL places 2018-04-26 14:02:24 -04:00
cryptlib.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
ctype.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
cversion.c Fix SOURCE_DATE_EPOCH bug; use UTC 2017-11-27 14:34:14 -05:00
dllmain.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
ebcdic.c Remove email addresses from source code. 2017-10-13 10:06:59 -04:00
ex_data.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
getenv.c Use secure_getenv(3) when available. 2018-09-24 11:22:22 +10:00
ia64cpuid.S Fix typo in files in crypto folder 2017-08-05 20:42:06 +02:00
init.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
LPdir_nyi.c
LPdir_unix.c Fix a -Warray-bounds gcc warning in OPENSSL_DIR_read 2019-11-09 10:51:43 +01:00
LPdir_vms.c
LPdir_win.c
LPdir_win32.c
LPdir_wince.c
mem.c Reorganize private crypto header files 2019-09-27 23:57:58 +02:00
mem_clr.c
mem_dbg.c Update copyright year 2018-02-13 13:59:25 +00:00
mem_sec.c test/secmemtest: test secure memory only if it is implemented 2018-10-05 12:23:34 +02:00
mips_arch.h Fix header file include guard names 2019-09-27 23:58:12 +02:00
o_dir.c Move e_os.h to be the very first include. 2017-08-30 07:20:44 +10:00
o_fips.c
o_fopen.c Add missing include file. 2018-09-17 12:54:20 +10:00
o_init.c Use "" not <> on e_os.h include 2017-08-22 11:07:56 -04:00
o_str.c Fix error handling at openssl_strerror_r 2019-06-18 13:58:52 +02:00
o_time.c Update copyright year 2018-04-03 13:57:12 +01:00
pariscid.pl Do not silently truncate files on perlasm errors 2020-02-17 12:21:27 +10:00
ppc_arch.h Fix header file include guard names 2019-09-27 23:58:12 +02:00
ppccap.c Reorganize local header files 2019-09-27 23:58:06 +02:00
ppccpuid.pl Do not silently truncate files on perlasm errors 2020-02-17 12:21:27 +10:00
s390x_arch.h Fix header file include guard names 2019-09-27 23:58:12 +02:00
s390xcap.c Update copyright year 2019-09-10 13:56:40 +01:00
s390xcpuid.pl Do not silently truncate files on perlasm errors 2020-02-17 12:21:27 +10:00
sparc_arch.h Fix header file include guard names 2019-09-27 23:58:12 +02:00
sparccpuid.S
sparcv9cap.c Fix misspelling errors and typos reported by codespell 2020-02-06 16:52:07 +01:00
threads_none.c crypto/threads_none.c: fix syntax error in openssl_get_fork_id() 2019-09-11 10:32:03 +02:00
threads_pthread.c Update copyright year 2019-09-10 13:56:40 +01:00
threads_win.c crypto/threads_win.c: fix preprocessor indentation 2019-09-11 10:40:18 +02:00
uid.c Swap #if blocks in uid.c so target platform gets checked before host 2019-06-18 12:53:27 +10:00
vms_rms.h
x86_64cpuid.pl Do not silently truncate files on perlasm errors 2020-02-17 12:21:27 +10:00
x86cpuid.pl Do not silently truncate files on perlasm errors 2020-02-17 12:21:27 +10:00