aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/cryptlib.c
Commit message (Collapse)AuthorAgeFilesLines
* OPENSSL_NO_XXX cleanup: OPENSSL_NO_BUF_FREELISTSRich Salz2015-01-271-3/+0
| | | | | | | | 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>
* Run util/openssl-format-source -v -c .Matt Caswell2015-01-221-244/+311
| | | | Reviewed-by: Tim Hudson <tjh@openssl.org>
* crypto/cryptlib.c: make it indent-friendly.Andy Polyakov2015-01-221-2/+4
| | | | Reviewed-by: Tim Hudson <tjh@openssl.org>
* RT3548: Remove unsupported platformsRich Salz2015-01-121-1/+1
| | | | | | | 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>
* Remove OPENSSL_FIPSCANISTER code.Dr. Stephen Henson2014-12-081-2/+0
| | | | | | | 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>
* Avoid Windows 8 Getversion deprecated errors.Dr. Stephen Henson2014-02-251-1/+1
| | | | | | | | | | | 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.
* cryptlib.c: fix typo in OPENSSL_showfatal.Andy Polyakov2013-04-041-1/+1
|
* Add and use a constant-time memcmp.Ben Laurie2013-02-061-0/+13
| | | | | | | | 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)
* Improve WINCE support.Andy Polyakov2013-01-191-0/+2
| | | | Submitted by: Pierre Delaage
* cryptlib.c: fix logical error.Andy Polyakov2012-12-011-4/+7
|
* cryptlib.c: revert typo.Andy Polyakov2012-11-171-1/+1
|
* Extend OPENSSL_ia32cap_P with extra word to accomodate AVX2 capability.Andy Polyakov2012-11-171-6/+14
|
* Version skew reduction: trivia (I hope).Ben Laurie2012-06-031-1/+1
|
* cryptlib.c: sscanf warning.Andy Polyakov2012-01-151-1/+1
|
* cryptlib.c: make even non-Windows builds "strtoull-agnostic".Andy Polyakov2012-01-141-1/+1
|
* cryptlib.c, etc.: fix linker warnings in 64-bit Darwin build.Andy Polyakov2011-11-121-1/+3
|
* cryptlib.c: remove stdio dependency in Windows fipscanister.lib.Andy Polyakov2011-10-231-1/+7
|
* cryptlib.c: OPENSSL_ia32cap environment variable to interpret ~ as cpuid mask.Andy Polyakov2011-07-231-3/+6
|
* PR: 2470Dr. Stephen Henson2011-06-221-3/+0
| | | | | | | Submitted by: Corinna Vinschen <vinschen@redhat.com> Reviewed by: steve Don't call ERR_remove_state from DllMain.
* Add FIPS support to the WIN32 build system.Dr. Stephen Henson2011-02-031-0/+2
|
* Move locking and thread ID functions into new files lock.c and thr_id.c,Dr. Stephen Henson2011-01-271-536/+0
| | | | redirect locking to minimal FIPS_lock() function where required.
* PR: 2376Dr. Stephen Henson2010-11-191-9/+11
| | | | | | | Submitted by: Guenter <lists@gknw.net> Reviewed by: steve Cleanup alloca use, fix Win32 target for OpenWatcom.
* cryptlib.c: allow application to override OPENSSL_isservice.Andy Polyakov2010-03-291-0/+12
| | | | PR: 2194
* Submitted by: Julia Lawall <julia@diku.dk>Dr. Stephen Henson2009-09-131-1/+1
| | | | | | 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.
* Update from 1.0.0-stableDr. Stephen Henson2009-07-271-5/+5
|
* cryptlib.c: refine logic in OpenSSLDie (addenum to commit#18118).Andy Polyakov2009-05-041-2/+4
|
* Avoid double dialogs in OpenSSLDie on Windows.Andy Polyakov2009-05-031-0/+7
|
* cryptlib.c: eliminate dependency on _strtoui64, older Windows CRT don't have it.Andy Polyakov2009-05-021-1/+4
|
* Make the NULL definition of OPENSSL_ia32cap_loc() compatible with theRichard Levitte2009-04-291-1/+1
| | | | declaration in crypto.h.
* Expand OPENSS_ia32cap to 64 bits.Andy Polyakov2009-04-261-6/+16
|
* Updates from 1.0.0-stable branch.Dr. Stephen Henson2009-04-201-1/+1
|
* Ooops... remove code accidentally commited from FIPS version.Dr. Stephen Henson2008-10-141-68/+11
|
* Add missing lock definitions.Dr. Stephen Henson2008-10-141-12/+71
|
* Remove the dual-callback scheme for numeric and pointer thread IDs,Geoff Thorpe2008-08-061-30/+122
| | | | | | | | | 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.
* Revert my earlier CRYPTO_THREADID commit, I will commit a reworkedGeoff Thorpe2008-07-031-63/+34
| | | | version some time soon.
* More type-checking.Ben Laurie2008-06-041-6/+5
|
* Change use of CRYPTO_THREADID so that we always use both the ulong andBodo Möller2008-05-191-8/+9
| | | | | | ptr members. (So if the id_callback is bogus, we still have &errno.)
* There was a need to support thread ID types that couldn't be reliably castGeoff Thorpe2008-03-281-34/+62
| | | | | | | | | | | | | | 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.
* Avoid warnings.Dr. Stephen Henson2008-02-281-2/+2
|
* Update from fips2 branch.Dr. Stephen Henson2007-02-031-1/+1
|
* New functions CRYPTO_set_idptr_callback(),Bodo Möller2006-06-231-13/+36
| | | | | | 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.
* Add BeOS support.Ulf Möller2006-04-111-0/+2
| | | | | | PR: 1312 Submitted by: Oliver Tappe <zooey@hirschkaefer.de> Reviewed by: Ulf Moeller
* Unify sparcv9 assembler naming and build rules among 32- and 64-bit builds.Andy Polyakov2005-12-161-1/+1
| | | | Engage run-time switch between bn_mul_mont_fpu and bn_mul_mont_int.
* WCE update, mostly typos.Andy Polyakov2005-08-031-2/+2
|
* WCE-specific fix for cryptlib.c.Andy Polyakov2005-08-021-16/+6
|
* Pull up Win64 support from 0.9.8.Andy Polyakov2005-07-051-1/+1
|
* Move _WIN32_WINNT definition from command line to e_os.h. The change isAndy Polyakov2005-05-211-2/+3
| | | | | inspired by VC6 failure report. In addition abstain from taking screen snapshots when running in NT service context.
* Cygwin doesn't expose Win32 [not "officially"].Andy Polyakov2005-05-031-1/+1
|
* Provide a default OPENSSL_ia32cap_loc for non-Intel platforms whereRichard Levitte2005-04-211-0/+2
| | | | | util/libeay.num is important when building shared libraries, like VMS.
* Fix typos.Andy Polyakov2005-04-131-2/+2
|