summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2014-04-17Remove support for big-endian i386 and amd64.Miod Vallat
Before someone suggests the OpenSSL people are junkies, here is what they mention about this: /* Most will argue that x86_64 is always little-endian. Well, * yes, but then we have stratus.com who has modified gcc to * "emulate" big-endian on x86. Is there evidence that they * [or somebody else] won't do same for x86_64? Naturally no. * And this line is waiting ready for that brave soul:-) */ So, yes, they are on drugs. But they are not alone, the stratus.com people are, too.
2014-04-17Mostly gut e_os.h:Theo de Raadt
USE_SOCKETS is unrelated to using sockets, but just pulls in .h files. It makes every file buy a kitchen sink, because 11 files forgot to. EXIT() is really exit(), a gentle surprise but... OPENSSL_EXIT() is really just return(), because noone compiles the openssl command non-monolithic anymore
2014-04-17malloc + memset 0 -> callocMiod Vallat
(not that it matters much as this is in disabled code, for we don't build with zlib support)
2014-04-17unused variableTed Unangst
2014-04-17a little less obfuscationTed Unangst
2014-04-17fold prototypes into o_str.c. miodTed Unangst
2014-04-17quick pass at removing ability to disable sha256 and sha512. ok miodTed Unangst
2014-04-17Aren't you glad to have this file tell you that ``C2.pl works''? Bonus pointMiod Vallat
if you can spot C2.pl.
2014-04-17Nuke BN_DEBUG_LEVITTEMiod Vallat
2014-04-17No need to consider being compiled by NASM anymore.Miod Vallat
2014-04-17Stop paying lip service to non-AT&T syntax assemblers in the x86 world.Miod Vallat
2014-04-17todo: do not leave 15 year old todo lists in the tree.Miod Vallat
2014-04-17fix BIO_snprintf usage in here.Bob Beck
ok tedu@
2014-04-17Use of OPENSSL_SYS_xxx defines in public header files considered harmful.Miod Vallat
2014-04-17Bob O.D.'ed on the o_dir code so high he forgot to rm the `test' afterMiod Vallat
rewriting the code.
2014-04-17sprintf: bad.Miod Vallat
snprintf: good. snprintf with a correct size: better! (harmless in this case)
2014-04-17Remove utils that we don't useAndrew Fresh
opensslwrap.sh and shlib_wrap.sh are used by tests that are getting replaced, x86asm.sh is obsoleted by our Makefile machinery ok miod
2014-04-17Remove unused ssl utilsAndrew Fresh
This code is the reason perl has a name as a write only language. ok deraadt miod
2014-04-17expunge more of the old build systemAndrew Fresh
ok deraadt miod
2014-04-17Remove oh-so-important-from-a-security-pov OpenSSL_rtdsc() function.Miod Vallat
2014-04-17fix some more leaks, mostly suggestions from miodJonathan Gray
ok miod@
2014-04-17Remove the benchmark part of the selftest. It uses the undocumentedMiod Vallat
OPENSSL_rdtsc() routine to get a high-precision timestamp, and (although this is the only user of this routine in libcrypto) forces every platform willing to provide fast assembly versions of some routines, to also provide OPENSSL_rdtsc().
2014-04-17Ok, there was a need for OPENSSL_cleanse() instead of bzero() to preventMiod Vallat
supposedly smart compilers from optimizing memory cleanups away. Understood. Ok, in case of an hypothetically super smart compiler, OPENSSL_cleanse() had to be convoluted enough for the compiler not to recognize that this was actually bzero() in disguise. Understood. But then why there had been optimized assembler versions of OPENSSL_cleanse() is beyond me. Did someone not trust the C obfuscation?
2014-04-17Move the machine-specific parts of the libcrypto Makefile to per-arch makefileMiod Vallat
fragments, to ease maintainance, and see through the fog of bugs. "looks good" deraadt@
2014-04-17some KNF cleanup following the scriptTheo de Raadt
2014-04-17fix some of the leaksJonathan Gray
ok miod@ looks good deraadt@
2014-04-17fix a potential double freeJonathan Gray
ok miod@
2014-04-17remove OPENSSL_realloc_clean usage here - replace with intrinsics to makeBob Beck
it obvious what should happen. ok tedu@
2014-04-17Fully kill FIPS API. Forcible certification conflicts with the goals of aTed Unangst
free software project. ok beck deraadt Ports calling FIPS_mode_set(1): mongodb
2014-04-17Initial KNF.Joel Sing
2014-04-17I've replaced everything in this file. ISC liscense it with my copyrightBob Beck
2014-04-17remove some code that is now unused after guenther's changes in 1.20.Jonathan Gray
2014-04-17KNF.Joel Sing
2014-04-17Initial KNF.Joel Sing
2014-04-17simply wrap around intrinsics, and knf cleanup.Bob Beck
ok miod@ deraadt@
2014-04-17Change library to use intrinsic memory allocation functions instead ofBob Beck
OPENSSL_foo wrappers. This changes: OPENSSL_malloc->malloc OPENSSL_free->free OPENSSL_relloc->realloc OPENSSL_freeFunc->free
2014-04-17Revert unintended whitespace changes.Joel Sing
2014-04-17OPENSSL_gmtime() is not a gmtime() wrapper. It is a gmtime_r().Theo de Raadt
Always trying to confuse people... ok guenther
2014-04-17OPENSSL_DECLARE_EXIT serves no purpose.Theo de Raadt
2014-04-171. RAND_seed is now DEPRECATEDTheo de Raadt
2. Even passing a digest in as entropy is sloppy. But apparently the OpenSSL guys could find no objects of lesser value to pass to the pluggable random subsystem, and had to resort to private keys and digests. Classy. ok djm
2014-04-17RAND_seed now does nothing, so skip the operationTheo de Raadt
2014-04-17Do not feed RSA private key information to the random subsystem asTheo de Raadt
entropy. It might be fed to a pluggable random subsystem.... What were they thinking?! ok guenther
2014-04-17remove duplicated tests in if statementsJonathan Gray
ok krw@ sthen@ deraadt@
2014-04-17unistd.h is always in the same place; no need to #include the result ofTheo de Raadt
a maze of conditional #define's
2014-04-17OpenSSL PR#3309: when looking for an extension, set the last found positionStuart Henderson
to -1 to properly search all extensions. ok tedu@ From http://git.openssl.org/gitweb/?p=openssl.git;a=commit;h=300b9f0b70
2014-04-17move enginetest to regress as was done with the other testsJonathan Gray
2014-04-17call the correct decrypt function in aes_cbc_cipher()Jonathan Gray
From: commit e9c80e04c1a3b5a0de8e666155ab4ecb2697a77d Author: Andy Polyakov <appro@openssl.org> Date: Wed Dec 18 21:42:46 2013 +0100 evp/e_[aes|camellia].c: fix typo in CBC subroutine. It worked because it was never called. Our e_camellia.c does not have this problem. ok miod@ deraadt@
2014-04-17tag some functions with bounded. idea and ok djmTed Unangst
2014-04-16TANSTAAFL - delete the buf freelist code. if you need a better malloc, getTed Unangst
a better malloc. ok beck deraadt
2014-04-16add back SRP. i was being too greedy.Ted Unangst