summaryrefslogtreecommitdiff
path: root/regress/lib
AgeCommit message (Collapse)Author
2016-09-01Tighten up the siginfo checkPhilip Guenther
2016-09-01delete wrong cvs $ tagsTheo de Raadt
2016-08-27Enable ALPN regress now that it passes.Joel Sing
2016-08-27Pull in <stdio.h> for NULLPhilip Guenther
ok deraadt@
2016-08-14Convert quad_t to long longPhilip Guenther
2016-08-09When interrupted, connect() should leave the socket connecting in thePhilip Guenther
background, similar to a non-blocking socket. Return EALREADY whenever already connecting, not just for non-blocking sockets. Fix from {Free,Net}BSD Prompted by a report from Michael Reed (m.reed (at) mykolab.com) ok millert@
2016-07-13Fix usage() output and getopt sortingPhilip Guenther
2016-07-07add ca cert error check and make the path configurableBrent Cook
from Kinichiro Inoguchi
2016-07-05remove extra assignment of s from 1.11, fix regression testBrent Cook
2016-07-05On systems where we do not have BN_ULLONG defined (most 64-bit systems),Brent Cook
BN_mod_word() can return incorrect results if the supplied modulus is too big, so we need to fall back to BN_div_word. Now that BN_mod_word may fail, handle errors properly update the man page. Thanks to Brian Smith for pointing out these fixes from BoringSSL: https://boringssl.googlesource.com/boringssl/+/67cb49d045f04973ddba0f92fe8a8ad483c7da89 https://boringssl.googlesource.com/boringssl/+/44bedc348d9491e63c7ed1438db100a4b8a830be ok beck@
2016-07-05make less awful.. test against cloudflare tooBob Beck
2016-07-04Add a nasty little ocsp regress test in the hope pedants will make it better.Bob Beck
2016-06-30Remove flags for disabling constant-time operations.Brent Cook
This removes support for DSA_FLAG_NO_EXP_CONSTTIME, DH_FLAG_NO_EXP_CONSTTIME, and RSA_FLAG_NO_CONSTTIME flags, making all of these operations unconditionally constant-time. Based on the original patch by César Pereid. ok beck@
2016-06-01Add detailed error messages and restructure to make the individualIngo Schwarze
test functions shorter and easier to understand. The total number of lines remains unchanged.
2016-06-01Test history_get() return value;Ingo Schwarze
from Bastian Maerkisch <bmaerkisch at web dot de>.
2016-05-31The argument of remove_history() only counts existing entries,Ingo Schwarze
not those that were previously deleted.
2016-05-31Style unification and whitespace cleanup, in part suggested byIngo Schwarze
Christian Heckendorf. No functional change.
2016-05-30Gix misleading indent pointed out by GCC 6.1.Brent Cook
ok beck@ jsing@
2016-05-29Nuke sigret.cBob Beck
ok deraadt@ kettenis@
2016-05-29We don't have sigreturn anymoreBob Beck
2016-05-26tests for the two segfaults in backref() that were just fixedIngo Schwarze
2016-05-26Fix an oversight that caused the test program to segfault:Ingo Schwarze
Don't try to calculate strlen(NULL).
2016-05-26systematically test all combinations of REG_STARTEND, REG_NEWLINE,Ingo Schwarze
and REG_NOTBOL with line and word anchors
2016-05-26support for testing REG_STARTEND together with REG_NOTBOLIngo Schwarze
2016-05-25deal with the el_errno -> read_errno cleanup, read.c rev. 1.43Ingo Schwarze
2016-05-22cope with simplified chared/read interfaceIngo Schwarze
2016-05-10Enable the readline(3) regression test provided by Bastian Maerkisch,Ingo Schwarze
all bugs tested so far have been fixed.
2016-05-10adapt to recently changed internal interface of read_getcmd()Ingo Schwarze
2016-05-10In a signal handler use snprintf()+local buffer instead of asprintf+freePhilip Guenther
2016-05-10Test that various calls can be interrupted in a non-threaded process,Philip Guenther
then dlopen() libpthread and do that again in a second thread, and then verify that they're all correctly acting as cancellation points.
2016-05-06A few regression tests for libedit readline(3) compat code.Ingo Schwarze
Not linked to the build for now because these tests still fail for our libedit and because readline compat is not enabled in our build. Test suite written by Bastian Maerkisch <bmaerkisch@web.de>. KNF and some minor tweaks by me.
2016-04-28Update regress test to reflect changes in the cipher list.Joel Sing
2016-04-28Update AEAD regress to match EVP_aead_chacha20_poly1305() changes.Joel Sing
2016-04-13After opening an AEAD, ensure that the decrypted output matches theJoel Sing
plaintext for the regress test case.
2016-04-11cope with the deletion of Char, use wchar_tIngo Schwarze
2016-04-11drop -DWIDECHAR, it's no longer neededIngo Schwarze
2016-03-22initialize el_state.metanext before testing read_getcmd()Ingo Schwarze
2016-03-20Fix the CHARSET_IS_UTF8 case in read_char().Ingo Schwarze
For now, this mainly help programs explicitly using wide-character functions like el_wgetc(3) and el_wgets(3). 1. After reading an invalid byte sequence, do not throw away additional valid bytes; fix by me using mbrtowc(3), obsoleting utf8_islead(). 2. When read(2) returns EOF, return that information to the caller, do not prod on and potentially access garbage data in the buffer; from Linas Vepstas via NetBSD read.c rev. 1.70 2013/05/27. 3. After read__fixio() failure, restore errno to the one set by read(); from Steffen Nurpmeso via NetBSD read.c rev. 1.68 2012/09/10. 4. After read__fixio() success, restore errno to the initial state upon function entry; fix by me. OK czarkoff@. Also committed to NetBSD.
2016-03-20Currently we have about a 50/50 split over fcntl(n, F_GETFL [,0])Kenneth R Westerback
idioms. Adopt the more concise fcntl(n, F_GETFL) over fcntl(n, F_GETFL, 0) where it is obvious further investigation will not yield and even better way. Obviousness evaluation and ok guenther@
2016-03-17Last parameter to execl[e]() functions *must* be cast to a pointer.Kenneth R Westerback
Just NULL is not good practise as NULL is theoretically allowed to be an integer rather than a pointer. Use (char *)NULL consistently instead of scattering a few (char *)0 and (void *)NULL into the mix. Prompted by and probably ok deraadt@ millert@ kettenis@ Definitely ok mestre@ ratchov@
2016-03-13check return value for BN_hex2bn in regression testsBrent Cook
2016-03-01After the bugfix in libedit/chared.c rev. 1.17,Ingo Schwarze
chared unit tests now work, so enable them.
2016-03-01Enter libedit directory by default.Ingo Schwarze
A few tests are enabled and work, so this starts being useful.
2016-03-01More unit tests for libedit.Ingo Schwarze
Those that still fail are commented out in the Makefiles for now; i have patches for them.
2016-02-26Add a test for negated POSIX characer classes.Todd C. Miller
2016-02-11Test the C/POSIX locale too, in addition to UTF-8.Ingo Schwarze
2016-02-11Slowly start a unit test suite for libedit; Christos is right thatIngo Schwarze
fiddling with the internals of that code is dangerous without it. Intentionally not linked to the build yet, because many of the tests still fail: The related bugfixes are too intrusive right now and will go in after unlock.
2016-01-27Properly initialize sin_family.Jeremie Courreges-Anglas
2015-12-28initialize pointer to avoid undefined free on failureBrent Cook
ok beck@
2015-11-19hint: compile before commitTheo de Raadt