openssl/crypto
Viktor Dukhovni 6e8ac50870 Async error handling and MacOS/X fixes
In the async code for MacOS/X define _XOPEN_SOURCE (if not already
defined) as early as possible.  We must do this before including
any header files, because on MacOS/X <stlib.h> includes <signal.h>
which includes <ucontext.h>.  If we delay defining _XOPEN_SOURCE
and include <ucontext.h> after various system headers are included,
we are very likely to end up with the wrong (truncated) definition
of ucontext_t.

Also, better error handling and some code cleanup in POSIX fibre
construction and destruction.  We make sure that async_fibre_makecontext()
always initializes the fibre to a state that can be freed.

For all implementations, check for error returns from
async_fibre_makecontext().

Reviewed-by: Matt Caswell <matt@openssl.org>
2015-11-22 16:54:43 -05:00
..
aes aes/asm/vpaes-ppc.pl: eliminate overhung stores in misaligned cases. 2015-11-18 11:56:21 +01:00
asn1 Continue standardising malloc style for libcrypto 2015-11-09 22:48:41 +00:00
async Async error handling and MacOS/X fixes 2015-11-22 16:54:43 -05:00
bf RT3999: Remove sub-component version strings 2015-08-10 12:13:32 -04:00
bio Continue standardising malloc style for libcrypto 2015-11-09 22:48:41 +00:00
bn BN_usub: Don't copy when r and a the same 2015-11-20 22:29:53 +01:00
buffer Rebuild error source files. 2015-11-05 15:48:37 +00:00
camellia RT3999: Remove sub-component version strings 2015-08-10 12:13:32 -04:00
cast RT3999: Remove sub-component version strings 2015-08-10 12:13:32 -04:00
cmac Continue standardising malloc style for libcrypto 2015-11-09 22:48:41 +00:00
cms Continue standardising malloc style for libcrypto 2015-11-09 22:48:41 +00:00
comp Continue standardising malloc style for libcrypto 2015-11-09 22:48:41 +00:00
conf Continue standardising malloc style for libcrypto 2015-11-09 22:48:41 +00:00
ct Make libssl async aware 2015-11-20 23:31:42 +00:00
des Remove des_ver.h; broke build. 2015-11-01 08:09:57 -05:00
dh Continue standardising malloc style for libcrypto 2015-11-09 22:48:41 +00:00
dsa Continue standardising malloc style for libcrypto 2015-11-09 22:48:41 +00:00
dso Continue standardising malloc style for libcrypto 2015-11-09 22:48:41 +00:00
ec Continue standardising malloc style for libcrypto 2015-11-09 22:48:41 +00:00
ecdh Rebuild error source files. 2015-11-05 15:48:37 +00:00
ecdsa Continue standardising malloc style for libcrypto 2015-11-09 22:48:41 +00:00
engine Continue standardising malloc style for libcrypto 2015-11-09 22:48:41 +00:00
err make update 2015-11-20 23:35:19 +00:00
evp Fix (minor) problems found by ubsan 2015-11-21 14:21:04 +01:00
hmac Continue standardising malloc style for libcrypto 2015-11-09 22:48:41 +00:00
idea RT3999: Remove sub-component version strings 2015-08-10 12:13:32 -04:00
include/internal Fix undeclared variable warnings. 2015-10-24 16:42:51 +01:00
jpake Continue standardising malloc style for libcrypto 2015-11-09 22:48:41 +00:00
lhash Continue standardising malloc style for libcrypto 2015-11-09 22:48:41 +00:00
md2 RT3999: Remove sub-component version strings 2015-08-10 12:13:32 -04:00
md4 RT3999: Remove sub-component version strings 2015-08-10 12:13:32 -04:00
md5 RT3999: Remove sub-component version strings 2015-08-10 12:13:32 -04:00
mdc2 Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
modes modes/asm/ghash-armv4.pl: extend Apple fix to all clang cases. 2015-11-11 22:09:18 +01:00
objects Continue standardising malloc style for libcrypto 2015-11-09 22:48:41 +00:00
ocsp Continue standardising malloc style for libcrypto 2015-11-09 22:48:41 +00:00
pem Continue standardising malloc style for libcrypto 2015-11-09 22:48:41 +00:00
perlasm Add assembly support for 32-bit iOS. 2015-04-20 15:06:22 +02:00
pkcs7 Continue standardising malloc style for libcrypto 2015-11-09 22:48:41 +00:00
pkcs12 Continue standardising malloc style for libcrypto 2015-11-09 22:48:41 +00:00
pqueue Add and use OPENSSL_zalloc 2015-09-02 22:05:37 -04:00
rand Fix async deadlock problem 2015-11-20 23:37:17 +00:00
rc2 RT3999: Remove sub-component version strings 2015-08-10 12:13:32 -04:00
rc4 Skylake performance results. 2015-09-26 19:50:11 +02:00
rc5 RT3999: Remove sub-component version strings 2015-08-10 12:13:32 -04:00
ripemd RT3999: Remove sub-component version strings 2015-08-10 12:13:32 -04:00
rsa Rename RSA_eay_xxx to rsa_ossl_xxx 2015-11-17 17:14:28 -05:00
seed Fix the update target and remove duplicate file updates 2015-05-22 18:44:33 +02:00
sha Fix typos 2015-10-23 19:52:08 +02:00
srp Fix SRP memory leaks 2015-09-21 10:17:58 +01:00
stack More zalloc nits 2015-09-04 11:45:44 -04:00
store Continue standardising malloc style for libcrypto 2015-11-09 22:48:41 +00:00
ts Add support for signer_digest option in TS. 2015-11-20 13:40:53 +00:00
txt_db RT3999: Remove sub-component version strings 2015-08-10 12:13:32 -04:00
ui Continue standardising malloc style for libcrypto 2015-11-09 22:48:41 +00:00
whrlpool Fix STRICT_ALIGNMENT for whrlpool 2015-11-21 14:22:02 +01:00
x509 make update 2015-11-17 15:17:36 +01:00
x509v3 Continue standardising malloc style for libcrypto 2015-11-09 22:48:41 +00:00
alphacpuid.pl
arm64cpuid.pl Add assembly support to ios64-cross. 2015-01-23 15:38:41 +01:00
arm_arch.h Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
armcap.c Add assembly support for 32-bit iOS. 2015-04-20 15:06:22 +02:00
armv4cpuid.pl ARMv4 assembly pack: implement support for Thumb2. 2015-09-25 13:34:02 +02:00
c64xpluscpuid.pl C64x+ assembly pack: make it work with older toolchain. 2014-05-04 16:38:32 +02:00
cpt_err.c Rebuild error source files. 2015-11-05 15:48:37 +00:00
cryptlib.c Fix no-stdio build 2015-09-29 21:59:19 -04:00
crypto-lib.com Remove obsolete key formats. 2015-07-16 01:06:48 -04:00
cversion.c Explicit OpenSSL_version_num() implementation prototype 2015-11-15 00:02:57 -05:00
ebcdic.c Appease clang -Wempty-translation-unit 2015-04-04 17:05:49 +02:00
ex_data.c Continue standardising malloc style for libcrypto 2015-11-09 22:48:41 +00:00
fips_err.h Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
fips_ers.c Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
ia64cpuid.S
install-crypto.com Remove remaining Kerberos references 2015-05-13 15:08:10 +01:00
lock.c Replace "SSLeay" in API with OpenSSL 2015-10-30 17:21:42 -04:00
LPdir_nyi.c Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
LPdir_unix.c memset, memcpy, sizeof consistency fixes 2015-05-05 22:18:59 -04:00
LPdir_vms.c memset, memcpy, sizeof consistency fixes 2015-05-05 22:18:59 -04:00
LPdir_win.c memset, memcpy, sizeof consistency fixes 2015-05-05 22:18:59 -04:00
LPdir_win32.c Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
LPdir_wince.c Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
Makefile More secure storage of key material. 2015-06-23 17:09:35 -04:00
mem.c Add and use OPENSSL_zalloc 2015-09-02 22:05:37 -04:00
mem_clr.c Declare cleanse_ctr variable as extern 2015-11-21 14:21:49 +01:00
mem_dbg.c Continue standardising malloc style for libcrypto 2015-11-09 22:48:41 +00:00
o_dir.c Identify and move OpenSSL internal header files 2015-05-14 15:13:49 +02:00
o_dir_test.c Identify and move OpenSSL internal header files 2015-05-14 15:13:49 +02:00
o_fips.c Identify and move common internal libcrypto header files 2015-05-14 17:21:40 +02:00
o_init.c Dead code cleanup: crypto/*.c, x509v3, demos 2015-02-02 11:08:16 -05:00
o_str.c Identify and move OpenSSL internal header files 2015-05-14 15:13:49 +02:00
o_time.c Check OPENSSL_gmtime_diff 2015-09-02 23:03:43 -04:00
opensslconf.h.in Use defined(__sun) instead of defined(sun) 2015-11-22 12:16:44 +01:00
pariscid.pl
ppc_arch.h Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
ppccap.c RT3990: Fix #include path. 2015-08-05 22:06:01 -04:00
ppccpuid.pl aesp8-ppc.pl: fix typos. 2014-06-04 08:34:18 +02:00
s390xcap.c Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
s390xcpuid.S
sec_mem.c Check error return from sysconf in secure memory code 2015-11-17 11:23:51 +00:00
sparc_arch.h Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
sparccpuid.S Conversion to UTF-8 where needed 2015-07-14 01:10:01 +02:00
sparcv9cap.c Dead code cleanup: crypto/*.c, x509v3, demos 2015-02-02 11:08:16 -05:00
thr_id.c Harmonize pointer printing and size_t-fy casts. 2015-10-05 09:26:19 +02:00
uid.c Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
vms_rms.h Run util/openssl-format-source -v -c . 2015-01-22 09:20:09 +00:00
x86_64cpuid.pl x86[_64]cpuid.pl: add low-level RDSEED. 2014-02-14 17:24:12 +01:00
x86cpuid.pl Undo a90081576c 2014-08-09 08:02:20 -04:00