summaryrefslogtreecommitdiff
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-01-22Disable session cache and tickets by default.claudio1-1/+5
OK beck@ jsing@
2017-01-22Update the TLS ALPN unit tests to work with internal/opaque data.jsing2-13/+11
2017-01-22Move most of DTLS1_STATE to internal.beck11-273/+272
ok jsing@
2017-01-22Move ALPN and NPN fields from SSL/SSL_CTX to internal.jsing7-125/+129
ok beck@
2017-01-22Move internal parts of ssl_session_st to internalbeck4-40/+40
ok jsing@
2017-01-22Move recently added min_version/max_version from SSL and SSL_CTX to theirjsing2-10/+6
opaque structs.
2017-01-22Wrap long lines.jsing1-4/+7
2017-01-22Bump majors for libssl and libtls following the translucent struct change.jsing2-2/+2
Further changes to the publically visible structs will ride this bump.
2017-01-22Convert publically visible structs to translucent structs.jsing8-29/+111
This change adds an internal opaque struct for each of the significant publically visible structs. The opaque struct is then allocated and attached to the publically visible struct when the appropriate *_new() function is called, then cleared and freed as necessary. This will allow for changes to be made to the internals of libssl, without requiring a major bump each time the publically visible structs are modified. ok beck@
2017-01-22Clean up ssl3_new() - in particular, we do not need to zero fields thatjsing1-11/+4
are within a struct that was just allocated via calloc. ok beck@
2017-01-22There is no point in setting struct fields to zero, when you've alreadyjsing1-5/+2
zeroed the entire struct via memset. ok beck@
2017-01-21use BN_div_nonct where it is safe to do so.beck1-2/+2
ok guenther@
2017-01-21Add ct and nonct versions of BN_mod_inverse for internal usebeck13-36/+67
ok jsing@
2017-01-21Split out BN_div and BN_mod into ct and nonct versions for Internal use.beck17-58/+92
ok jsing@
2017-01-21Make explicit _ct and _nonct versions of bn_mod_exp funcitons thatbeck19-47/+249
matter for constant time, and make the public interface only used external to the library. This moves us to a model where the important things are constant time versions unless you ask for them not to be, rather than the opposite. I'll continue with this method by method. Add regress tests for same. ok jsing@
2017-01-21whitespacederaadt2-5/+5
2017-01-211. When shrinking a chunk allocation, compare the size of the currentotto1-46/+87
allocation to the size of the new allocation (instead of the requested size). 2. Previously realloc takes the easy way and always reallocates if C is active. This commit fixes by carefully updating the recorded requested size in all cases, and writing the canary bytes in the proper location after reallocating. 3. Introduce defines to test if MALLOC_MOVE should be done and to compute the new value.
2017-01-21Specify minimum and maximum protocol version for each method. This isjsing6-6/+36
currently unused, but will be in the near future. ok beck@
2017-01-21Place {DECLARE,IMPLEMENT}_OBJ_BSEARCH{_GLOBAL,}_CMP_FN macros undefjsing1-1/+5
LIBRESSL_INTERNAL.
2017-01-21Expand DECLARE_OBJ_BSEARCH_CMP_FN and IMPLEMENT_OBJ_BSEARCH_CMP_FN macros.jsing6-28/+168
No change to generated assembly excluding line numbers.
2017-01-21/usr/bin/unifdef -D MONT_MUL_MOD -D MONT_EXP_WORD -D RECP_MUL_MOD -m bn_exp.cbeck1-23/+2
with some style cleanup after. no binary change ok jsing@
2017-01-21Expand DECLARE_OBJ_BSEARCH_CMP_FN and IMPLEMENT_OBJ_BSEARCH_CMP_FN macros.jsing2-8/+38
No change to generated assembly excluding line numbers.
2017-01-21Expand DECLARE_OBJ_BSEARCH_GLOBAL_CMP_FN macro.jsing1-2/+2
No change in preprocessor output (ignoring whitespace and line numbers).
2017-01-21Expand IMPLEMENT_OBJ_BSEARCH_GLOBAL_CMP_FN macro.jsing1-2/+16
No change in generated assembly.
2017-01-21fix bogus commentbeck1-2/+2
ok jsing@
2017-01-21Make return value of X509_verify_cert be consistent with the error code,beck1-2/+10
with the caveat that we force V_OK when a user provided callback has us returning success. ok inoguchi@ jsing@
2017-01-20rearrange pledge promises into the canonical order; easier to eyeballderaadt39-77/+77
2017-01-20fix pledge for openssl ocsp - we will need tty to ask for a cert pwbeck1-2/+2
2017-01-20Rework internal_verify, mostly from OpenSSL. so we can progressbeck1-102/+102
towards cleaning up the V_OK stuff. ok kinichiro@
2017-01-19fix openssl ocsp to not report sucess when the ocsp responder rejects usbeck1-3/+3
ok deraadt@ krw@
2017-01-18unhook ocsp test from the default since it currently requires network access andbeck1-2/+1
therefore appears to break in bluhm's test setup
2017-01-17Correctly tls_config_set_ca_file() return value (no effective change).jsing1-2/+2
Spotted by inoguchi@
2017-01-13whitespacederaadt1-3/+3
2017-01-12Inline strlen() call to reduce/simplify code.jsing1-5/+2
2017-01-12Inline tls_get_new_cb_bio() from the only place that it gets called,jsing1-22/+11
simplifying the code. Also check the provided read and write callbacks before assigning to the context.
2017-01-12If tls_set_cbs() fails an error will already be specified, so do notjsing2-8/+4
replace it with a less specific one.
2017-01-12change two trailing Xr to Fn; ok schwarzejmc2-6/+6
2017-01-12Simplify the TLS callback BIO code - a pointer to the tls context can bejsing1-66/+7
stored directly in bio->ptr, rather than allocating and deallocating an intermediate struct. Diff from Marko Kreen <markokr at gmail dot com> - thanks!
2017-01-12If tls_get_new_cb_bio() fails, an error will already be set.jsing1-5/+2
2017-01-12If no callbacks are specified, return after setting an error rather thanjsing1-2/+4
continuing on. Also noticed by Marko Kreen.
2017-01-12Add regress tests for libtls, which currently cover handshakes and closesjsing3-1/+356
using callbacks, file descriptors and sockets.
2017-01-11Add support for AArch64.patrick2-0/+182
2017-01-09Avoid leaking conninfo servername.jsing1-1/+3
Issue found by and fix from Shuo Chen <chenshuo at chenshuo dot com>.
2017-01-09Provide TLS_INT for consistency with libssl/libcrypto.jsing2-2/+4
2017-01-07add missing comma in the NAME sectionschwarze1-3/+3
2017-01-07fix a typo in an .Xr reported by jmc@schwarze1-3/+3
2017-01-07Add and remove some blank lines, in order to make X509_verify_cert()jsing1-6/+4
(slightly) more readable.
2017-01-07a little more cleanup;jmc5-23/+23
2017-01-07Revert part of r1.54 as there are at least two situations where we are stilljsing1-4/+2
returning ok == 1, with ctx->error not being X509_V_OK. Hopefully we can restore this behaviour once these are ironed out. Discussed with beck@
2017-01-07correctly mark all documented macros found in <openssl/bn.h>schwarze3-9/+11