summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/buffer/buffer.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-04-16Clean up dangerous strncpy use. This included a use where the resultingbeck18-150/+34
string was potentially not nul terminated and a place where malloc return was unchecked. while we're at it remove dummytest.c ok miod@
2014-04-16- Why do we hide from the OpenSSL police, dad?miod12-228/+46
- 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@
2014-04-16> As I walk through the valley of the shadow of deathtedu20-1212/+8
> 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
2014-04-16lots of ifdef cleanuptedu3-400/+1
2014-04-16repair knftedu1-1/+1
2014-04-16No need to define ANSI_SOURCE and NO_ERR. TERMIOS kept until ui/ui_openssl.cmiod1-2/+2
gets a second trim.
2014-04-16No need to build with -DOPENSSL_NO_CAPIENG and -DOPENSSL_NO_HW_xxx for allmiod1-10/+1
now removed engines.
2014-04-16quoth the readme:tedu128-16802/+0
NOTE: Don't expect any of these programs to work with current OpenSSL releases, or even with later SSLeay releases. ok miod
2014-04-16delete a few leftoverstedu2-10/+2
2014-04-16fix a few bugs observed on http://www.viva64.com/en/b/0250/tedu7-7/+5
ok krw miod
2014-04-16Thanks to the knobs in http://tools.ietf.org/html/rfc5746, we have a knobbeck4-14/+6
to say "allow this connection to negotiate insecurely". de-fang the code that respects this option to ignore it. ok miod@
2014-04-16disentangle SRP code from TLStedu23-1804/+2
2014-04-16whack the ifdef pinata:tedu2-520/+10
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
2014-04-16SSLv3_client_method() doesn't support TLSv1.*; use SSLv23_client_method()guenther2-4/+4
the for anything where version negotiation would be useful. Also, constipate a couple formatting strings to make compilers and linkers happier. ok tedu@
2014-04-16Zero-pad usec format to handle values less than 100,000 correctlyguenther2-2/+2
ok matthew@ tedu@
2014-04-16Initial KNF.jsing5-1143/+1006
2014-04-16Initial KNF.jsing4-1035/+825
2014-04-16Mandatory Surgeon Guenther's Warning: This code could not possibly betedu2-48/+48
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
2014-04-16Initial KNF.jsing2-1903/+1662
2014-04-16More KNF.jsing2-100/+119
2014-04-16First pass for KNF.jsing2-1294/+1235
2014-04-16revert. the full horror has only now revealed itself.tedu2-52/+42
2014-04-16replace some bio_snprintf crazy with regular snprintf.tedu2-42/+52
beck had a diff to convert to strftime, but it's easier to verify this is functionally the same. ok beck.
2014-04-16Kill the bogus "send an SSLv3/TLS hello in SSLv2 format" crap fromguenther14-650/+346
the SSLv23_* client code. The server continues to accept it. It also kills the bits for SSL2 SESSIONs; even when the server gets an SSLv2-style compat handshake, the session that it creates has the correct version internally. ok tedu@ beck@
2014-04-16More KNF.jsing20-208/+218
2014-04-16Make this byzantine horror a shell of it's former self by stubbing thebeck2-1320/+34
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@
2014-04-16Some software expects RAND_status() to return 1 for success, so alwaysreyk2-4/+20
return 1 in the arc4random backend because there is no possible error condition. Unbreaks lynx, git and friends. ok miod@ dcoppa@
2014-04-16Clean up non-fatal error handling - we know which error numbers we havejsing6-210/+0
defined. ok miod@ beck@
2014-04-16unbreak install; /usr/share/man/man3/EVP_PKEY_print_private.3 should link tosthen1-2/+2
/usr/share/man/man3/EVP_PKEY_print_public.3 not itself, from deraadt
2014-04-16Sync the list of man pages for libcrypto, explicity rename conflictingmpi25-179/+1662
pages instead of doing it in the Makefiles and move a libssl page where it belongs. ok miod@
2014-04-16Remove pointless man pages that were not installed.mpi4-383/+0
ok miod@
2014-04-16adapt to test file movesjsg1-63/+50
md2test and rsatest targets removed as the files have been removed
2014-04-16adapt to the less old des apijsg1-49/+49
2014-04-16Remove _CRAY references. Note that this pleads for the use of <stdint.h>miod12-80/+10
fixed-width types instead of choosing int or long depending upon what we think the architecture support.
2014-04-16Remove DES_read_password and DES_read_2passwords which are `modern' flavoursmiod5-290/+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).
2014-04-16Your operating system memory allocation functions are your friend. If theybeck5-884/+400
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@
2014-04-16dead filetedu2-1042/+0
2014-04-16API compat fix. RAND_load_file can never fail now. discovered and ok beck.tedu2-6/+14
2014-04-16missed vms commenttedu1-4/+0
2014-04-16first round of unifdef hammeringtedu7-188/+2
2014-04-16Remove non-posix support. Why is OPENSSL_isservice even here?tedu2-458/+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.
2014-04-16spray the apps directory with anti-VMS napalm.tedu46-449/+0
so that its lovecraftian horror is not forever lost, i reproduce below a comment from the deleted code. /* 2011-03-22 SMS. * If we have 32-bit pointers everywhere, then we're safe, and * we bypass this mess, as on non-VMS systems. (See ARGV, * above.) * Problem 1: Compaq/HP C before V7.3 always used 32-bit * pointers for argv[]. * Fix 1: For a 32-bit argv[], when we're using 64-bit pointers * everywhere else, we always allocate and use a 64-bit * duplicate of argv[]. * Problem 2: Compaq/HP C V7.3 (Alpha, IA64) before ECO1 failed * to NULL-terminate a 64-bit argv[]. (As this was written, the * compiler ECO was available only on IA64.) * Fix 2: Unless advised not to (VMS_TRUST_ARGV), we test a * 64-bit argv[argc] for NULL, and, if necessary, use a * (properly) NULL-terminated (64-bit) duplicate of argv[]. * The same code is used in either case to duplicate argv[]. * Some of these decisions could be handled in preprocessing, * but the code tends to get even uglier, and the penalty for * deciding at compile- or run-time is tiny. */
2014-04-16strncpy(d, s, strlen(s)) is a special kind of stupid. even when it's right,tedu4-24/+34
it looks wrong. replace with auditable code and eliminate many strlen calls to improve efficiency. (wait, did somebody say FASTER?) ok beck
2014-04-16Remove disabled code that wouldn't work now that cleanse_ptr wasmatthew2-70/+36
removed. Also, fix some nearby KNF nits that were bothering me. ok beck
2014-04-16KNFmcbride2-722/+1238
2014-04-16you do not want to do the things this program doestedu2-1864/+0
2014-04-15strip this to the bonetedu2-134/+6
2014-04-15Three wrappers in this file: OPENSSL_strncasecmp, OPENSSL_strcasecmp,deraadt2-186/+8
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
2014-04-15use explicit_bzero instead of a bizarro "no compiler could ever be smarttedu2-140/+6
enough to optimize this" monstrosity.
2014-04-15remove BIO_snprintf usage - convert to snprintf.beck1-7/+8
Interestingly this fixes a bug, as the code appears to have been assuming that BIO_snprintf returns what snprintf does when it does not. ok tedu@