summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2016-02-25GH715: ENGINE_finish can take NULLRich Salz
Simplifies calling code. Also fixed up any !ptr tests that were nearby, turning them into NULL tests. Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-02-25Fix unified build after CT reorgRich Salz
Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-02-25Tests for parsing and printing certificates containing SCTsRob Percival
Reviewed-by: Ben Laurie <ben@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-25Add more CT utility routines to be used as part of larger patch.Adam Eijdenberg
Reviewed-by: Ben Laurie <ben@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-25GH463: Fix OPENSSL_NO_OCSP buildRich Salz
Fixes github issue 463. Building the app without OPENSSL_NO_SOCK isn't supported, so only do OPENSSL_NO_OCSP. Reviewed-by: Andy Polyakov <appro@openssl.org>
2016-02-25Fix indentsRich Salz
Reviewed-by: Andy Polyakov <appro@openssl.org>
2016-02-25Build fix: remove cleanse_ctrRich Salz
Reviewed-by: Andy Polyakov <appro@openssl.org>
2016-02-25RT4116: Change cleanse to just memsetRich Salz
See also the discussion in https://github.com/openssl/openssl/pull/455 Reviewed-by: Andy Polyakov <appro@openssl.org>
2016-02-25CVE-2016-0798: avoid memory leak in SRPEmilia Kasper
The SRP user database lookup method SRP_VBASE_get_by_user had confusing memory management semantics; the returned pointer was sometimes newly allocated, and sometimes owned by the callee. The calling code has no way of distinguishing these two cases. Specifically, SRP servers that configure a secret seed to hide valid login information are vulnerable to a memory leak: an attacker connecting with an invalid username can cause a memory leak of around 300 bytes per connection. Servers that do not configure SRP, or configure SRP but do not configure a seed are not vulnerable. In Apache, the seed directive is known as SSLSRPUnknownUserSeed. To mitigate the memory leak, the seed handling in SRP_VBASE_get_by_user is now disabled even if the user has configured a seed. Applications are advised to migrate to SRP_VBASE_get1_by_user. However, note that OpenSSL makes no strong guarantees about the indistinguishability of valid and invalid logins. In particular, computations are currently not carried out in constant time. Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-25Solaris DSOs were still named libFOO.so, fixedRichard Levitte
Reviewed-by: Andy Polyakov <appro@openssl.org>
2016-02-25Make it possible to build even if dependency files can't be generatedRichard Levitte
If the local system doesn't have GNU C or clang, and not even makedepend, the build will stop because the call of 'makedepend' fails. This changes so the build won't stop because of such failure. The result will be empty .d files, and that's ok. Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-25GH742: keep gost specific variable under macroJ Mohan Rao Arisankala
Signed-off-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
2016-02-25GH235: Set error status on malloc failureRich Salz
Reviewed-by: Emilia Käsper <emilia@openssl.org>
2016-02-24GH480: Don't break statements with CPP stuff.Flavio Medeiros
This is also RT 4137 Signed-off-by: Rich Salz <rsalz@akamai.com> Reviewed-by: Andy Polyakov <appro@openssl.org>
2016-02-24Fix typo, reformat comment.Rich Salz
Reviewed-by: Andy Polyakov <appro@openssl.org>
2016-02-24Remove unused parameter in ssl_set_masks().Dr. Stephen Henson
The ssl_set_masks() function no longer depends on the cipher. This also means there is no need to set the masks for each cipher in ssl3_choose_cipher. Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-23Update documentation of SSL METHODs and ciphersViktor Dukhovni
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
2016-02-23correct name of GNU shared librariesRoumen Petrov
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-02-23test/ectest.c: add regression test for RT#4284.Andy Polyakov
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-23ec/asm/ecp_nistz256-*.pl: get corner case logic right.Andy Polyakov
RT#4284 Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-23ec/asm/ecp_nistz256-x86_64.pl: get corner case logic right.Andy Polyakov
RT#4284 Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-23test/recipes/80-test_ca.t: remove_tree->rmtree to make it work with Perl 5.10.Andy Polyakov
Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-02-23poly1305/asm/poly1305-armv4.pl: replace ambiguous instruction.Andy Polyakov
Different assembler versions disagree on how to interpret #-1 as argument to vmov.i64, as 0xffffffffffffffff or 0x00000000ffffffff. So replace it with something they can't disagree on. Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-23RT4339: Fix handling of <internal/bn_conf.h>David Woodhouse
The entire contents of <internal/bn_conf.h> are unwanted in the UEFI build because we have to do it differently there. To support building for both 32-bit and 64-bit platforms without re-running the OpenSSL Configure script, the EDK2 environment defines THIRTY_TWO_BIT or SIXTY_FOUR_BIT for itself according to the target platform. The current setup is broken, though. It checks for OPENSSL_SYS_UEFI but before it's actually defined, since opensslconf.h hasn't yet been included. Let's fix that by including opensslconf.h. And also let's move the bn_conf.h doesn't even need to *exist* in the UEFI build environment. This is also GH PR736. Signed-off-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Tim Hudson <tjh@openssl.org>
2016-02-23GH735: remove unnecessary allocationJ Mohan Rao Arisankala
Removing code, where memory was getting allocated for an unused variable Signed-off-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
2016-02-23Add PKCS7_NO_DUAL_CONTENT flagRich Salz
Signed-off-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Tim Hudson <tjh@openssl.org>
2016-02-23Remove all -march= from configsRichard Levitte
These flags are limitting needlessly, are often patched by packagers, and should be specified on the configuration command line by anyone who desires for it to be specific rather than forced by us. This work was already done with mingw when those configs were worked on, now it gets applied to the remaining configs. Reviewed-by: Andy Polyakov <appro@openssl.org>
2016-02-22Add OPENSSL_PIC backRichard Levitte
In the earlier change, where static libraries get built with position independent code, OPENSSL_PIC was removed by mistake. This adds it back. Reviewed-by: Tim Hudson <tjh@openssl.org>
2016-02-22Remove unused parameters from internal functionsRich Salz
Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-02-22Use $disabled{shared} in a safer mannerRichard Levitte
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-22The build files use %disabled, make sure to pass it to themRichard Levitte
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-22MemorySanitizer: address false positiveEmilia Kasper
Explicitly unpoison the result of FD_ZERO Tests now pass, using -fsanitize=memory Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-22GH678: Add a few more zallocFdaSilvaYY
Remove some duplicated NULL/zero init. Signed-off-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Tim Hudson <tjh@openssl.org>
2016-02-22RT4334: Check UEFI before __STDC_VERSION__ for <inttypes.h>David Woodhouse
Adding -nostdinc to the EDK2 showed that we were including <inttypes.h> for some UEFI builds, because the check for __STDC_VERSION__ happens before the check for OPENSSL_SYS_UEFI. Fix that. Signed-off-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Tim Hudson <tjh@openssl.org>
2016-02-22Partial revert of 1288f26 and fix for no-asyncMatt Caswell
The commit 1288f26 says that it fixes no-async, but instead seems to break it. Therefore revert that change and fix no-async. Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-22RT4309: Define PRIu64 for UEFI buildDavid Woodhouse
Provide an appropriate definition of PRIu64 for the EDK2 build, since we don't have <inttypes.h> there. Signed-off-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Tim Hudson <tjh@openssl.org>
2016-02-22RT4320/GH705: Fix PEM parsing bug.Rich Salz
Also removing confusing pointer-alias variable. Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-02-22GH721: Duplicated flags in docRich Salz
Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-02-22Clean away $no_dso since with have $disabled{dso}Richard Levitte
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-22Clean away $no_asm since with have $disabled{asm}Richard Levitte
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-22Clean away $no_rfc3779 since we don't appear to use it at allRichard Levitte
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-22Clean away $zlib since with have $disabled{zlib}Richard Levitte
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-22Clean away $no_threads since we have $disabled{threads}Richard Levitte
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-22Clean away $config{no_shared} since we have $disabled{shared}Richard Levitte
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-22Expose %disables to the perl fragments in build.info files.Richard Levitte
This way, we can use them as conditions instead of relying to more or less obscure aliases in %config or variables directly in Configure. Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-22Fix DSO name on HP/UXRichard Levitte
If dlfcn is used, the name was set to lib$(LIBNAME).so when it should have been just $(LIBNAME).so. Reviewed-by: Andy Polyakov <appro@openssl.org>
2016-02-22Fix a few typosRichard Levitte
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-22Missed an experimental.Rich Salz
Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-02-22Don't include all symbols from static libraries when building a DSORichard Levitte
When building a DSO, there's no reason to include all symbols from static libraries it happens to link with, whichever they may be. Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-22Get back "ssl2" as a deprecated disablable optionRichard Levitte
Preserved for now for those who have scripts with the option "no-ssl2". We warn that it's deprecated, and ignore it otherwise. In response to RT#4330 Reviewed-by: Rich Salz <rsalz@openssl.org>