summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2015-10-10Code points U+10000 to U+fffff are valid, too.Ingo Schwarze
Fixing a regression in wcrtomb(3) found with the mandoc testsuite that was caused by the last commit. OK semarie@ bentley@
2015-10-09do not use weak; plus this dies next weekTheo de Raadt
2015-10-09oops, typo spotted in temporary .c file, by semarieTheo de Raadt
2015-10-09fix a gotcha in the connect refactoring, that could result in droppingTheo de Raadt
through and trying to bind failed v6 connects. ok guenther
2015-10-09tame -> pledge conversion, in libc. I should crank libc, but am cheatingTheo de Raadt
hoping things go well. The old symbol is faked via a stupid stub function, until next major crank when it can be removed. I am expecting guenther to scream at me.
2015-10-08If getaddrinfo() succeeds, then don't try look ups with other flags, evenPhilip Guenther
if the connect()s failed. In concert with some resolver fixes in libc, this lets ntpd be tame()ed problem isolated by theo, who had fun untangling the libc and libtls behaviors to place blame for not being able to tame ntpd ok beck@ deraadt@ jsing@
2015-10-08fix conditionalsEric Faurot
ok deraadt@
2015-10-08Handle case where no hint is passed in. Found as a crash of fdm by jturner@Theo de Raadt
2015-10-08trailing whitespace;Jason McIntyre
2015-10-08Rip the guts out of another gibbering horror of a time comparison function, andBob Beck
mark it as #ifndef LIBRESSL_INTERNAL at least we don't use this. ok jsing@
2015-10-08revert previous accidental commitBob Beck
2015-10-08Spelling in commentBob Beck
2015-10-07Add tls_peer_cert_notbefore and tls_peer_cert_notafter to expose peer ↵Bob Beck
certificate validity times for tls connections. ok jsing@
2015-10-07Allow us to get cipher and version even if there is not a peer certificate.Bob Beck
ok doug@
2015-10-07Be explicit that the user is responsible for freeing the line bufferTodd C. Miller
and show this in the example.
2015-10-07getaddrinfo_async() shouldn't unconditionally intialize the resolverTheo de Raadt
via _asr_use_resolver(). If the hint specifies for AI_NUMERICHOST, create a transient lookup context which won't try to open /etc/reslov.conf ok eric guenther
2015-10-07getaddrinfo() should not res_init() unconditionally, but allow lowerTheo de Raadt
layers to decide. The request could be AI_NUMERICHOST. [And the process could be tame()-constrained to not open /etc/resolv.conf] ok eric guenther
2015-10-07include <sys/time.h> for gettimeofday(2)Brent Cook
2015-10-06Don't burden keycrunch_{md5,sha1,rmd160}() with identical code to prepare aTim van der Molen
buffer based on whether they are called by keycrunch() or f(). Instead let keycrunch() and f() take care of this themselves. OK millert@
2015-10-06prefer limits.h over sys/limits.hBrent Cook
ok deraadt@
2015-10-05Fix missing checks for truncation of long file names. Rather thanAlexandre Ratchov
checking for truncation every time we touch the string, simply allocate a memory chunk large enough to store the full path.
2015-10-05Make sure dot is not set after tz - fixes incorrect handling, which allowsJoel Sing
20151005171301+1.09Z to be treated as a valid time. ok beck@
2015-10-05Wrap <resolv.h> so that internal calls go directPhilip Guenther
ok millert@
2015-10-05user land -> userland; from Rob PierceTheo de Raadt
2015-10-04mention sendto(2) destination address restriction for "rw"Damien Miller
subset; ok deraadt, feedback & ok jmc
2015-10-04Apply some style(9), tweak a few things for readability and add someJoel Sing
additional bounds checks. ok beck@
2015-10-04Clarify a point. Adjust punctuation after discussion w/ jmc@Philip Guenther
2015-10-04Wrap <search.h> to make all the symbols there weakPhilip Guenther
2015-10-04Wrap <spawn.h> to make all the symbols there weakPhilip Guenther
2015-10-04wrap __ivaliduser_sa() so the internal call is direct (at least until wePhilip Guenther
stop exporting it)
2015-10-04wrap _fwalk() so internal calls are direct (at least until we stopPhilip Guenther
exporting it)
2015-10-04recv() and send() aren't overriden by libpthread (vs recvfrom() and sendto()!)Philip Guenther
so wrap them to make internal calls go direct
2015-10-04getpeereid() and sockatmark() are neither used in libc nor in ISO C, so markPhilip Guenther
them deprecated and weak
2015-10-04__fdnlist() is exported for libkvm, but the internal call can go directPhilip Guenther
2015-10-04__xdrrec_getrec is in the reserved namespace, so it doesn't need to be weakPhilip Guenther
2015-10-04Delete an inexplicable commentPhilip Guenther
2015-10-03Initially eric developers asr as a side-load style library for async DNS.Theo de Raadt
When it was integrated as the main resolver, a bunch of strange initialization code remained. Start whittling away at this, piece by piece, to make it more clear. ok eric
2015-10-03missing asr* -> _asr* symbol rename for building with debug codeEric Faurot
ok jca@
2015-10-03SSL_new(): fix ref counting and memory leak in error path.Doug Hogan
Rather than a half-hearted attempt to free up resources and fix ref counting at the SSL_CTX level, let SSL_free() do its job. This diff got lost in the shuffle somewhere. It's from last year. Ref counting error reported by Parakleta in github ticket #51. Thanks! ok jsing@, beck@
2015-10-02make a && && & block more readable. no binary change.Theo de Raadt
discussed with otto
2015-10-02Flense the greasy black guts of unreadble string parsing code out of three areasBob Beck
in asn1 and x509 code, all dealing with an ASN1_TIME. This brings the parsing together in one function that converts into a struct tm. While we are at it this also brings us into conformance with RFC 5280 for times allowed in an X509 cert, as OpenSSL is very liberal with what it allows. input and fixes from deraadt@ jsing@ guethther@ and others. ok krw@, guenther@, jsing@
2015-10-02s/ssl3_client_kex/ssl3_send_client_kex/ for consistency with the caller.Joel Sing
2015-10-02use macros for cookie path and temp file template insteadAlexandre Ratchov
of hardcoded strings. no object change.
2015-10-02Validate that midi and audio device numbers are integers.Alexandre Ratchov
2015-10-02As device path is known, use its size instead of PATH_MAXAlexandre Ratchov
2015-10-02Use macros for audio and midi device paths rather than hardcodedAlexandre Ratchov
strings. No object change.
2015-10-02As the socket path is known, use its size rather that PATH_MAX.Alexandre Ratchov
2015-10-02fix typo in debug messageAlexandre Ratchov
2015-10-02use macros instead of hard-coded strings for unix sockets pathsAlexandre Ratchov
2015-10-02fix spacingAlexandre Ratchov