openssl/crypto
Matt Caswell 020d8fc83f 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>
2015-09-17 22:29:08 +01:00
..
aes
asn1 Embed various signature algorithms. 2015-09-17 17:18:59 +01:00
bf
bio remove 0 assignments. 2015-09-03 16:26:34 -04:00
bn Enable -Wmissing-variable-declarations and 2015-09-11 04:51:55 +01:00
buffer remove 0 assignments. 2015-09-03 16:26:34 -04:00
camellia
cast
cmac
cms Fix zlib CMS compilation. 2015-09-11 23:10:29 +01:00
comp remove 0 assignments. 2015-09-03 16:26:34 -04:00
conf remove 0 assignments. 2015-09-03 16:26:34 -04:00
des
dh Enable -Wmissing-variable-declarations and 2015-09-11 04:51:55 +01:00
dsa Enable -Wmissing-variable-declarations and 2015-09-11 04:51:55 +01:00
dso Add and use OPENSSL_zalloc 2015-09-02 22:05:37 -04:00
ec d2i: don't update input pointer on failure 2015-09-14 23:53:03 +02:00
ecdh
ecdsa Constify ECDSA_METHOD_new. 2015-09-12 01:53:52 +01:00
engine make update 2015-09-16 12:40:55 +01:00
err
evp base64 decode: check for high bit 2015-09-17 21:42:38 +02:00
hmac remove 0 assignments. 2015-09-03 16:26:34 -04:00
idea
include/internal Embed various signature algorithms. 2015-09-17 17:18:59 +01:00
jpake
lhash remove 0 assignments. 2015-09-03 16:26:34 -04:00
md2
md4
md5
mdc2
modes
objects remove 0 assignments. 2015-09-03 16:26:34 -04:00
ocsp Enable -Wmissing-variable-declarations and 2015-09-11 04:51:55 +01:00
pem
perlasm
pkcs7 Remove warning about use of uninitialised variable 2015-09-06 12:56:33 +02:00
pkcs12 RT4002: check for NULL cipher in p12_crpt.c 2015-09-01 20:01:38 +02:00
pqueue Add and use OPENSSL_zalloc 2015-09-02 22:05:37 -04:00
rand RT3969: Add OPENSSL_SYS_UEFI 2015-09-08 23:14:36 -04:00
rc2
rc4
rc5
ripemd
rsa remove 0 assignments. 2015-09-03 16:26:34 -04:00
seed
sha
srp Fix "defined but not used" warnings. 2015-09-11 18:16:23 +01:00
stack More zalloc nits 2015-09-04 11:45:44 -04:00
store Add and use OPENSSL_zalloc 2015-09-02 22:05:37 -04:00
threads
ts Enable -Wmissing-variable-declarations and 2015-09-11 04:51:55 +01:00
txt_db
ui remove 0 assignments. 2015-09-03 16:26:34 -04:00
whrlpool
x509 Embed various signature algorithms. 2015-09-17 17:18:59 +01:00
x509v3 Embed X509_REQ_INFO 2015-09-16 22:33:25 +01:00
alphacpuid.pl
arm64cpuid.pl
arm_arch.h
armcap.c
armv4cpuid.pl
c64xpluscpuid.pl
cpt_err.c
cryptlib.c
crypto-lib.com
cversion.c
ebcdic.c
ex_data.c
fips_err.h
fips_ers.c
ia64cpuid.S
install-crypto.com
lock.c
LPdir_nyi.c
LPdir_unix.c
LPdir_vms.c
LPdir_win32.c
LPdir_win.c
LPdir_wince.c
Makefile
mem_clr.c Make sure OPENSSL_cleanse checks for NULL 2015-09-17 22:29:08 +01:00
mem_dbg.c
mem.c Add and use OPENSSL_zalloc 2015-09-02 22:05:37 -04:00
o_dir_test.c
o_dir.c
o_fips.c
o_init.c
o_str.c
o_time.c Check OPENSSL_gmtime_diff 2015-09-02 23:03:43 -04:00
opensslconf.h.in RT3969: Add OPENSSL_SYS_UEFI 2015-09-08 23:14:36 -04:00
pariscid.pl
ppc_arch.h
ppccap.c
ppccpuid.pl
s390xcap.c
s390xcpuid.S
sec_mem.c Enable -Wmissing-variable-declarations and 2015-09-11 04:51:55 +01:00
sparc_arch.h
sparccpuid.S
sparcv9cap.c
thr_id.c
uid.c
vms_rms.h
x86_64cpuid.pl
x86cpuid.pl