Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Refactor the code to generate a WANT_READ into a function, as we are | beck | 2017-01-26 | 1 | -18/+20 | |
| | | | | | using it more and more to avoid spins. ok jsing@ | |||||
* | Remove most of SSL3_ENC_METHOD - we can just inline the function calls | jsing | 2017-01-26 | 11 | -135/+63 | |
| | | | | | | and defines since they are the same everywhere. ok beck@ | |||||
* | Move relatively new version range code from ssl_lib.c into a separate | jsing | 2017-01-26 | 3 | -158/+175 | |
| | | | | | | ssl_versions.c file. ok beck@ | |||||
* | Rename s3_{both,clnt,pkt_srvr}.c to have an ssl_ prefix since they are no | jsing | 2017-01-26 | 5 | -6/+6 | |
| | | | | | | longer SSLv3 code. ok beck@ | |||||
* | Merge the client/server version negotiation into the existing (currently | jsing | 2017-01-26 | 16 | -1229/+395 | |
| | | | | | | fixed version) client/server code. ok beck@ | |||||
* | Remove ssl3_undef_enc_method - if we have internal bugs we want to segfault | jsing | 2017-01-26 | 5 | -36/+8 | |
| | | | | | | | so that we can debug it, rather than adding a "should not be called" error to the stack. Discussed with beck@ | |||||
* | Remove a sess_cert reference from a comment in the public header. | jsing | 2017-01-26 | 1 | -5/+2 | |
| | | | | Noted by zhuk@ | |||||
* | Limit enabled version range by the versions configured on the SSL_CTX/SSL, | jsing | 2017-01-25 | 3 | -23/+84 | |
| | | | | | | | provide an ssl_supported_versions_range() function which also limits the versions to those supported by the current method. ok beck@ | |||||
* | Change the SSL_IS_DTLS() macro to check the version, rather than using a | jsing | 2017-01-25 | 2 | -7/+4 | |
| | | | | | | | flag in the encryption methods. We can do this since there is currently only one DTLS version. This makes upcoming changes easier. ok beck@ | |||||
* | Provide ssl3_packet_read() and ssl3_packet_extend() functions that improve | jsing | 2017-01-25 | 3 | -35/+59 | |
| | | | | | | | the awkward API provided by ssl3_read_n(). Call these when we need to read or extend a packet. ok beck@ | |||||
* | Provide defines for SSL_CTRL_SET_CURVES/SSL_CTRL_SET_CURVES_LIST for things | jsing | 2017-01-25 | 1 | -1/+15 | |
| | | | | | | | | that are conditioning on these. From BoringSSL. ok beck@ | |||||
* | BUF_MEM_free(), X509_STORE_free() and X509_VERIFY_PARAM_free() all check | jsing | 2017-01-24 | 2 | -18/+10 | |
| | | | | for NULL, as does lh_free() - do not do the same from the caller. | |||||
* | sk_free() checks for NULL so do not bother doing it from the callers. | jsing | 2017-01-24 | 4 | -10/+9 | |
| | ||||||
* | sk_pop_free() checks for NULL so do not bother doing it from the callers. | jsing | 2017-01-24 | 7 | -50/+31 | |
| | ||||||
* | Within libssl a SSL_CTX * is referred to as a ctx - fix this for | jsing | 2017-01-24 | 1 | -29/+29 | |
| | | | | SSL_CTX_free(). | |||||
* | #if 0 the ecformats_list and eccurves_list - these are currently unused but | jsing | 2017-01-24 | 1 | -2/+5 | |
| | | | | will be revisited at some point in the near future. | |||||
* | Remove unused cert variable. | jsing | 2017-01-24 | 1 | -3/+1 | |
| | | | | Found by bcook@ | |||||
* | Bump libssl and libtls minors due to symbol additions. | jsing | 2017-01-24 | 1 | -1/+1 | |
| | ||||||
* | Add support for setting the supported EC curves via | jsing | 2017-01-24 | 7 | -26/+197 | |
| | | | | | | | | | | | | | SSL{_CTX}_set1_groups{_list}() - also provide defines for the previous SSL{_CTX}_set1_curves{_list} names. This also changes the default list of EC curves to be X25519, P-256 and P-384. If you want others (such a brainpool) you need to configure this yourself. Inspired by parts of BoringSSL and OpenSSL. ok beck@ | |||||
* | Correct bounds checks used when generating the EC curves extension. | jsing | 2017-01-24 | 1 | -3/+3 | |
| | | | | ok beck@ | |||||
* | Fix typo in brainpool curve name within a comment. | jsing | 2017-01-24 | 1 | -2/+2 | |
| | ||||||
* | There is no point returning then breaking... | jsing | 2017-01-24 | 1 | -2/+1 | |
| | ||||||
* | unifdef OPENSSL_NO_BIO - we do not support this in any form. | jsing | 2017-01-24 | 1 | -15/+1 | |
| | | | | ok beck@ | |||||
* | ssl_cert_free() checks for NULL itself. | jsing | 2017-01-24 | 1 | -10/+5 | |
| | ||||||
* | Remove a "free up if allocated" comment that exists before code that frees | jsing | 2017-01-24 | 1 | -2/+1 | |
| | | | | | | things if they are allocated. ok captainobvious@ | |||||
* | sk_SSL_CIPHER_free() checks for NULL so do not bother doing the same from | jsing | 2017-01-24 | 4 | -27/+16 | |
| | | | | the callers. | |||||
* | ssl_sess_cert_free() checks for NULL, so do not bother doing it at the | jsing | 2017-01-24 | 2 | -6/+8 | |
| | | | | call sites. | |||||
* | There is no point in zeroing fields that exist within a struct that is | jsing | 2017-01-24 | 1 | -3/+1 | |
| | | | | about to be explicit_bzero'd and freed. | |||||
* | move default_passwd_cb and default_passwd_cb_userdata back into | beck | 2017-01-23 | 4 | -30/+35 | |
| | | | | | | | the ssl_ctx from internal - these are used directly by python and openvpn and a few other things - we have the set accessors but the get accessors were added in 1.1 and these roll their own caveat OPENSSL_VERSION chickenpluckery | |||||
* | Move options and mode from SSL_CTX and SSL to internal, since these can be | jsing | 2017-01-23 | 12 | -66/+70 | |
| | | | | set and cleared via existing functions. | |||||
* | Split most of SSL_METHOD out into an internal variant, which is opaque. | jsing | 2017-01-23 | 23 | -303/+378 | |
| | | | | Discussed with beck@ | |||||
* | Remove ssl_ctrl, ssl_ctx_ctrl, ssl_callback_ctrl and ssl_ctx_callback_ctrl | jsing | 2017-01-23 | 8 | -76/+14 | |
| | | | | | | | from SSL_METHOD, replacing usage with direct calls to the appropriate functions. ok beck@ | |||||
* | send state and rstate from ssl_st into internal. There are accessors | beck | 2017-01-23 | 16 | -295/+296 | |
| | | | | | so these should not be diddled with directly ok jsing@ | |||||
* | move back read_hash and enc_read_ctx into ssl_st. wpa_supplicant and | beck | 2017-01-23 | 8 | -52/+57 | |
| | | | | other perversions touches them sickly and unnaturally. | |||||
* | Move a large part of ssl_st into internal, so we can see what squeals. | beck | 2017-01-23 | 22 | -888/+892 | |
| | | | | ok jsing@ | |||||
* | Move ex_data, next and prev from SSL_SESSION to internal. | jsing | 2017-01-23 | 3 | -31/+32 | |
| | | | | ok beck@ | |||||
* | Move most of the fields in SSL_CTX to internal - the ones that remain are | jsing | 2017-01-23 | 11 | -202/+209 | |
| | | | | | | known to be in use. ok beck@ | |||||
* | move the callbacks from ssl_st to internal | beck | 2017-01-23 | 19 | -230/+237 | |
| | | | | ok jsing@ | |||||
* | Move callback function pointers and argument pointers from SSL_CTX to | jsing | 2017-01-23 | 16 | -200/+210 | |
| | | | | | | internal. ok beck@ | |||||
* | Move not_resumable and sess_cert from SSL_SESSION to internal. | jsing | 2017-01-23 | 7 | -47/+50 | |
| | | | | ok beck@ | |||||
* | Remove heartbeat related fields from the SSL_CTX, which are unused | jsing | 2017-01-23 | 1 | -9/+1 | |
| | | | | (thankfully). | |||||
* | Move the stats struct from SSL_CTX to internal. | jsing | 2017-01-23 | 10 | -65/+64 | |
| | | | | ok beck@ | |||||
* | Move most of the SSL3_STATE fields to internal - the ones that remain are | jsing | 2017-01-22 | 18 | -681/+690 | |
| | | | | | | known to be used by ports. ok beck@ | |||||
* | Move most of DTLS1_STATE to internal. | beck | 2017-01-22 | 11 | -273/+272 | |
| | | | | ok jsing@ | |||||
* | Move ALPN and NPN fields from SSL/SSL_CTX to internal. | jsing | 2017-01-22 | 7 | -125/+129 | |
| | | | | ok beck@ | |||||
* | Move internal parts of ssl_session_st to internal | beck | 2017-01-22 | 4 | -40/+40 | |
| | | | | ok jsing@ | |||||
* | Move recently added min_version/max_version from SSL and SSL_CTX to their | jsing | 2017-01-22 | 2 | -10/+6 | |
| | | | | opaque structs. | |||||
* | Bump majors for libssl and libtls following the translucent struct change. | jsing | 2017-01-22 | 1 | -1/+1 | |
| | | | | Further changes to the publically visible structs will ride this bump. | |||||
* | Convert publically visible structs to translucent structs. | jsing | 2017-01-22 | 8 | -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@ | |||||
* | Clean up ssl3_new() - in particular, we do not need to zero fields that | jsing | 2017-01-22 | 1 | -11/+4 | |
| | | | | | | are within a struct that was just allocated via calloc. ok beck@ |