summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/wcswcs.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-10-19Revert last commit due to changed semantics found by make release.doug1-10/+10
2014-10-18Better POSIX compliance in realpath(3).doug1-10/+10
millert@ made changes to realpath.c based on FreeBSD's version. I merged Todd's changes into dl_realpath.c. ok millert@, guenther@
2014-10-18None of these need to include <openssl/rand.h>jsing62-128/+62
2014-10-18Sort/group includes.jsing2-50/+52
2014-10-18Use arc4random_buf() instead of RAND_bytes() or RAND_pseudo_bytes().jsing34-130/+76
arc4random provides high quality pseudo-random numbers, hence there is no need to differentiate between "strong" and "pseudo". Furthermore, the arc4random_buf() function is guaranteed to succeed, which avoids the need to check for and handle failure, simplifying the code. It is worth noting that a number of the replaced RAND_bytes() and RAND_pseudo_bytes() calls were missing return value checks and these functions can fail for a number of reasons (at least in OpenSSL - thankfully they were converted to wrappers around arc4random_buf() some time ago in LibreSSL). ok beck@ deraadt@ miod@
2014-10-18Typical malloc() with size multiplication to reallocarray().doug3-12/+12
ok deraadt@
2014-10-16use .fn here too. from Jean-Philippe Ouellettedu1-3/+3
2014-10-16Repair BUF_strdup() breakage.jsing2-4/+6
2014-10-16Get rid of the last remaining BUF_strdup and BUF_strlcpy and friends, usebeck8-16/+24
intrinsic functions everywhere, and wrap these functions in an #ifndef LIBRESSL_INTERNAL to make sure we don't bring their use back.
2014-10-15Fuck it. No SSLv3; not now, not ever. The API of the future will onlytedu3-8/+4
support the protocols of the future. (Perhaps a bit late in burning this bridge entirely, but there's no time like the present, esp. with other players now leaning against back compat.)
2014-10-15basic formatting fixes;jmc1-4/+3
2014-10-15Disable SSLv3 by default.jsing2-2/+8
SSLv3 has been long known to have weaknesses and the POODLE attack has once again shown that it is effectively broken/insecure. As such, it is time to stop enabling a protocol was deprecated almost 15 years ago. If an application really wants to provide backwards compatibility, at the cost of security, for now SSL_CTX_clear_option(ctx, SSL_OP_NO_SSLv3) can be used to re-enable it on a per-application basis. General agreement from many. ok miod@
2014-10-15Clear protocol options before optionally setting them.jsing1-1/+6
2014-10-15Set SSL_OP_SINGLE_ECDH_USE before calling SSL_CTX_set_tmp_ecdh() - thisjsing1-2/+2
avoids generating an EC key pair that will never be used.
2014-10-15Only require an EC public key in tls1_set_ec_id(), if we need to providejsing2-8/+8
a compression identifier. In the case of a server using ephemeral EC keys, the supplied key is unlikely to have a public key where SSL_CTX_set_tmp_ecdh() is called after SSL_OP_SINGLE_ECDH_USE has been set. This makes ECDHE ciphers work again for this use case.
2014-10-15Add cipher aliases for DHE (the correct name for EDH) and ECDHE (thejsing4-8/+32
correct name for EECDH). The EDH and EECDH aliases remain for backwards compatibility.
2014-10-14seems like a good time to make the ressl default TLSv1 only.tedu2-6/+5
ok guenther
2014-10-14Bump libressl version string to 2.1.bcook2-4/+4
This makes 'openssl version' print a string that matches the -portable release number. Thanks to @blakkeim for pointing it out. The version integer is left alone, with the idea of discouraging software from relying on magic numbers for detecting features. Software configuration should do explicit feature tests instead. ok beck@, deraadt@
2014-10-13remove unused variablechl1-3/+1
ok tedu@
2014-10-13Remove _XOPEN_SOURCE_EXTENDED since we're not too concerned aboutjsing1-9/+2
gethostname being declared properly on Compaq platforms that use DEC C...
2014-10-13BIO_free() and SSL_CTX_free() have explicit NULL checks, so there is nojsing1-29/+16
need to have additional checks here.
2014-10-13Add NPN regress tests from OpenSSL. However, unlike OpenSSL, actually exitjsing2-3/+146
with a failure if the NPN verification fails.
2014-10-13The return value on success of fcntl(F_SETFL) is not actually specified,bcook2-6/+6
only that it returns -1 on failure. pointed out by guenther@
2014-10-13prefer C99 array initialization syntax.bcook5-10/+10
use C99 array initialization syntax for strict C compilers. from kinichiro, found building with HP/UX compiler ok deraadt@, guenther@
2014-10-13Use O_NONBLOCK over FIONBIO.bcook4-15/+23
Prefer this because it is the POSIX standard and has consistent behavior across platforms. Use BIO_socket_nbio consistently across the tree. from Jonas 'Sortie' Termansen, ok deraadt@
2014-10-12Remove useless comments in DES_is_weak_key(). Do we really care that thismiod2-28/+20
function was found broken in 1993, and later on in 1997?
2014-10-12Paranoia: in ASN1_mbstring_ncopy(), check for len < 0 instead of len == -1,miod2-4/+4
in order to catch all negative sizes.
2014-10-12Convert libssl manpages from pod to mdoc(7).bentley249-7737/+19938
libcrypto has not been started yet. ok schwarze@ miod@
2014-10-11include header needed by older linux kernelsbcook2-2/+4
not all versions of <linux/random.h> include <linux/types.h> by default
2014-10-11Since deraadt@ remembers seeing strdup() on one particular 4.2BSD machine,schwarze1-4/+11
i looked a bit closer and found instances before Reno, so correct HISTORY. References: http://minnie.tuhs.org/cgi-bin/utree.pl?file=4.1cBSD/usr/src/ucb/dbx/defs.h http://minnie.tuhs.org/cgi-bin/utree.pl?file=4.3BSD/usr/src/etc/inetd.c http://minnie.tuhs.org/cgi-bin/utree.pl?file=4.3BSD-Reno/src/lib/libc/string/strdup.c ok deraadt@
2014-10-11Userland reallocarray() audit.doug1-3/+3
Avoid potential integer overflow in the size argument of malloc() and realloc() by using reallocarray() to avoid unchecked multiplication. ok deraadt@
2014-10-11Userland reallocarray() audit.doug1-3/+3
Avoid potential integer overflow in the size argument of malloc() and realloc() by using reallocarray() to avoid unchecked multiplication. ok deraadt@
2014-10-10replace select with equiv poll usage.dlg1-17/+12
looks good deraadt@ tweaks and ok millert@
2014-10-09add an API version number. ok jsingtedu1-1/+3
2014-10-08historytedu1-4/+10
2014-10-08use preferred license form. can't trust that doug guy with anything...tedu1-20/+11
2014-10-08mlinks, and prune some functions from man page i'm not ready for yet.tedu2-14/+33
2014-10-08more bettertedu1-3/+6
2014-10-08reluctantly rename man page after a functiontedu1-1/+1
2014-10-08whack a few stray .Pp macrosschwarze1-4/+1
2014-10-08add a few more functions.tedu1-5/+17
(I also forgot to credit doug for much of the initial markup in the previous commit.)