openssl/crypto
Matt Caswell 197db2143c Make sure OPENSSL_cleanse checks for NULL
In master we have the function OPENSSL_clear_free(x,y), which immediately
returns if x == NULL. In <=1.0.2 this function does not exist so we have to
do:
OPENSSL_cleanse(x, y);
OPENSSL_free(x);

However, previously, OPENSSL_cleanse did not check that if x == NULL, so
the real equivalent check would have to be:
if (x != NULL)
    OPENSSL_cleanse(x, y);
OPENSSL_free(x);

It would be easy to get this wrong during cherry-picking to other branches
and therefore, for safety, it is best to just ensure OPENSSL_cleanse also
checks for NULL.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(cherry picked from commit 020d8fc83f)
2015-09-17 22:31:24 +01:00
..
aes RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
asn1 RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
bf RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
bio RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
bn RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
buffer RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
camellia RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
cast RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
cmac RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
cms RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
comp RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
conf RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
des RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
dh RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
dsa RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
dso RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
ec RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
ecdh RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
ecdsa RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
engine RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
err RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
evp base64 decode: check for high bit 2015-09-17 21:45:06 +02:00
hmac RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
idea RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
jpake RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
krb5 RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
lhash RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
md2 RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
md4 RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
md5 RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
mdc2 RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
modes RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
objects RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
ocsp RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
pem RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
perlasm Fix crash in SPARC T4 XTS. 2015-02-24 10:12:57 +01:00
pkcs7 RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
pkcs12 RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
pqueue RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
rand RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
rc2 RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
rc4 RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
rc5 RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
ripemd RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
rsa RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
seed RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
sha RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
srp RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
stack RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
store RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
threads Cleanup mttest.c : because we no longer use stdio here, don't include it 2015-06-21 22:12:07 +02:00
ts RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
txt_db RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
ui RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
whrlpool RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
x509 RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
x509v3 RT4044: Remove .cvsignore files. 2015-09-15 11:58:27 -04:00
alphacpuid.pl Alpha assembler fixed from HEAD. 2011-08-12 12:31:08 +00:00
arm64cpuid.S Add linux-aarch64 taget. 2014-06-10 23:20:55 +02:00
arm_arch.h Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
armcap.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
armv4cpuid.S Remove inconsistency in ARM support. 2015-01-06 11:14:23 +01:00
constant_time_locl.h Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
constant_time_test.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
cpt_err.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
cryptlib.c RT3820: Don't call GetDesktopWindow() 2015-05-02 08:01:52 -04:00
cryptlib.h Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
crypto-lib.com Adjust VMS build to Unix build. Most of all, make it so the disabled 2014-06-18 13:43:09 +02:00
crypto.h Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
cversion.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
ebcdic.c Appease clang -Wempty-translation-unit 2015-04-08 17:59:40 +02:00
ebcdic.h Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
ex_data.c Fix memory leak reporting. 2015-02-09 13:01:15 +00:00
fips_err.h Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
fips_ers.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
ia64cpuid.S IA64 assembler pack update from HEAD. 2011-11-14 20:45:57 +00:00
install-crypto.com Adjust VMS build to Unix build. Most of all, make it so the disabled 2014-06-18 13:43:09 +02:00
LPdir_nyi.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
LPdir_unix.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
LPdir_vms.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
LPdir_win.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
LPdir_win32.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
LPdir_wince.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
Makefile Fix the update target and remove duplicate file updates 2015-05-23 06:25:12 +02:00
md32_common.h Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
mem.c Fix CRYPTO_strdup 2015-04-22 17:20:38 +01:00
mem_clr.c Make sure OPENSSL_cleanse checks for NULL 2015-09-17 22:31:24 +01:00
mem_dbg.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
o_dir.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
o_dir.h Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
o_dir_test.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
o_fips.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
o_init.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
o_str.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
o_str.h Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
o_time.c Re-align some comments after running the reformat script. 2015-01-22 09:31:48 +00:00
o_time.h Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
opensslconf.h.in Make preprocessor error into real preprocessor error 2015-06-16 13:13:49 +02:00
opensslv.h Prepare for 1.0.2e-dev 2015-07-09 13:18:51 +01:00
ossl_typ.h Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
pariscid.pl PA-RISC assembler pack: switch to bve in 64-bit builds. 2013-06-30 23:13:23 +02:00
ppc_arch.h Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
ppccap.c RT3990: Fix #include path. 2015-08-05 22:06:22 -04:00
ppccpuid.pl Initial POWER8 support from development branch. 2014-07-20 14:36:49 +02:00
s390xcap.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
s390xcpuid.S s390x assembler pack update from HEAD. 2011-11-14 20:47:22 +00:00
sparc_arch.h Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
sparccpuid.S Conversion to UTF-8 where needed 2015-07-14 01:17:45 +02:00
sparcv9cap.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
symhacks.h Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
uid.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
vms_rms.h Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
x86_64cpuid.pl x86[_64]cpuid.pl: add low-level RDSEED. 2014-02-14 17:25:14 +01:00
x86cpuid.pl x86[_64]cpuid.pl: add low-level RDSEED. 2014-02-14 17:25:14 +01:00