summaryrefslogtreecommitdiffstats
path: root/crypto/cryptlib.c
AgeCommit message (Collapse)Author
2015-01-27OPENSSL_NO_XXX cleanup: OPENSSL_NO_BUF_FREELISTSRich Salz
Remove OPENSSL_NO_BUF_FREELISTS. This was turned on by default, so the work here is removing the 'maintain our own freelist' code. Also removed a minor old Windows-multibyte/widechar conversion flag. Reviewed-by: Andy Polyakov <appro@openssl.org>
2015-01-22Run util/openssl-format-source -v -c .Matt Caswell
Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-01-22crypto/cryptlib.c: make it indent-friendly.Andy Polyakov
Reviewed-by: Tim Hudson <tjh@openssl.org>
2015-01-12RT3548: Remove unsupported platformsRich Salz
This last one for this ticket. Removes WIN16. So long, MS_CALLBACK and MS_FAR. We won't miss you. Reviewed-by: Richard Levitte <levitte@openssl.org>
2014-12-08Remove OPENSSL_FIPSCANISTER code.Dr. Stephen Henson
OPENSSL_FIPSCANISTER is only set if the fips module is being built (as opposed to being used). Since the fips module wont be built in master this is redundant. Reviewed-by: Tim Hudson <tjh@openssl.org>
2014-02-25Avoid Windows 8 Getversion deprecated errors.Dr. Stephen Henson
Windows 8 SDKs complain that GetVersion() is deprecated. We only use GetVersion like this: (GetVersion() < 0x80000000) which checks if the Windows version is NT based. Use a macro check_winnt() which uses GetVersion() on older SDK versions and true otherwise.
2013-04-04cryptlib.c: fix typo in OPENSSL_showfatal.Andy Polyakov
2013-02-06Add and use a constant-time memcmp.Ben Laurie
This change adds CRYPTO_memcmp, which compares two vectors of bytes in an amount of time that's independent of their contents. It also changes several MAC compares in the code to use this over the standard memcmp, which may leak information about the size of a matching prefix. (cherry picked from commit 2ee798880a246d648ecddadc5b91367bee4a5d98)
2013-01-19Improve WINCE support.Andy Polyakov
Submitted by: Pierre Delaage
2012-12-01cryptlib.c: fix logical error.Andy Polyakov
2012-11-17cryptlib.c: revert typo.Andy Polyakov
2012-11-17Extend OPENSSL_ia32cap_P with extra word to accomodate AVX2 capability.Andy Polyakov
2012-06-03Version skew reduction: trivia (I hope).Ben Laurie
2012-01-15cryptlib.c: sscanf warning.Andy Polyakov
2012-01-14cryptlib.c: make even non-Windows builds "strtoull-agnostic".Andy Polyakov
2011-11-12cryptlib.c, etc.: fix linker warnings in 64-bit Darwin build.Andy Polyakov
2011-10-23cryptlib.c: remove stdio dependency in Windows fipscanister.lib.Andy Polyakov
2011-07-23cryptlib.c: OPENSSL_ia32cap environment variable to interpret ~ as cpuid mask.Andy Polyakov
2011-06-22PR: 2470Dr. Stephen Henson
Submitted by: Corinna Vinschen <vinschen@redhat.com> Reviewed by: steve Don't call ERR_remove_state from DllMain.
2011-02-03Add FIPS support to the WIN32 build system.Dr. Stephen Henson
2011-01-27Move locking and thread ID functions into new files lock.c and thr_id.c,Dr. Stephen Henson
redirect locking to minimal FIPS_lock() function where required.
2010-11-19PR: 2376Dr. Stephen Henson
Submitted by: Guenter <lists@gknw.net> Reviewed by: steve Cleanup alloca use, fix Win32 target for OpenWatcom.
2010-03-29cryptlib.c: allow application to override OPENSSL_isservice.Andy Polyakov
PR: 2194
2009-09-13Submitted by: Julia Lawall <julia@diku.dk>Dr. Stephen Henson
The functions ENGINE_ctrl(), OPENSSL_isservice(), EVP_PKEY_sign(), CMS_get1_RecipientRequest() and RAND_bytes() can return <=0 on error fix so the return code is checked correctly.
2009-07-27Update from 1.0.0-stableDr. Stephen Henson
2009-05-04cryptlib.c: refine logic in OpenSSLDie (addenum to commit#18118).Andy Polyakov
2009-05-03Avoid double dialogs in OpenSSLDie on Windows.Andy Polyakov
2009-05-02cryptlib.c: eliminate dependency on _strtoui64, older Windows CRT don't have it.Andy Polyakov
2009-04-29Make the NULL definition of OPENSSL_ia32cap_loc() compatible with theRichard Levitte
declaration in crypto.h.
2009-04-26Expand OPENSS_ia32cap to 64 bits.Andy Polyakov
2009-04-20Updates from 1.0.0-stable branch.Dr. Stephen Henson
2008-10-14Ooops... remove code accidentally commited from FIPS version.Dr. Stephen Henson
2008-10-14Add missing lock definitions.Dr. Stephen Henson
2008-08-06Remove the dual-callback scheme for numeric and pointer thread IDs,Geoff Thorpe
deprecate the original (numeric-only) scheme, and replace with the CRYPTO_THREADID object. This hides the platform-specifics and should reduce the possibility for programming errors (where failing to explicitly check both thread ID forms could create subtle, platform-specific bugs). Thanks to Bodo, for invaluable review and feedback.
2008-07-03Revert my earlier CRYPTO_THREADID commit, I will commit a reworkedGeoff Thorpe
version some time soon.
2008-06-04More type-checking.Ben Laurie
2008-05-19Change use of CRYPTO_THREADID so that we always use both the ulong andBodo Möller
ptr members. (So if the id_callback is bogus, we still have &errno.)
2008-03-28There was a need to support thread ID types that couldn't be reliably castGeoff Thorpe
to 'unsigned long' (ie. odd platforms/compilers), so a pointer-typed version was added but it required portable code to check *both* modes to determine equality. This commit maintains the availability of both thread ID types, but deprecates the type-specific accessor APIs that invoke the callbacks - instead a single type-independent API is used. This simplifies software that calls into this interface, and should also make it less error-prone - as forgetting to call and compare *both* thread ID accessors could have led to hard-to-debug/infrequent bugs (that might only affect certain platforms or thread implementations). As the CHANGES note says, there were corresponding deprecations and replacements in the thread-related functions for BN_BLINDING and ERR too.
2008-02-28Avoid warnings.Dr. Stephen Henson
2007-02-03Update from fips2 branch.Dr. Stephen Henson
2006-06-23New functions CRYPTO_set_idptr_callback(),Bodo Möller
CRYPTO_get_idptr_callback(), CRYPTO_thread_idptr() for a 'void *' type thread ID, since the 'unsigned long' type of the existing thread ID does not always work well.
2006-04-11Add BeOS support.Ulf Möller
PR: 1312 Submitted by: Oliver Tappe <zooey@hirschkaefer.de> Reviewed by: Ulf Moeller
2005-12-16Unify sparcv9 assembler naming and build rules among 32- and 64-bit builds.Andy Polyakov
Engage run-time switch between bn_mul_mont_fpu and bn_mul_mont_int.
2005-08-03WCE update, mostly typos.Andy Polyakov
2005-08-02WCE-specific fix for cryptlib.c.Andy Polyakov
2005-07-05Pull up Win64 support from 0.9.8.Andy Polyakov
2005-05-21Move _WIN32_WINNT definition from command line to e_os.h. The change isAndy Polyakov
inspired by VC6 failure report. In addition abstain from taking screen snapshots when running in NT service context.
2005-05-03Cygwin doesn't expose Win32 [not "officially"].Andy Polyakov
2005-04-21Provide a default OPENSSL_ia32cap_loc for non-Intel platforms whereRichard Levitte
util/libeay.num is important when building shared libraries, like VMS.
2005-04-13Fix typos.Andy Polyakov