aboutsummaryrefslogtreecommitdiff
path: root/crypto/jpake/jpake.c
AgeCommit message (Collapse)AuthorFilesLines
2016-02-17Remove JPAKERich Salz1-543/+0
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
2015-11-09Continue standardising malloc style for libcryptoMatt Caswell1-0/+6
Continuing from previous commit ensure our style is consistent for malloc return checks. Reviewed-by: Kurt Roeckx <kurt@openssl.org>
2015-05-05memset, memcpy, sizeof consistency fixesRich Salz1-1/+1
Just as with the OPENSSL_malloc calls, consistently use sizeof(*ptr) for memset and memcpy. Remove needless casts for those functions. For memset, replace alternative forms of zero with 0. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-05-04Use safer sizeof variant in mallocRich Salz1-2/+2
For a local variable: TYPE *p; Allocations like this are "risky": p = OPENSSL_malloc(sizeof(TYPE)); if the type of p changes, and the malloc call isn't updated, you could get memory corruption. Instead do this: p = OPENSSL_malloc(sizeof(*p)); Also fixed a few memset() calls that I noticed while doing this. Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-04-30free cleanup 12Rich Salz1-0/+2
Don't check for NULL before calling free function. This gets: NAME_CONSTRAINTS_free GENERAL_SUBTREE_free ECDSA_METHOD_free JPAKE_CTX_free OCSP_REQ_CTX_free SCT_free SRP_VBASE_free SRP_gN_free SRP_user_pwd_free TXT_DB_free Reviewed-by: Richard Levitte <levitte@openssl.org>
2015-01-22Run util/openssl-format-source -v -c .Matt Caswell1-193/+189
Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-01-22More commentsMatt Caswell1-1/+1
Conflicts: crypto/dsa/dsa_vrf.c crypto/ec/ec2_smpl.c crypto/ec/ecp_smpl.c Conflicts: demos/bio/saccept.c ssl/d1_clnt.c Conflicts: bugs/dggccbug.c demos/tunala/cb.c Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-12-30mark all block comments that need format preserving so thatTim Hudson1-4/+4
indent will not alter them when reformatting comments Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
2014-12-08Include <openssl/foo.h> instead of "foo.h"Geoff Thorpe1-2/+1
Exported headers shouldn't be included as "foo.h" by code from the same module, it should only do so for module-internal headers. This is because the symlinking of exported headers (from include/openssl/foo.h to crypto/foo/foo.h) is being removed, and the exported headers are being moved to the include/openssl/ directory instead. Change-Id: I4c1d80849544713308ddc6999a549848afc25f94 Signed-off-by: Geoff Thorpe <geoff@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org>
2014-09-08RT1771: Add string.h include.Alon Bar-Lev1-0/+1
Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
2014-08-17hashbn: check for NULL result when allocating bin and return an error if it ↵Jonas Maebe1-21/+47
fails all (in)direct callers of hashbn: propagate potential error in hashbn Signed-off-by: Kurt Roeckx <kurt@openssl.org> Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
2014-08-17JPAKE_CTX_new: check for NULL result when allocating ctxJonas Maebe1-0/+2
Signed-off-by: Kurt Roeckx <kurt@openssl.org> Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
2010-11-29apply J-PKAKE fix to HEAD (original by Ben)Dr. Stephen Henson1-0/+29
2008-11-02Fix warnings: printf format mismatches on 64 bit platforms.Dr. Stephen Henson1-3/+2
Change assert to OPENSSL_assert(). Fix e_padlock prototype.
2008-10-27Win32 fixes... add new directory to build system. Fix warnings.Dr. Stephen Henson1-1/+2
2008-10-27Fix warnings and various issues.Dr. Stephen Henson1-64/+78
C++ style comments. Signed/unsigned warning in apps.c Missing targets in jpake/Makefile
2008-10-26Add JPAKE.Ben Laurie1-0/+468