aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ssl
Commit message (Collapse)AuthorAgeFilesLines
* Remove really old demo'sRich Salz2016-03-073-358/+0
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org>
* Replace "SSLeay" in API with OpenSSLRich Salz2015-10-303-6/+6
| | | | | | | All instances of SSLeay (any combination of case) were replaced with the case-equivalent OpenSSL. Reviewed-by: Richard Levitte <levitte@openssl.org>
* Client side version negotiation rewriteMatt Caswell2015-05-161-1/+1
| | | | | | | | | | Continuing from the previous commit this changes the way we do client side version negotiation. Similarly all of the s23* "up front" state machine code has been avoided and again things now work much the same way as they already did for DTLS, i.e. we just do most of the work in the ssl3_get_server_hello() function. Reviewed-by: Kurt Roeckx <kurt@openssl.org>
* Server side version negotiation rewriteMatt Caswell2015-05-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit changes the way that we do server side protocol version negotiation. Previously we had a whole set of code that had an "up front" state machine dedicated to the negotiating the protocol version. This adds significant complexity to the state machine. Historically the justification for doing this was the support of SSLv2 which works quite differently to SSLv3+. However, we have now removed support for SSLv2 so there is little reason to maintain this complexity. The one slight difficulty is that, although we no longer support SSLv2, we do still support an SSLv3+ ClientHello in an SSLv2 backward compatible ClientHello format. This is generally only used by legacy clients. This commit adds support within the SSLv3 code for these legacy format ClientHellos. Server side version negotiation now works in much the same was as DTLS, i.e. we introduce the concept of TLS_ANY_VERSION. If s->version is set to that then when a ClientHello is received it will work out the most appropriate version to respond with. Also, SSLv23_method and SSLv23_server_method have been replaced with TLS_method and TLS_server_method respectively. The old SSLv23* names still exist as macros pointing at the new name, although they are deprecated. Subsequent commits will look at client side version negotiation, as well of removal of the old s23* code. Reviewed-by: Kurt Roeckx <kurt@openssl.org>
* memset, memcpy, sizeof consistency fixesRich Salz2015-05-052-2/+2
| | | | | | | | Just as with the OPENSSL_malloc calls, consistently use sizeof(*ptr) for memset and memcpy. Remove needless casts for those functions. For memset, replace alternative forms of zero with 0. Reviewed-by: Richard Levitte <levitte@openssl.org>
* Remove SSLv2 supportKurt Roeckx2014-12-041-1/+1
| | | | | | The only support for SSLv2 left is receiving a SSLv2 compatible client hello. Reviewed-by: Richard Levitte <levitte@openssl.org>
* RT2847: Don't "check" uninitialized memoryMartin Olsson2014-08-191-2/+0
| | | | | | Don't check err variable until after it's been set. Reviewed-by: Emilia Kasper <emilia@openssl.org>
* John Denney <jdenney@ca.mdis.com> reports that we forgot to convertRichard Levitte2000-10-183-6/+6
| | | | Free to OPENSSL_free in the SSL demos.
* Fix to the -revoke option in ca. It was leaking memory, crashing and justDr. Stephen Henson1999-11-081-1/+0
| | | | | | | | | plain not working :-( Also fix some memory leaks in the new X509_NAME code. Fix so new app_rand code doesn't crash 'x509' and move #include so it compiles under Win32.
* SSL_shutdown was done too early.Bodo Möller1999-08-011-2/+1
|
* don't prematurely shut down socket -- use SSL_shutdownBodo Möller1999-08-011-1/+1
|
* Updated C++ SSL demos.Bodo Möller1999-05-272-17/+53
| | | | Submitted (a month ago) by: Wade Scholine
* Submitted by:Bodo Möller1999-04-241-1/+1
| | | | | Reviewed by: PR:
* Submitted by:Bodo Möller1999-04-233-15/+15
| | | | | Reviewed by: PR:
* Import of old SSLeay release: SSLeay 0.8.1bRalf S. Engelschall1998-12-213-0/+326