summaryrefslogtreecommitdiff
path: root/src/regress/lib (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Add some extra sanity checks to make sure the test functions actuallymatthew2014-07-091-1/+13
| | | | run on altstack.
* Minor cleanupsmatthew2014-07-091-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() bugmatthew2014-07-091-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.bcook2014-07-091-2/+13
| | | | ok jsing@
* check if we were previously on a signal stack before restoring.bcook2014-07-091-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.jsing2014-07-092-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.bcook2014-07-091-2/+2
| | | | ok beck@ jsing@
* remove use of internally-deprecated OPENSSL_malloc/freebcook2014-07-081-3/+2
| | | | ok jsing@
* Include -DLIBRESSL_INTERNAL in regress makefiles.jsing2014-07-0839-78/+78
| | | | ok miod@
* string.h is the correct file, not strings.hbcook2014-07-081-2/+2
| | | | ok beck@ jsing@
* Enter the REGRESS_FULL target subdirs for clean, cleandir and obj targets.miod2014-07-032-4/+4
|
* Add an initial regress test for pkcs7.jsing2014-07-023-1/+300
| | | | This currently fails when signing/verifying with a detached signature.
* Extend the chacha regress to cover the ChaCha interface, in addition to thejsing2014-06-241-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().jsing2014-06-221-2/+70
|
* Add a skeleton regress for crypto/bio, which currently only coversjsing2014-06-223-1/+94
| | | | | BIO_get_port() and fails since the current code believes that "-1" is a valid port.
* Hook in the aead regress.jsing2014-06-221-1/+2
|
* matthew reminds me to update regress to reflect current spectedu2014-06-211-10/+3
|
* Add DTLS support to ssltest and wire up some regress tests.jsing2014-06-212-8/+41
| | | | ok miod@
* Simple regress test for the amd64 bn_mul_mont bug found by Joyentmiod2014-06-203-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 formiod2014-06-203-7/+15
| | | | it getting siblings.
* Always call atexit handlers as if they were registered with __cxa_atexit.kettenis2014-06-181-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 reinitializedmatthew2014-06-183-2/+181
| | | | correctly in fork children.
* Remove support for the `opaque PRF input' extension, which draft has expiredmiod2014-06-131-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().matthew2014-06-131-5/+1
| | | | ok deraadt, jmc, tedu
* Add regress tests for timingsafe_bcmp and timingsafe_memcmp.matthew2014-06-133-2/+86
| | | | | timingsafe_memcmp tests are disabled for now, pending its addition to libc.
* Add regress test for explicit_bzero.matthew2014-06-123-2/+145
|
* Add basic regression test for modf() issue.tobiasu2014-06-073-2/+40
| | | | encouraged by deraadt and miod
* Build with WARNINGS=Yes and Werror.miod2014-06-012-12/+4
|
* Build these tests with WARNINGS=Yes and -Werror, and do the necessarymiod2014-06-0140-65/+143
| | | | fixes to keep building.
* Move the cts128 and gcm128 tests to regress.jsing2014-05-315-6/+530
|
* KNF and other cleanup.jsing2014-05-312-266/+295
|
* Move sha256 and sha512 tests to regress and wire them up.jsing2014-05-305-1/+348
|
* Move the AES wrap test code into regress.jsing2014-05-302-6/+182
|
* Update the aead regress to work with the improved EVP AEAD API.jsing2014-05-261-22/+14
|
* Add the RFC 7027 test vectors; from OpenSSL HEADmiod2014-05-241-0/+171
|
* Move ssltest.c to a regress test.jsing2014-05-247-0/+2541
|
* remove OPENSSL_malloc and CRYPTO_malloc goo from the regress tests.beck2014-05-246-77/+22
| | | | ok miod@ jsing@ guenther@
* make this compile again - actually include stdio and friends ourselves.beck2014-05-241-1/+3
|
* Move the regress tests that are in lib/libssl to usr.sbin/openssl,jsing2014-05-248-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 theguenther2014-05-222-2/+6
| | | | | public header to the internal. Make some variables unsigned to eliminate some warnings
* Use errc/warnc to simplify code.guenther2014-05-201-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()guenther2014-05-191-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}()guenther2014-05-183-2/+317
|
* Include openssl/evp.h for OPENSSL_add_all_algorithms_noconf().jsing2014-05-161-0/+1
| | | | From Brent Cook.
* Fix various issues that result in compiler warnings.jsing2014-05-161-13/+14
| | | | Prompted by a diff from Brent Cook.
* Get pqueue.h from the libssl sources rather than relying upon it beingmiod2014-05-152-2/+4
| | | | installed.
* Add additional chacha20-poly1305 test vectors.jsing2014-05-152-10/+620
| | | | Thanks to Piotr Sikora for providing a reference to the source.
* Add chacha20-poly1305 test vector to regress.jsing2014-05-152-5/+24
|
* KNF.jsing2014-05-152-47/+50
|
* Add a regress test for AEAD, based on Adam Langley's code.jsing2014-05-153-0/+413
|