Prevent unlikely NULL dereference
Removed debug-only include dirs in VS2010 project file
Removed core file
compat-1.2.h: Make inline functions static

This makes it is possible to include the header from multiple .c files,
without getting tons of 'multiple declaration' compiler errors.

Signed-off-by: Steffan Karger <steffan.karger@fox-it.com>
Signed-off-by: Paul Bakker <p.j.bakker@polarssl.org>
Fix pkcs11.c to conform to PolarSSL 1.3 API.

This restores previous functionality, and thus still allows only RSA to be
used through PKCS#11.

Signed-off-by: Steffan Karger <steffan.karger@fox-it.com>
Signed-off-by: Paul Bakker <p.j.bakker@polarssl.org>
Link against ZLIB when zlib is used

Signed-off-by: Paul Bakker <p.j.bakker@polarssl.org>
Fixed X.509 hostname comparison (with non-regular characters)

In situations with 'weird' certificate names or hostnames (containing
non-western allowed names) the check would falsely report a name or
wildcard match.
SSL now gracefully handles missing RNG
Fixed error.fmt to match active error.c code
gen_prime: ensure X = 3 mod 4 always (2x speed-up)
gen_prime: ensure X = 2 mod 3 -> 2.5x speedup
Split mpi_is_prime() and make its first arg const
gen_prime: check small primes early (3x speed-up)
Insert warning about time in dh_genprime
Various const fixes
Added Check and CheckFull options to CMakeLists
Reverted API change for mpi_is_prime()
Merged Prime generation improvements