Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Add some extra sanity checks to make sure the test functions actually | matthew | 2014-07-09 | 1 | -1/+13 | |
| | | | | run on altstack. | |||||
* | Minor cleanups | matthew | 2014-07-09 | 1 | -5/+12 | |
| | | | | | | | | | | | | | Rename _waitpid() to safewaitpid() to avoid POSIX reserved identifier namespace. KNF nit: return value expressions should be surrounded by parentheses, per style(9). Ensure SIGCHLD is set to SIG_DFL, not SIG_IGN. POSIX allows (and requires under XSI) that terminated child processes not leave zombies if SIGCHLD is set to SIG_IGN, and it also allows execve() to leave SIGCHLD set to SIG_IGN. | |||||
* | Better workaround for OS X sigaltstack() bug | matthew | 2014-07-09 | 1 | -15/+20 | |
| | | | | | | | OS X's sigaltstack() fails with ENOMEM if ss_size < MINSIGSTKSZ even if SS_DISABLE is specified in ss_flags. Rather than add code to try to cope with this stupidity, just don't bother restoring the original signal stack. | |||||
* | check for EINTR when calling waitpid. | bcook | 2014-07-09 | 1 | -2/+13 | |
| | | | | ok jsing@ | |||||
* | check if we were previously on a signal stack before restoring. | bcook | 2014-07-09 | 1 | -2/+3 | |
| | | | | | | | | OS X fails to restore the old signal stack because the signal stack is not enabled by default. This causes sigaltstack(2) to fail with ENOMEM as ss_size is 0, < MINSIGSTCKSZ. ok jsing@ | |||||
* | Rewrite gcm128test as a table-driven regress instead of using defines. | jsing | 2014-07-09 | 2 | -293/+852 | |
| | | | | | | This avoids compiler warnings for always true/false conditionals and makes the code readable. Also avoid pulling in modes_lcl.h, which should not be used outside the library. | |||||
* | format string should be a string literal. | bcook | 2014-07-09 | 1 | -2/+2 | |
| | | | | ok beck@ jsing@ | |||||
* | remove use of internally-deprecated OPENSSL_malloc/free | bcook | 2014-07-08 | 1 | -3/+2 | |
| | | | | ok jsing@ | |||||
* | Include -DLIBRESSL_INTERNAL in regress makefiles. | jsing | 2014-07-08 | 39 | -78/+78 | |
| | | | | ok miod@ | |||||
* | string.h is the correct file, not strings.h | bcook | 2014-07-08 | 1 | -2/+2 | |
| | | | | ok beck@ jsing@ | |||||
* | Enter the REGRESS_FULL target subdirs for clean, cleandir and obj targets. | miod | 2014-07-03 | 2 | -4/+4 | |
| | ||||||
* | Add an initial regress test for pkcs7. | jsing | 2014-07-02 | 3 | -1/+300 | |
| | | | | This currently fails when signing/verifying with a detached signature. | |||||
* | Extend the chacha regress to cover the ChaCha interface, in addition to the | jsing | 2014-06-24 | 1 | -22/+99 | |
| | | | | | | | single-shot CRYPTO_chacha_20() interface (the ChaCha interface was already tested via the EVP regress, but not extensively). The additional ChaCha tests include single-shot writes, along with partial/single-byte writes that currently fail due to a bug in the underlying implementation. | |||||
* | Add regress tests for BIO_get_host_ip(). | jsing | 2014-06-22 | 1 | -2/+70 | |
| | ||||||
* | Add a skeleton regress for crypto/bio, which currently only covers | jsing | 2014-06-22 | 3 | -1/+94 | |
| | | | | | BIO_get_port() and fails since the current code believes that "-1" is a valid port. | |||||
* | Hook in the aead regress. | jsing | 2014-06-22 | 1 | -1/+2 | |
| | ||||||
* | matthew reminds me to update regress to reflect current spec | tedu | 2014-06-21 | 1 | -10/+3 | |
| | ||||||
* | Add DTLS support to ssltest and wire up some regress tests. | jsing | 2014-06-21 | 2 | -8/+41 | |
| | | | | ok miod@ | |||||
* | Simple regress test for the amd64 bn_mul_mont bug found by Joyent | miod | 2014-06-20 | 3 | -2/+86 | |
| | | | | | ( https://github.com/joyent/node/issues/7704 ), about to be fixed in libcrypto. | |||||
* | Move the crypto/bn regression test one directory deeper in preparation for | miod | 2014-06-20 | 3 | -7/+15 | |
| | | | | it getting siblings. | |||||
* | Always call atexit handlers as if they were registered with __cxa_atexit. | kettenis | 2014-06-18 | 1 | -5/+5 | |
| | | | | | | | | | | | The extra argument doesn't hurt genuine atexit handlers and this fixes a bug where we didn't provide the argument (effectively passing garbage) for functions registered with __cxa_atexit in the main executable. Pointed out by Dmitriy Ivanov <dimitry@google.com> and Elliott Hughes <enh@google.com>. ok matthew@ | |||||
* | Add regress tests to make sure arc4random(3) is reinitialized | matthew | 2014-06-18 | 3 | -2/+181 | |
| | | | | correctly in fork children. | |||||
* | Remove support for the `opaque PRF input' extension, which draft has expired | miod | 2014-06-13 | 1 | -32/+0 | |
| | | | | | | | | 7 years ago and never made it into an RFC. That code wasn't compiled in anyway unless one would define the actual on-the-wire extension id bytes; crank libssl major. With help and enlightenment from Brendan MacDonell. | |||||
* | Add timingsafe_memcmp(). | matthew | 2014-06-13 | 1 | -5/+1 | |
| | | | | ok deraadt, jmc, tedu | |||||
* | Add regress tests for timingsafe_bcmp and timingsafe_memcmp. | matthew | 2014-06-13 | 3 | -2/+86 | |
| | | | | | timingsafe_memcmp tests are disabled for now, pending its addition to libc. | |||||
* | Add regress test for explicit_bzero. | matthew | 2014-06-12 | 3 | -2/+145 | |
| | ||||||
* | Add basic regression test for modf() issue. | tobiasu | 2014-06-07 | 3 | -2/+40 | |
| | | | | encouraged by deraadt and miod | |||||
* | Build with WARNINGS=Yes and Werror. | miod | 2014-06-01 | 2 | -12/+4 | |
| | ||||||
* | Build these tests with WARNINGS=Yes and -Werror, and do the necessary | miod | 2014-06-01 | 40 | -65/+143 | |
| | | | | fixes to keep building. | |||||
* | Move the cts128 and gcm128 tests to regress. | jsing | 2014-05-31 | 5 | -6/+530 | |
| | ||||||
* | KNF and other cleanup. | jsing | 2014-05-31 | 2 | -266/+295 | |
| | ||||||
* | Move sha256 and sha512 tests to regress and wire them up. | jsing | 2014-05-30 | 5 | -1/+348 | |
| | ||||||
* | Move the AES wrap test code into regress. | jsing | 2014-05-30 | 2 | -6/+182 | |
| | ||||||
* | Update the aead regress to work with the improved EVP AEAD API. | jsing | 2014-05-26 | 1 | -22/+14 | |
| | ||||||
* | Add the RFC 7027 test vectors; from OpenSSL HEAD | miod | 2014-05-24 | 1 | -0/+171 | |
| | ||||||
* | Move ssltest.c to a regress test. | jsing | 2014-05-24 | 7 | -0/+2541 | |
| | ||||||
* | remove OPENSSL_malloc and CRYPTO_malloc goo from the regress tests. | beck | 2014-05-24 | 6 | -77/+22 | |
| | | | | ok miod@ jsing@ guenther@ | |||||
* | make this compile again - actually include stdio and friends ourselves. | beck | 2014-05-24 | 1 | -1/+3 | |
| | ||||||
* | Move the regress tests that are in lib/libssl to usr.sbin/openssl, | jsing | 2014-05-24 | 8 | -245/+0 | |
| | | | | | | | since they are really testing openssl(1) (although this also tests libcrypto and libssl), rather than actual parts of the libssl library. Discussed with miod@ | |||||
* | Make this build cleanly even with UTF8_{putc,getc} moved from the | guenther | 2014-05-22 | 2 | -2/+6 | |
| | | | | | public header to the internal. Make some variables unsigned to eliminate some warnings | |||||
* | Use errc/warnc to simplify code. | guenther | 2014-05-20 | 1 | -7/+7 | |
| | | | | | | Also, in 'ftp', always put the error message last, after the hostname/ipaddr. ok jsing@ krw@ millert@ | |||||
* | Enable the 3- and 4-byte sequence tests for UTF8_getc() | guenther | 2014-05-19 | 1 | -9/+18 | |
| | | | | | Add surrogate and out-of-range tests for UTF8_putc() on the assumption we'll make it return -2. Maybe. | |||||
* | Add regression test for UTF8_{getc,putc}() | guenther | 2014-05-18 | 3 | -2/+317 | |
| | ||||||
* | Include openssl/evp.h for OPENSSL_add_all_algorithms_noconf(). | jsing | 2014-05-16 | 1 | -0/+1 | |
| | | | | From Brent Cook. | |||||
* | Fix various issues that result in compiler warnings. | jsing | 2014-05-16 | 1 | -13/+14 | |
| | | | | Prompted by a diff from Brent Cook. | |||||
* | Get pqueue.h from the libssl sources rather than relying upon it being | miod | 2014-05-15 | 2 | -2/+4 | |
| | | | | installed. | |||||
* | Add additional chacha20-poly1305 test vectors. | jsing | 2014-05-15 | 2 | -10/+620 | |
| | | | | Thanks to Piotr Sikora for providing a reference to the source. | |||||
* | Add chacha20-poly1305 test vector to regress. | jsing | 2014-05-15 | 2 | -5/+24 | |
| | ||||||
* | KNF. | jsing | 2014-05-15 | 2 | -47/+50 | |
| | ||||||
* | Add a regress test for AEAD, based on Adam Langley's code. | jsing | 2014-05-15 | 3 | -0/+413 | |
| |