summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fully kill FIPS API. Forcible certification conflicts with the goals of atedu2014-04-173-80/+2
| | | | | | free software project. ok beck deraadt Ports calling FIPS_mode_set(1): mongodb
* Initial KNF.jsing2014-04-174-508/+505
|
* I've replaced everything in this file. ISC liscense it with my copyrightbeck2014-04-171-54/+13
|
* KNF.jsing2014-04-171-3/+3
|
* Initial KNF.jsing2014-04-173-139/+122
|
* simply wrap around intrinsics, and knf cleanup.beck2014-04-171-57/+54
| | | | ok miod@ deraadt@
* Change library to use intrinsic memory allocation functions instead ofbeck2014-04-17200-1004/+1004
| | | | | | | | OPENSSL_foo wrappers. This changes: OPENSSL_malloc->malloc OPENSSL_free->free OPENSSL_relloc->realloc OPENSSL_freeFunc->free
* Revert unintended whitespace changes.jsing2014-04-172-6/+6
|
* OPENSSL_gmtime() is not a gmtime() wrapper. It is a gmtime_r().deraadt2014-04-171-18/+4
| | | | | Always trying to confuse people... ok guenther
* OPENSSL_DECLARE_EXIT serves no purpose.deraadt2014-04-179-9/+0
|
* 1. RAND_seed is now DEPRECATEDderaadt2014-04-172-2/+0
| | | | | | | | | | 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
* RAND_seed now does nothing, so skip the operationderaadt2014-04-171-6/+0
|
* Do not feed RSA private key information to the random subsystem asderaadt2014-04-173-11/+0
| | | | | | | | entropy. It might be fed to a pluggable random subsystem.... What were they thinking?! ok guenther
* remove duplicated tests in if statementsjsg2014-04-171-4/+4
| | | | ok krw@ sthen@ deraadt@
* unistd.h is always in the same place; no need to #include the result ofderaadt2014-04-1712-22/+11
| | | | a maze of conditional #define's
* OpenSSL PR#3309: when looking for an extension, set the last found positionsthen2014-04-171-3/+3
| | | | | | to -1 to properly search all extensions. ok tedu@ From http://git.openssl.org/gitweb/?p=openssl.git;a=commit;h=300b9f0b70
* move enginetest to regress as was done with the other testsjsg2014-04-171-283/+0
|
* call the correct decrypt function in aes_cbc_cipher()jsg2014-04-171-1/+1
| | | | | | | | | | | | | | | | 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@
* tag some functions with bounded. idea and ok djmtedu2014-04-171-3/+6
|
* Clean up dangerous strncpy use. This included a use where the resultingbeck2014-04-168-27/+17
| | | | | | | string was potentially not nul terminated and a place where malloc return was unchecked. while we're at it remove dummytest.c ok miod@
* - Why do we hide from the OpenSSL police, dad?miod2014-04-166-114/+23
| | | | | | | | - Because they're not like us, son. They use macros to wrap stdio routines, for an undocumented (OPENSSL_USE_APPLINK) use case, which only serves to obfuscate the code. ok tedu@
* > As I walk through the valley of the shadow of deathtedu2014-04-1610-606/+4
| | | | | | | | | > I take a look at my life and realize there's nothin' left > Cause I've been blasting and laughing so long, > That even my mama thinks that my mind is gone Remove even more unspeakable evil being perpetuated in the name of VMS. (and lesser evils done in the name of others.) ok miod
* No need to define ANSI_SOURCE and NO_ERR. TERMIOS kept until ui/ui_openssl.cmiod2014-04-161-2/+2
| | | | gets a second trim.
* No need to build with -DOPENSSL_NO_CAPIENG and -DOPENSSL_NO_HW_xxx for allmiod2014-04-161-10/+1
| | | | now removed engines.
* delete a few leftoverstedu2014-04-161-5/+1
|
* fix a few bugs observed on http://www.viva64.com/en/b/0250/tedu2014-04-162-2/+2
| | | | ok krw miod
* whack the ifdef pinata:tedu2014-04-161-260/+5
| | | | | | | | | | | | | | | | | | OPENSSL_SYSNAME_VXWORKS OPENSSL_SYS_VMS OPENSSL_SYS_MSDOS OPENSSL_UNISTD OPENSSL_SYS_WIN16 WIN_CONSOLE_BUG OPENSSL_SYS_WINCE SGTTY OPENSSL_SYS_MACINTOSH_CLASSIC MAC_OS_GUSI_SOURCE OPENSSL_SYS_NETWARE OPENSSL_SYS_SUNOS __DJGPP__ OPENSSL_SYS_BEOS OPENSSL_SYS_WIN32
* Zero-pad usec format to handle values less than 100,000 correctlyguenther2014-04-161-1/+1
| | | | ok matthew@ tedu@
* Mandatory Surgeon Guenther's Warning: This code could not possibly betedu2014-04-161-24/+24
| | | | | | | correct because it doesn't zerofill the front of usecs, but that's the way I found it. a more thorough emulation of the old code, but with fewer whacky snprintf pointer arithmetic antics. ok beck guenther
* revert. the full horror has only now revealed itself.tedu2014-04-161-26/+21
|
* replace some bio_snprintf crazy with regular snprintf.tedu2014-04-161-21/+26
| | | | | beck had a diff to convert to strftime, but it's easier to verify this is functionally the same. ok beck.
* More KNF.jsing2014-04-1610-104/+109
|
* Make this byzantine horror a shell of it's former self by stubbing thebeck2014-04-161-660/+17
| | | | | | | functions. The ability to set the debug mem functions died with mem.c, but some of the rest of this is still exposed API so we can't delete it.. yet... ok tedu@
* Some software expects RAND_status() to return 1 for success, so alwaysreyk2014-04-161-2/+10
| | | | | | | return 1 in the arc4random backend because there is no possible error condition. Unbreaks lynx, git and friends. ok miod@ dcoppa@
* Clean up non-fatal error handling - we know which error numbers we havejsing2014-04-163-105/+0
| | | | | | defined. ok miod@ beck@
* unbreak install; /usr/share/man/man3/EVP_PKEY_print_private.3 should link tosthen2014-04-161-2/+2
| | | | /usr/share/man/man3/EVP_PKEY_print_public.3 not itself, from deraadt
* Sync the list of man pages for libcrypto, explicity rename conflictingmpi2014-04-1610-56/+1576
| | | | | | | pages instead of doing it in the Makefiles and move a libssl page where it belongs. ok miod@
* Remove _CRAY references. Note that this pleads for the use of <stdint.h>miod2014-04-166-40/+5
| | | | | fixed-width types instead of choosing int or long depending upon what we think the architecture support.
* Remove DES_read_password and DES_read_2passwords which are `modern' flavoursmiod2014-04-163-146/+1
| | | | | | of des_old.h routines, acting as wrappers about the OpenSSL UI API. Nothing should use these functions directly. Riding the recent libcrypto major bump (in a `des' car).
* Your operating system memory allocation functions are your friend. If theybeck2014-04-163-443/+201
| | | | | | | | are not please fix your operating system. Replace mem.c with an API-compatible wrapper that just calls the system functions and does not allow a one word modification of a variable in a running shared library to turn on memory debug functions that expose things that should not be seen. ok tedu@
* dead filetedu2014-04-161-521/+0
|
* API compat fix. RAND_load_file can never fail now. discovered and ok beck.tedu2014-04-161-3/+7
|
* Remove non-posix support. Why is OPENSSL_isservice even here?tedu2014-04-161-229/+0
| | | | | Is this a crypto library or a generic platform abstraction library? "A hack to make Visual C++ 5.0 work correctly" ... time to upgrade.
* Remove disabled code that wouldn't work now that cleanse_ptr wasmatthew2014-04-161-35/+18
| | | | | | | | removed. Also, fix some nearby KNF nits that were bothering me. ok beck
* you do not want to do the things this program doestedu2014-04-161-932/+0
|
* strip this to the bonetedu2014-04-151-67/+3
|
* Three wrappers in this file: OPENSSL_strncasecmp, OPENSSL_strcasecmp,deraadt2014-04-151-93/+4
| | | | | | | | | | | | and OPENSSL_memcmp. All modern systems have strncasecmp. No need to rewrite it. Same with memcmp, call the system one! It is more likely to be hot in the icache, and is specifically optimized for the platform. I thought these OpenSSL people cared about performance? ok tedu
* use explicit_bzero instead of a bizarro "no compiler could ever be smarttedu2014-04-151-70/+3
| | | | enough to optimize this" monstrosity.
* remove md2, jpake, and seed clutter.tedu2014-04-1516-2390/+0
|
* don't even pretend to build md2, seed, or jpaketedu2014-04-151-17/+3
| | | | ok beck deraadt