summaryrefslogtreecommitdiff
path: root/test/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Move Makefiles to Makefile.inRich Salz2016-01-121-798/+0
| | | | | | | | | | Create Makefile's from Makefile.in Rename Makefile.org to Makefile.in Rename Makefiles to Makefile.in Address review feedback from Viktor and Richard Reviewed-by: Viktor Dukhovni <viktor@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
* make updateRichard Levitte2016-01-121-164/+201
| | | | Reviewed-by: Rich Salz <rsalz@openssl.org>
* mem functions cleanupRich Salz2016-01-071-11/+25
| | | | | | | | | | | | | | | | | Only two macros CRYPTO_MDEBUG and CRYPTO_MDEBUG_ABORT to control this. If CRYPTO_MDEBUG is not set, #ifdef out the whole debug machinery. (Thanks to Jakob Bohm for the suggestion!) Make the "change wrapper functions" be the only paradigm. Wrote documentation! Format the 'set func' functions so their paramlists are legible. Format some multi-line comments. Remove ability to get/set the "memory debug" functions at runtme. Remove MemCheck_* and CRYPTO_malloc_debug_init macros. Add CRYPTO_mem_debug(int flag) function. Add test/memleaktest. Rename CRYPTO_malloc_init to OPENSSL_malloc_init; remove needless calls. Reviewed-by: Richard Levitte <levitte@openssl.org>
* DANE support for X509_verify_cert()Viktor Dukhovni2016-01-071-3/+24
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org>
* make a "missed make update" updateRich Salz2015-12-281-1/+1
| | | | Reviewed-by: Tim Hudson <tjh@openssl.org>
* make updateDr. Stephen Henson2015-12-091-28/+13
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org>
* Fix ASYNC null implementationMatt Caswell2015-11-201-0/+16
| | | | | | | The ASYNC null implementation has not kept pace with the rest of the async development and so was failing to compile. Reviewed-by: Rich Salz <rsalz@openssl.org>
* Add ASYNC testsMatt Caswell2015-11-201-3/+7
| | | | | | Add a suite of tests for the ASYNC_* functions Reviewed-by: Rich Salz <rsalz@openssl.org>
* Make libssl async awareMatt Caswell2015-11-201-25/+26
| | | | | | | | | | | | | | | | The following entry points have been made async aware: SSL_accept SSL_read SSL_write Also added is a new mode - SSL_MODE_ASYNC. Calling the above functions with the async mode enabled will initiate a new async job. If an async pause is encountered whilst executing the job (such as for example if using SHA1/RSA with the Dummy Async engine), then the above functions return with SSL_WANT_ASYNC. Calling the functions again (with exactly the same args as per non-blocking IO), will resume the job where it left off. Reviewed-by: Rich Salz <rsalz@openssl.org>
* Reorganise state machine filesMatt Caswell2015-10-301-2/+3
| | | | | | | | | | Pull out the state machine into a separate sub directory. Also moved some functions which were nothing to do with the state machine but were in state machine files. Pulled all the SSL_METHOD definitions into one place...most of those files had very little left in them any more. Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
* Improve make depend.Ben Laurie2015-10-241-2/+4
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org>
* Fix undeclared variable warnings.Ben Laurie2015-10-241-4/+2
| | | | Reviewed-by: Kurt Roeckx <kurt@openssl.org>
* Make update / libeay.num fixRich Salz2015-09-301-2/+15
| | | | | | | | | | | | Looks like someone forgot to do a "make update" since crypto/ts/Makefile keeps changing. So include that. Second is that the declare_dh_bn macro fools the libeay.num script. The declarations are only needed in one file (dh_rfc5114) so remove them from the header and put the "raw" declarations directly into that file. Reviewed-by: Richard Levitte <levitte@openssl.org>
* Fix no-stdio buildDavid Woodhouse2015-09-291-15/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Much related/similar work also done by Ivan Nestlerode <ivan.nestlerode@sonos.com> +Replace FILE BIO's with dummy ops that fail. +Include <stdio.h> for sscanf() even with no-stdio (since the declaration is there). We rely on sscanf() to parse the OPENSSL_ia32cap environment variable, since it can be larger than a 'long'. And we don't rely on the availability of strtoull(). +Remove OPENSSL_stderr(); not used. +Make OPENSSL_showfatal() do nothing (currently without stdio there's nothing we can do). +Remove file-based functionality from ssl/. The function prototypes were already gone, but not the functions themselves. +Remove unviable conf functionality via SYS_UEFI +Add fallback definition of BUFSIZ. +Remove functions taking FILE * from header files. +Add missing DECLARE_PEM_write_fp_const +Disable X509_LOOKUP_hash_dir(). X509_LOOKUP_file() was already compiled out, so remove its prototype. +Use OPENSSL_showfatal() in CRYPTO_destroy_dynlockid(). +Eliminate SRP_VBASE_init() and supporting functions. Users will need to build the verifier manually instead. +Eliminate compiler warning for unused do_pk8pkey_fp(). +Disable TEST_ENG_OPENSSL_PKEY. +Disable GOST engine as is uses [f]printf all over the place. +Eliminate compiler warning for unused send_fp_chars(). Signed-off-by: Rich Salz <rsalz@akamai.com> Reviewed-by: Tim Hudson <tjh@openssl.org>
* make updateMatt Caswell2015-09-161-2/+4
| | | | Reviewed-by: Rich Salz <rsalz@openssl.org>
* Add a method to list available testsRichard Levitte2015-09-151-0/+2
| | | | Reviewed-by: Emilia Käsper <emilia@openssl.org>
* Enable -Wmissing-variable-declarations andBen Laurie2015-09-111-4/+2
| | | | | | | -Wincompatible-pointer-types-discards-qualifiers (the latter did not require any code changes). Reviewed-by: Rich Salz <rsalz@openssl.org>
* Have 'make clean' clean away the log files.Richard Levitte2015-09-071-1/+1
| | | | Reviewed-by: Rich Salz <rsalz@openssl.org>
* Remove test targets from Makefile, have it use run_tests.plRichard Levitte2015-09-071-313/+6
| | | | | | | Also remove recipes/00-check_testalltests.t, since it will lack the information from the now gone alltests target. Reviewed-by: Rich Salz <rsalz@openssl.org>
* Make the verify_extra test location agnosticRichard Levitte2015-09-061-1/+2
| | | | | | | | Depending on platform, verify_extra_test may fail because it relies on test/ being the current working directory. Make it get all the required files on the command line instead to solve that issue. Reviewed-by: Tim Hudson <tjh@openssl.org>
* Use the shlib wrapper when running nptestAlessandro Ghedini2015-09-051-1/+1
| | | | | | | | | Since there seems to be no way to avoid linking to libssl and libcrypto, just wrap the test. This unbreaks "shared" builds when using clang and/or OS X. Signed-off-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Ben Laurie <ben@openssl.org>
* Supply a build rule for the recently added nptestBenjamin Kaduk2015-09-041-0/+3
| | | | | | | | | | | | | | | | | Commit d4ab70f27cb7e518e6a9d6323c996cc3feb7496b added a test program to check that the NULL pointer is represented as all zero bits, but did not specify a build rule for that new executable. On many platforms, the implicit rule sufficed, since nptest is a very simple program, but for at least darwin-i386-cc, an explicit rule is needed. On darwin-i386-cc, the implicit rule targetted a 64-bit executable, but the object file containing the definition of main was a 32-bit object, which the linker excluded from consideration, resulting in a link failure due to no definition for _main. Add the missing build rule to fix the build on such platforms. Signed-off-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
* Test for NULL ptr == 0Rich Salz2015-09-041-3/+14
| | | | | | | Add a test to ensure that "char *p = NULL" is equivalent to all-bytes-zero. Reviewed-by: Tim Hudson <tjh@openssl.org>
* make updateDr. Stephen Henson2015-09-031-0/+7
| | | | Reviewed-by: Matt Caswell <matt@openssl.org>
* PBE lookup testDr. Stephen Henson2015-09-031-4/+12
| | | | | | | Add test to check PBE lookups: these can fail if the PBE table is not correctly orders. Add to "make test". Reviewed-by: Matt Caswell <matt@openssl.org>
* Check OPENSSL_gmtime_diffRich Salz2015-09-021-4/+17
| | | | | | | It's test code that only runs on 64bit time_t machines. Move it to a standalone test/gmdifftest Reviewed-by: Richard Levitte <levitte@openssl.org>
* Add NewSessionTicket test suiteMatt Caswell2015-08-261-1/+7
| | | | | | | Add a set of tests for checking that NewSessionTicket messages are behaving as expected. Reviewed-by: Tim Hudson <tjh@openssl.org>
* Use -I to add to @INC, and use -w to produce warningsRichard Levitte2015-08-131-3/+3
| | | | Reviewed-by: Matt Caswell <matt@openssl.org>
* Use dynamic engine for libssl test harnessRichard Levitte2015-08-111-3/+6
| | | | | | | | | Use a dynamic engine for ossltest engine so that we can build it without subsequently deploying it during install. We do not want people accidentally using this engine. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org>
* Add a test for 0 p value in anon DH SKEMatt Caswell2015-08-111-1/+6
| | | | | | When using an anon DH ciphersuite a client should reject a 0 value for p. Reviewed-by: Richard Levitte <levitte@openssl.org>
* Add some libssl testsMatt Caswell2015-08-111-1/+13
| | | | | | | | | Two tests are added: one is a simple version tolerance test; the second is a test to ensure that OpenSSL operates correctly in the case of a zero length extensions block. The latter was broken inadvertently (now fixed) and it would have been helpful to have a test case for it. Reviewed-by: Richard Levitte <levitte@openssl.org>
* PACKET unit testsMatt Caswell2015-08-031-4/+20
| | | | | | Add some unit tests for the new PACKET API Reviewed-by: Tim Hudson <tjh@openssl.org>
* Add initial packet parsing codeMatt Caswell2015-08-031-12/+13
| | | | | | | | | Provide more robust (inline) functions to replace n2s, n2l, etc. These functions do the same thing as the previous macros, but also keep track of the amount of data remaining and return an error if we try to read more data than we've got. Reviewed-by: Tim Hudson <tjh@openssl.org>
* Add test for SSL_set_session_ticket_extMatt Caswell2015-07-271-4/+31
| | | | | | | | | The function SSL_set_session_ticket_ext sets the ticket data to be sent in the ClientHello. This is useful for EAP-FAST. This commit adds a test to ensure that when this function is called the expected ticket data actually appears in the ClientHello. Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
* Apply some missing updates from previous commitsMatt Caswell2015-07-091-4/+13
| | | | Reviewed-by: Stephen Henson <steve@openssl.org>
* Add test for CVE-2015-1793Matt Caswell2015-07-071-4/+18
| | | | | | | | This adds a test for CVE-2015-1793. This adds a new test file verify_extra_test.c, which could form the basis for additional verification tests. Reviewed-by: Stephen Henson <steve@openssl.org>
* More secure storage of key material.Rich Salz2015-06-231-2/+12
| | | | | | | | | Add secure heap for storage of private keys (when possible). Add BIO_s_secmem(), CBIGNUM, etc. Add BIO_CTX_secure_new so all BIGNUM's in the context are secure. Contributed by Akamai Technologies under the Corporate CLA. Reviewed-by: Richard Levitte <levitte@openssl.org>
* When making libcrypto from apps or test, make sure to include enginesRichard Levitte2015-06-101-2/+2
| | | | | | | | | For librypto to be complete, the stuff in both crypto/ and engines/ have to be built. Doing 'make test' or 'make apps' from a clean source tree failed to do so. Corrected by using the new 'build_libcrypto' in the top Makefile. Reviewed-by: Tim Hudson <tjh@openssl.org>
* Remove OPENSSL_CONF=/dev/null from testsRichard Levitte2015-05-291-4/+4
| | | | | | | | | | Almost two months ago, the warning about non-existing config file was supressed by setting the environment variable OPENSSL_CONF to /dev/null everywhere. Now that this warning is gone, that practice is no longer needed. Reviewed-by: Stephen Henson <steve@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org>
* make updateDr. Stephen Henson2015-05-261-5/+5
| | | | Reviewed-by: Rich Salz <rsalz@openssl.org>
* Fix the update target and remove duplicate file updatesRichard Levitte2015-05-221-6/+7
| | | | | | | | | | | | | | | We had updates of certain header files in both Makefile.org and the Makefile in the directory the header file lived in. This is error prone and also sometimes generates slightly different results (usually just a comment that differs) depending on which way the update was done. This removes the file update targets from the top level Makefile, adds an update: target in all Makefiles and has it depend on the depend: or local_depend: targets, whichever is appropriate, so we don't get a double run through the whole file tree. Reviewed-by: Rich Salz <rsalz@openssl.org>
* make updateDr. Stephen Henson2015-05-201-14/+15
| | | | Reviewed-by: Emilia Käsper <emilia@openssl.org>
* Version negotiation rewrite cleanupMatt Caswell2015-05-161-10/+10
| | | | | | | | Following the version negotiation rewrite all of the previous code that was dedicated to version negotiation can now be deleted - all six source files of it!! Reviewed-by: Kurt Roeckx <kurt@openssl.org>
* Adjust unixly mk1mf after introduction of tkeyRichard Levitte2015-05-141-3/+3
| | | | | | | | Added depencies on the public variants of some keys in test to Makefile. Added the newly introduced key files from test/ in the list of files to copy in util/pl/unix.pl. Reviewed-by: Rich Salz <rsalz@openssl.org>
* make dependRichard Levitte2015-05-141-1/+1
| | | | Reviewed-by: Matt Caswell <matt@openssl.org>
* Remove remaining Kerberos referencesMatt Caswell2015-05-131-7/+4
| | | | | | | Following on from the removal of libcrypto and libssl support for Kerberos this commit removes all remaining references to Kerberos. Reviewed-by: Rich Salz <rsalz@openssl.org>
* Remove Kerberos support from libsslMatt Caswell2015-05-131-18/+16
| | | | | | | Remove RFC2712 Kerberos support from libssl. This code and the associated standard is no longer considered fit-for-purpose. Reviewed-by: Rich Salz <rsalz@openssl.org>
* Use safer sizeof variant in mallocRich Salz2015-05-041-11/+12
| | | | | | | | | | | | | For a local variable: TYPE *p; Allocations like this are "risky": p = OPENSSL_malloc(sizeof(TYPE)); if the type of p changes, and the malloc call isn't updated, you could get memory corruption. Instead do this: p = OPENSSL_malloc(sizeof(*p)); Also fixed a few memset() calls that I noticed while doing this. Reviewed-by: Richard Levitte <levitte@openssl.org>
* test/Makefile dclean cleans out a few files too many.Richard Levitte2015-04-211-2/+1
| | | | | | | The files removed are the ones that were symbolic links before, but aren't now, so we should not remove them any more. Reviewed-by: Stephen Henson <steve@openssl.org>
* Drop CA.sh for CA.plRich Salz2015-04-081-1/+1
| | | | | | Remove CA.sh script and use CA.pl for testing, etc. Reviewed-by: Richard Levitte <levitte@openssl.org>