summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2017-11-07Fix spelling: bet -> net from Scott Bennett, thanksTheo Buehler
2017-11-04Revert recent changes to unbreak ports/net/sambaJeremie Courreges-Anglas
While it is not clear (to me) why that ports ends up with corrupted shared libs, reverting those changes fixes the issue and should allow us to close p2k17 more smoothly. Discussed with a bunch, ok ajacoutot@ guenther@
2017-11-04fuse_loop_mt() isn't implemented so return an error value.Martin Pieuchot
From Helg Bredow.
2017-11-04Use the correct version macro.Martin Pieuchot
From Helg Bredow, ok pirofti@
2017-11-04polish debug printfs, no behaviour change.Alexandre Ratchov
2017-11-02's' should include 'f'; from Jacqueline JolicoeurOtto Moerbeek
2017-11-02Check if the arguments are NULL instead of dereferencing them blindly.Martin Pieuchot
Delete incorrect "unused" keyword and remove redundant variables due to missing NULL checks. From Helg Bredow.
2017-11-02Update libexpat to 2.2.5. Changes for OpenBSD include a few bugAlexander Bluhm
fixes, no library bump needed. OK deraadt@
2017-10-31Argh: put back some linker-supplied symbols to avoid triggering a bugPhilip Guenther
in binutils that results in uninitialized .dynsym entries in shared objects in the samba port. problem reported by naddy@ ok jca@ kettenis@
2017-10-30fix oob read; form llvm via Vlad Tsyrklevich; ok millert@Otto Moerbeek
2017-10-29Prefer <elf.h> to the non portable <sys/exec_elf.h>.Martin Pieuchot
ok jca@, deraadt@
2017-10-29Stop exporting _memcpy, an implementation detail of bcopy/memcpy/memmovePhilip Guenther
ok kettenis@ deraadt@
2017-10-28Remove __builtin_saveregs: gcc hasn't used it for years.Philip Guenther
suggested by miod@ ok kettenis@
2017-10-28Typo: 'end' should have been '_end', which is already exported/imported.Philip Guenther
Also, '_memcpy' and '_stack' were specific to arm and should not have been copied here
2017-10-28Eliminate some more linker generated symbols that aren't needed.Philip Guenther
ok kettenis@
2017-10-28If the init_routine used with pthread_once() is canceled, then we need toPhilip Guenther
unlock the mutex inside the pthread_once_t. Push a cleanup wrapper for that. Diff from Scott Cheloha <scottcheloha@gmail.com> ok mpi@
2017-10-28Change pthread_cleanup_{push,pop} to macros that store the cleanup infoPhilip Guenther
on the stack instead of mallocing the list and move the APIs from libpthread to libc so that they can be used inside libc. Note: the standard was explicitly written to permit/support this "macro with unmatched brace" style and it's what basically everyone else already does. We xor the info with random cookies with a random magic to detect/trip-up overwrites. Major bump to both libc and libpthread due to the API move. ok mpi@
2017-10-28Stop exporting some symbols internal to the softfloat implementation,Mark Kettenis
unneeded linker-generated symbols and libgcc symbols that are accidentally re-exported. Riding the upcoming libc major bump. ok guenther@
2017-10-28No need to include <sys/param.h> before <sys/sysctl.h>.Martin Pieuchot
ok deraadt@, jca@
2017-10-28consistently use .Vt for variable types and use ".Fa path" where appropriate;Ingo Schwarze
one of the bugs reported by <ilya dot kaliman at gmail dot com> via jmc@
2017-10-27Use <elf.h> instead of <elf_abi.h>Martin Pieuchot
ok jasper@, jca@, deraadt@
2017-10-25Check for NULL before dereferencing untrusted pointers.Martin Pieuchot
from Helg Bredow.
2017-10-24Add more sanity checks to prevent a segfault and a NULL-dereferenceMartin Pieuchot
when manipulating callers probided pointers. From Helg Bredow.
2017-10-23Don't let close(2) clobber errno. Some calls were already protectedTodd C. Miller
but not all. From Peter J. Philipp.
2017-10-22Removed duplicated line.Tobias Stoeckmann
ok jmc@
2017-10-19Restore a return that was inadvertently removed from freezero() in r1.234,Joel Sing
which results in an internal double free when internal functions are not in use. ok otto@
2017-10-17add missing HISTORY; based on CVS logs and release announcementsIngo Schwarze
2017-10-17remove the remaining references to .depend files since nothing creates themChristian Weisgerber
any longer; ok espie@ deraadt@
2017-10-16draft-ietf-tcpm-initcwnd was published as rfc 6928Mike Belopuhov
2017-10-15Move the thread-related .h files to /usr/src/include/, since thePhilip Guenther
implementation is now spread between libc and librthread. No changes to the content ok mpi@
2017-10-15Do not use an uninitialized value when determining the signVisa Hankala
of a denormal result of ldexp(3). The bug was found when investigating why denormal results of pow(3) can have an incorrect sign on loongson. pow(3) misbehaviour reported and fix tested by juanfra@ No objection from deraadt@
2017-10-12Rename ssl3_client_hello() to ssl3_send_client_hello() for consistency.Joel Sing
2017-10-12Fold dtls1_accept() into ssl_accept(), removing a lot of duplicated code.Joel Sing
With review/feedback from inoguchi@
2017-10-12Drop prototypes for ssl23_*() functions, which no longer exist.Joel Sing
2017-10-12Add STANDARDS: denis@ spotted that it was missing.Ingo Schwarze
OK deraadt@ jca@ jmc@
2017-10-11Convert ssl3_client_hello() to CBB.Joel Sing
As part of this, change ssl_cipher_list_to_bytes() to take a CBB argument, rather than a pointer/length. Some additional clean up/renames while here. Based on a diff from doug@
2017-10-11Fully convert ssl3_send_server_hello() to CBB.Joel Sing
Based on a diff from doug@
2017-10-10Make ssl_bytes_to_cipher_list() take a CBS, rather than a pointer andJoel Sing
length, since the caller has already been converted to CBS. A small amount of additional clean up whilst here.
2017-10-10((remove) (some) (unnecessary) (parentheses))Joel Sing
Part of a diff from doug@
2017-10-10Merge dtls1_connect() into ssl3_connect(), removing a large amount ofJoel Sing
duplicated code. For now this is essentially adds a diff of the two functions with 'if (SSL_IS_DTLS(s))' - further clean up and improvement will follow. ok inoguchi@
2017-10-08Document fktrace(2) more completely, including separation of errors.Philip Guenther
Add a few errors that were previously undocumented. ok jmc@
2017-10-08Reduce non-functional differences between dtls1_accept() andJoel Sing
ssl3_accept() - synchronise comments, whitespace, line wrapping, etc.
2017-10-08Reduce non-functional differences between dtls1_connect() andJoel Sing
ssl3_connect() - synchronise comments, whitespace, line wrapping, etc.
2017-10-08Fix some style/whitespace/indentation issues in ssl3_accept().Joel Sing
2017-10-08Fix some style/whitespace/indentation issues in ssl3_connect().Joel Sing
2017-10-08Convert ssl3_send_change_cipher_spec() to use CBB and make it handle DTLS,Joel Sing
which allows us to drop dtls1_send_change_cipher_spec() entirely. ok inoguchi@
2017-10-08Make cacheflush(3) and get_fpc_csr(3) manual pages available on octeon.Visa Hankala
OK deraadt@
2017-10-08Fix typo.Visa Hankala
2017-10-08hyphenate DER/PEM-encoded, for consistency;Jason McIntyre
2017-10-07Document tls_peer_cert_chain_pem().Joel Sing
ok beck@