Fix memory leak in SSL_new if errors occur.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Fixed memory leak in the event of a failure of BUF_MEM_grow

Reviewed-by: Richard Levitte <levitte@openssl.org>
Include <openssl/foo.h> instead of "foo.h"

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>
Remove internal bn dependancies from speed.c

Reviewed-by: Tim Hudson <tjh@openssl.org>
Prepare for bn opaquify. Implement internal helper functions.

Reviewed-by: Tim Hudson <tjh@openssl.org>
Prepare exptest for bn opaquify

Reviewed-by: Tim Hudson <tjh@openssl.org>
Implement internally opaque bn access from asn1

Reviewed-by: Tim Hudson <tjh@openssl.org>
Implement internally opaque bn access from dh

Reviewed-by: Tim Hudson <tjh@openssl.org>
Implement internally opaque bn access from dsa

Reviewed-by: Tim Hudson <tjh@openssl.org>
Implement internally opaque bn access from ec

Reviewed-by: Tim Hudson <tjh@openssl.org>
Implement internally opaque bn access from evp

Reviewed-by: Tim Hudson <tjh@openssl.org>
Implement internally opaque bn access from rsa

Reviewed-by: Tim Hudson <tjh@openssl.org>
Implement internally opaque bn access from srp

Reviewed-by: Tim Hudson <tjh@openssl.org>
Implement internally opaque bn access from ts

Reviewed-by: Tim Hudson <tjh@openssl.org>
Disable engines that will fail to build when bn is made opaque

Reviewed-by: Tim Hudson <tjh@openssl.org>
Update apps for bn opaque change

Reviewed-by: Tim Hudson <tjh@openssl.org>
Make bn opaque

Reviewed-by: Tim Hudson <tjh@openssl.org>
Update documentation following BN opaquify

Reviewed-by: Tim Hudson <tjh@openssl.org>
Move bn internal functions into bn_int.h and bn_lcl.h

Reviewed-by: Tim Hudson <tjh@openssl.org>
SSL_COMP_add_compression_method: exit if allocating the new compression method struct fails

Signed-off-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Matt Caswell <matt@openssl.org>