summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-05-27Where trying to pread() a single disk sector, the i/o must be for theKenneth R Westerback
actual disk sector size and not DEV_BSIZE. The sector size must be obtained via the disklabel. Larger i/o's must be multiple sectors, so when retrying with a smaller size shrink the attempt by one sector and not DEV_BSIZE. Of course if your d_secsize is DEV_BSIZE, this will all be a no-op. This does not make non-512-byte sectors work, but puts in place the logic to get and use the disklabel info. Which makes the next diffs bite sized and focused. ok guenther@
2014-05-27Fix ia64 cross-gcc target.Tobias Ulmer
opensslconf.h is just a dummy, we're lightyears away from working userspace. ok deraadt@
2014-05-27Reserve the highest route priority for kernel-managed routes and preventMartin Pieuchot
userland from playing with the local and broadcast flags. ok claudio@
2014-05-27there is no need to xref regex(3) and setbuf(3) in SEE ALSO - re_format(7)Jason McIntyre
is enough;
2014-05-26Replace the following logic:Miod Vallat
if (nothing to allocate) ptr = malloc(1) else { if ((ptr = malloc(size to allocate)) memcpy(ptr, data to copy, size to allocate) } if (ptr == NULL) OMG ERROR with a saner logic where the NULL pointer check if moved to the actual malloc branch, so that we do not need to malloc a single byte, just to avoid having a NULL pointer. Whoever thought allocating a single byte was a smart idea was obviously not taking his meds. ok beck@ guenther@
2014-05-26Unchecked malloc() return value in SSL_COMP_add_compression_method(), in theMiod Vallat
!OPENSSL_NO_COMP case. Does not affect OpenBSD as we compile the opposite code path.
2014-05-26We don't really to keep history in constructs such as:Miod Vallat
#if 1 /* new with openssl 0.9.4 */ current code; #else obsolete code; #endif
2014-05-26tls_decrypt_ticket(): memory leak and uncleaned EVP_CIPHER_CTX upon error.Miod Vallat
2014-05-26remove /usr/src. avoids useless whining from daily security mail.Alexander Hall
ok landry@ ajacoutot@
2014-05-26Replace some magic constants with appropriate defines.Mark Kettenis
ok krw@, deraadt@
2014-05-26Do not change the state of the carry bit in the psr when returning withMiod Vallat
ERESTART or EJUSTRETURN, for we're not supposed to. (Actually, setting the carry bit upon syscall failure doesn't make much sense on m88k, since this is not how the syscall stubs check for failure)
2014-05-26tweak the text for -a and function lists;Jason McIntyre
2014-05-26Make sure all error paths in dtls1_buffer_record() invoke SSLErr byMiod Vallat
factoring error handling. ok jsing@
2014-05-26rework the SED FUNCTIONS text;Jason McIntyre
2014-05-26the `P' function was crying out for a comma;Jason McIntyre
2014-05-26posix does not count `!' as a separate function, and neither should we;Jason McIntyre
instead, move the description of this mechanism into the general SED FUNCTIONS section;
2014-05-26remove the ugly hack that saw two It macros used to render one item; replaceJason McIntyre
with other ugly hack (.br): at least this way we can whack a ton of Pp, and it feels not quite as wrong; while here, fix Em abuse by using Ic for functions and Ar for argument names; i also fixed up the text of "s" a little to make it read better;
2014-05-26syncKenji Aoyama
2014-05-26There is no need to include <openssl/e_os2.h> here, except for the factJoel Sing
that it brings in <openssl/opensslconf.h>, so just do that instead (currently via apps.h).
2014-05-26Update the aead regress to work with the improved EVP AEAD API.Joel Sing
2014-05-26Implement an improved version of the EVP AEAD API. TheJoel Sing
EVP_AEAD_CTX_{open,seal} functions previously returned an ssize_t that was overloaded to indicate success/failure, along with the number of bytes written as output. This change adds an explicit *out_len argument which is used to return the number of output bytes and the return value is now an int that is purely used to identify success or failure. This change effectively rides the last libcrypto crank (although I do not expect there to be many users of the EVP AEAD API currently). Thanks to Adam Langley for providing the improved code that this diff is based on. ok miod@
2014-05-26Use C99 initialisers for BIO_METHOD.Joel Sing
2014-05-26KNF.Joel Sing
2014-05-26repair some KNF missed by the script; ok jsingTheo de Raadt
2014-05-26KNF.Joel Sing
2014-05-26KNF.Joel Sing
2008-09-06import of OpenSSL 0.9.8hDamien Miller
2005-04-29import of openssl-0.9.7g; tested on platforms from alpha to zaurus, ok deraadt@Damien Miller
2014-05-26Document that this reference counter is not generic. It indicates howMartin Pieuchot
many route entries are pointing to this address.
2014-05-26Matching USB devices per device IDs is not a good idea, especially ifMartin Pieuchot
the device has multiple interfaces and/or report IDs. Make sure utpms(4) only matches the mouse interface of the HID device embedded in Powerbooks and do not rely on the alphabetical order to have a working ukbd(4) on such machines. Problem reported by daniel@
2014-05-26move all stats collecting under MALLOC_STATS; ok krw@Otto Moerbeek
2014-05-26Can't use a variable 'c' in a standard include; rename it to '_c'Philip Guenther
ok deraadt@ millert@
2014-05-25Appease LLVM warnings..Brad Smith
error: shift count >= width of type [-Werror,-Wshift-count-overflow] Rework the ld.so relocation mask initialization. Clang complained about the shift code in the old versions of these, so improve the code. From drahn Bitrig ok miod@
2014-05-25Fix resource descriptor leaks.Loganaden Velvindron
CID: 966576 & 966577 OK from guenther@ and "Yup. looks good." from tedu@
2014-05-25-noout mentions a CRL, which is incorrect. Use "no output of encoded sessionLoganaden Velvindron
info." instead. From Martin Kaiser. OK from tedu@
2014-05-25heartbearts->heartbeats fixLoganaden Velvindron
From Marcos Marado: OK from tedu@
2014-05-25calloc instead of malloc/memset. from Benjamin BaierTed Unangst
2014-05-25Get the vmspace pointer from the process, not the threadPhilip Guenther
2014-05-25- it seems our notes that posix require rm to behave like rmdir for directoriesJason McIntyre
is plain wrong: remove it. the note in posix spec is misleading, to be fair - most of the rest of notes in STANDARDS are really historical notes (admittedly caused by the standards i guess) so move them into HISTORY. debatable, yes, but leaves STANDARDS consistent. HISTORY is a hodge podge anyway, by neccesity. - while there, fix a sentence splice in BUGS sobrado agrees with the removal of the rmdir note; millert oks the diff
2014-05-25Handle threaded processes correctly when processing kerninfo status requestsPhilip Guenther
(aka ^T), summing CPU and check runnable/running status of all threads. ok deraadt@
2014-05-25In access(), use the real UID/GID for the path search too.Philip Guenther
ok matthew@
2014-05-25syncTheo de Raadt
2014-05-25"for every change..."Ted Unangst
2014-05-25remove OPENSSL_memcmp before somebody tries to use it. ok beck miodTed Unangst
2014-05-25remove OPENSSL_isservice. not used internally, no sane posix software willTed Unangst
call it, and windows service software can figure this out on its own. ok beck miod
2014-05-25use calloc, from Benjamin BaierTed Unangst
2014-05-25one calloc from Benjamin Baier, one from me.Ted Unangst
2014-05-25use calloc. from Benjamin BaierTed Unangst
2014-05-25remove unused shit. from Alexander SchrijverTed Unangst
2014-05-25define LIBRESSL_INTERNAL, and use it to hide the bad stuff from ourselvesTed Unangst
ok beck