summaryrefslogtreecommitdiff
path: root/src/test/test_tortls.c
AgeCommit message (Collapse)Author
2016-09-09Chop another ~93 RSA key generations out of the unit testsNick Mathewson
We have a mock for our RSA key generation function, so we now wire it to pk_generate(). This covers all the cases that were not using pk_generate() before -- all ~93 of them.
2016-09-08Reinstate a couple of teardown_capture_of_logs that I missedNick Mathewson
Patch from rubiate. See #19999
2016-09-08Simplify log_test_helpers interfaceNick Mathewson
Previously, you needed to store the previous log severity in a local variable, and it wasn't clear if you were allowed to call these functions more than once.
2016-09-08Resolve more BUG warnings in the unit testsNick Mathewson
2016-08-31Do not call tor_tls_server_info_callback(NULL) from tests.Nick Mathewson
This isn't valid behavior, and it causes a crash when you run the unit tests at --debug. I've added an IF_BUG_ONCE() check for this case.
2016-06-14whoops; blank lineNick Mathewson
2016-06-14use new-form macros to disable -Wredundant-declsNick Mathewson
2016-06-14Merge branch 'maint-0.2.8'Nick Mathewson
2016-06-14Bug 19406: Fix the unit tests to work with OpenSSL 1.1.xYawning Angel
Just as it says on the tin. Don't need to fully disable any tests and reduce coverage either. Yay me.
2016-06-11Add -Wmissing-variable-declarations, with attendant fixesNick Mathewson
This is a big-ish patch, but it's very straightforward. Under this clang warning, we're not actually allowed to have a global variable without a previous extern declaration for it. The cases where we violated this rule fall into three roughly equal groups: * Stuff that should have been static. * Stuff that was global but where the extern was local to some other C file. * Stuff that was only global when built for the unit tests, that needed a conditional extern in the headers. The first two were IMO genuine problems; the last is a wart of how we build tests.
2016-06-11Add -Wfloat-conversion for GCC >= 4.9Nick Mathewson
This caught quite a few minor issues in our unit tests and elsewhere in our code.
2016-02-27Update the copyright year.Nick Mathewson
2016-02-23Merge branch 'bug17795'Nick Mathewson
2016-02-10Rename crypto_digest_all, and digests_t.Nick Mathewson
They are no longer "all" digests, but only the "common" digests. Part of 17795. This is an automated patch I made with a couple of perl one-liners: perl -i -pe 's/crypto_digest_all/crypto_common_digests/g;' src/*/*.[ch] perl -i -pe 's/\bdigests_t\b/common_digests_t/g;' src/*/*.[ch]
2016-02-06Fix spaces.Nick Mathewson
2016-02-03Make tortls unit tests pass with LibreSSL.Nick Mathewson
Part of the fix for 17921.
2016-02-03Make Tor build happily with OpenSSL master and libressl.Nick Mathewson
Also tested with 1.0.0t and 1.0.2f. Closes ticket 19784. Closes most of 17921. (Still need to make some tests pass.)
2016-02-01Replace incorrect use of snprintf in unit tests with tor_snprintfteor (Tim Wilson-Brown)
This avoids a potential out of bounds write.
2016-02-01Make all unit tests independent of log message order and countteor (Tim Wilson-Brown)
2015-12-18Fix a coverity NULL-pointer deref warning in the tortls tests.Nick Mathewson
Also, make our cert validation code more NULL-resistant. This is CID 1327891.
2015-12-18Looks like I added one X509_free too many :(Nick Mathewson
2015-12-18Fix remaining memory leaks in unit tests.Nick Mathewson
2015-12-15Fix some memory leaks in the unit testsNick Mathewson
2015-12-08Fix spaces.Nick Mathewson
2015-11-26Fix test_tortls.c to no longer test failing crypto_rand.Nick Mathewson
(crypto_rand is no longer allowed to fail.) Closes bug 17686; bug not in any released tor. (No backport, since the tortls tests aren't in 0.2.7)
2015-11-13Merge remote-tracking branch 'public/ticket11150_client_only'Nick Mathewson
2015-11-10Merge branch 'bug17549'Nick Mathewson
2015-11-06Fix the tortls.c unit tests to pass with OpenSSL 1.1.0-dev.Yawning Angel
The string description for the states got changed slightly.
2015-11-06Fix compilation with OpenSSL 1.1.0 --enable-gcc-warnings is set.Yawning Angel
2015-11-06"And now a better patch which builds the tests if LibreSSL is used."Nick Mathewson
Works on the latest LibreSSL (in OpenBSD-current). (Patch from 'rubiate' on #17253.
2015-10-24Avoid crashing due to double-freeing memory.rl1987
2015-10-21Fix various coverity-found issuesNick Mathewson
2015-10-21Yet more memory leaks closed in test_tortlsNick Mathewson
2015-10-21More memory leaks closed in test_tortlsNick Mathewson
2015-10-21Fix another pile of test_tortls memory leaksNick Mathewson
2015-10-21More leaks to fix.Nick Mathewson
2015-10-21resolve some leaks in test_tortls.cNick Mathewson
2015-10-07Remove the client-side code for the v1 and v2 tls handshakes.Nick Mathewson
(This is safe since super-old Tor servers are no longer allowed on the network.) Closes the client-side part of 11150.
2015-10-06Fix compilation with openssl 1.1 by forcibly disabling some testsNick Mathewson
Some of these tests can be ported to work with openssl 1.1, but probably some can't.
2015-10-06Allow case-insensitive match in test_tortls_debug_state_callbackNick Mathewson
2015-10-02Perhaps this is the permutation of headers that will please everythingNick Mathewson
2015-10-02Try to fix mingw build.Nick Mathewson
2015-10-02These logs seem openssl-version-dependentNick Mathewson
2015-10-02Avoid warnings in tortls.h includesNick Mathewson
2015-10-02Fix "make check-spaces"Nick Mathewson
2015-10-02Make test_tortls compile without warningsNick Mathewson
2015-09-15Add tests for tortls.cOla Bini
2013-06-12Fix #9043 - simplyfy the code and use EVP_PKEY_cmp instead of pkey_eq / ↵Marek Majkowski
tor_tls_evp_pkey_eq
2013-06-10Fix "make check-spaces"Nick Mathewson
2013-06-10Bug #5170 - make pkey_eq testable, introduce test_tortls.cMarek Majkowski