aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-11-04Don't create fixtures for simple testsEmilia Kasper5-138/+24
The test fixtures are (meant to be) useful for sharing common setup. Don't bother when we don't have any setup/teardown. This only addresses simple tests. Parameterized tests (ADD_ALL_TESTS) will be made more user-friendly in a follow-up. Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04testutil: always print errors on failureEmilia Kasper12-17/+16
Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-11-04Travis: add a strict buildRichard Levitte1-0/+3
Clang on Linux seems to catch things that we might miss otherwise. Also, throw in 'no-deprecated' to make sure we test that as well. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/1839)
2016-11-04Fix a missed size_t variable declarationMatt Caswell1-1/+1
pqueue_size() now returns a size_t, but the variable that gets returned was still declared as an int. Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Fix some style issues from libssl size_tify reviewMatt Caswell2-11/+7
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Tweak the SSL_read()/SSL_write() text based on feedback received.Matt Caswell2-3/+3
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Rename all "read" variables with "readbytes"Matt Caswell8-72/+73
Travis is reporting one file at a time shadowed variable warnings where "read" has been used. This attempts to go through all of libssl and replace "read" with "readbytes" to fix all the problems in one go. Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Clarify the return values for SSL_read_ex()/SSL_write_ex()Matt Caswell2-4/+17
Give more detail on what constitutes success/failure. Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Fix a shadowed variable declaration warning picked up by TravisMatt Caswell1-3/+3
Rename "read" to "readbytes" Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Document the HMAC_size() functionMatt Caswell1-1/+9
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Test the size_t constant time functionsMatt Caswell2-7/+112
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Ensure SSL_DEBUG works following size_t changesMatt Caswell2-3/+3
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Clarify the return values for the peek functionsMatt Caswell1-3/+3
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Updates various man pages based on review feedback received.Matt Caswell6-95/+86
Improvements to style, grammar etc. Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Fix style issues in HMAC_size()Matt Caswell1-3/+2
Based on review feedback. Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Fix some bogus warnings about uninitialised variablesMatt Caswell1-2/+2
Travis was failing in some builds due to a bogus complaint about uninit variables. Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Fix some clashing symbol numbers due to merge conflictMatt Caswell1-3/+3
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Document the newly added SSL functionsMatt Caswell8-110/+142
Also document SSL_peek() which was missing from the docs. Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Remove a stray TODO that has already been fixedMatt Caswell2-7/+1
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Provide some constant time functions for dealing with size_t valuesMatt Caswell3-23/+72
Also implement the using of them Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Ensure HMAC_size() handles errors correctlyMatt Caswell1-1/+4
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Now that we can use size_t in PACKET lets use itMatt Caswell1-4/+2
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Fix misc size_t issues causing Windows warnings in 64 bitMatt Caswell17-112/+137
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Convert the mac functions to just return 1 for success and 0 for failureMatt Caswell3-25/+23
Previously they return -1 for failure or the size of the mac. But the size was never used anywhere. Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Fix some ssl3_record code witch converstion to/from size_tMatt Caswell1-15/+17
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Add some PACKET functions for size_tMatt Caswell2-3/+55
And use them in the DTLS code Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Convert SSL BIO to use SSL_write_ex().Matt Caswell2-72/+61
We also modify the SSL_get_error() function to handle the fact that with SSL_write_ex() the error return is 0 not -1, and fix some bugs in the SSL BIO reading. Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Fix some missed size_t updatesMatt Caswell13-49/+38
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Resolve some outstanding size_t related TODOsMatt Caswell3-15/+4
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Update misc function params in libssl for size_tMatt Caswell4-11/+12
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Convert some libssl local functions to size_tMatt Caswell5-18/+18
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Update cookie_len for size_tMatt Caswell3-7/+9
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Update numerous misc libssl fields to be size_tMatt Caswell6-46/+52
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Convert session_id_length and sid_ctx_len to size_tMatt Caswell6-24/+31
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Convert master_secret_size code to size_tMatt Caswell8-67/+93
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Convert various mac_secret_size usage to size_tMatt Caswell2-5/+6
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Convert ssl3_cbc_digest_record for size_tMatt Caswell2-7/+9
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Convert some misc record layer functions for size_tMatt Caswell5-47/+80
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Convert SSL3_RECORD_clear() and SSL3_RECORD_release() to size_tMatt Caswell2-6/+6
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Convert libssl writing for size_tMatt Caswell17-216/+270
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Further libssl size_t-ify of readingMatt Caswell18-175/+252
Writing still to be done Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Convert record layer to use size_tMatt Caswell4-42/+55
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-11-04Remove an unused field in ossl_shimMatt Caswell1-1/+0
Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-11-04Add a wildcard exception for TLS13 testsMatt Caswell1-0/+1
Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-11-04Swap header copyrights to standard OpenSSLMatt Caswell7-84/+49
As per permission from Google (Emilia). Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-11-04Add missing bn.h includeMatt Caswell1-0/+1
Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-11-04Update the BoringSSL suppressions file based on the latest shimMatt Caswell1-591/+337
The updated shim has the ability to skip tests using unimplemented flags. This should reduce the number of test failures. Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-11-04Rename BoringSSL style OPENSSL_WINDOWS to OPENSSL_SYS_WINDOWSMatt Caswell2-3/+3
Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-11-04Fix a code inconsistencyMatt Caswell1-4/+2
Move from two ifs to a single one with an && Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-11-04Remove some #if 0'd out codeMatt Caswell1-6/+0
It was only a sanity check anyway, so isn't needed Reviewed-by: Richard Levitte <levitte@openssl.org>