summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_methods.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Simplify SSL method lookups.jsing2020-09-171-49/+35
| | | | | | | | | There are three places where we call tls1_get_{client,server}_method() and if that returns NULL, call dtls1_get_{client,server}_method(). Simplify this by combining the lookup into a single function. While here also use uint16_t for version types. ok inoguchi@ millert@
* Mop up the get_ssl_method function pointer.jsing2020-09-151-47/+1
| | | | | | | Now that get_ssl_method is no longer used, we can garbage collect the function pointer and some associated machinery. ok beck@
* Remove some unnecessary function pointers from SSL_METHOD_INTERNAL.jsing2020-07-071-37/+1
| | | | | | ssl_version is completely unused and get_timeout is the same everywhere. ok beck@ inoguchi@ tb@
* Enable TLSv1.3 for the generic TLS_method().jsing2020-07-071-4/+50
| | | | | | This can be done now that we have both TLSv1.3 client and server. ok beck@ inoguchi@ tb@
* Add a workaround to make SSL_set_session() work with TLSv1.3.jsing2020-02-061-1/+9
| | | | | | | | While we do not currently do session resumption, just return the TLS_client_method() or TLS_server_method() when asked for a method that does TLSv1.3. ok tb@ (who also arrived at the same diff)
* Remove the ssl_get_message function pointer from SSL_METHOD_INTERNAL.jsing2020-01-231-20/+3
| | | | | | | | | ssl_get_message is essentially a switch between ssl3_get_message and dtls1_get_message, both only used by the legacy stack. Instead, use SSL_IS_DTLS() in ssl3_get_message to call the DTLS function when necessary. ok beck@ inoguchi@ tb@
* Implement pending for TLSv1.3.jsing2020-01-231-3/+3
| | | | | | Makes `openssl s_client -peekaboo` work with TLSv1.3. ok beck@ tb@
* Switch back to a function pointer for ssl_pending.jsing2020-01-231-1/+18
| | | | | | | This will allow the TLSv1.3 stack to provide its own implementation. Nuke a completely bogus comment from SSL_pending() whilst here. ok beck@
* Wire up the TLSv1.3 server.jsing2020-01-221-3/+45
| | | | | | | | This currently only has enough code to handle fallback to the legacy TLS stack for TLSv1.2 or earlier, however allows for further development and testing. ok beck@
* Hook up the TLSv1.3 legacy shutdown code.jsing2020-01-221-2/+2
| | | | Missed in an earlier commit.
* Split the TLSv1.3 guards into separate client and server guards.jsing2020-01-221-3/+3
| | | | ok beck@ tb@
* Bring back the ssl_shutdown internal method pointer.jsing2019-11-171-1/+17
| | | | | | | For now ssl3_shutdown() is called in all cases, however TLSv1.3 will soon get its own version. ok beck@
* Provide version agnostic DTLS methods.jsing2019-03-171-1/+19
| | | | ok tb@
* Correct guards.jsing2019-02-141-3/+3
|
* Provide a TLS 1.3 capable client method.jsing2019-02-141-3/+45
| | | | ok tb@
* Consolidate all of the SSL method structs/functions into a single file.jsing2018-11-051-0/+666
Discussed with tb@