aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/tls_server.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Move base64, bzip, ca, and tls exampleslloyd2014-01-011-255/+0
|
* Add MSG_NOSIGNAL as 0 on platforms that don't have it.lloyd2013-12-311-0/+4
| | | | Patch from Uri Blumenthal <[email protected]> sent to the list.
* Add OCSP example. Fix minor compile issues.lloyd2013-11-281-1/+1
|
* Split TLS callbacks into a data callback and an alert callback.lloyd2013-11-051-6/+9
| | | | | In practice applications treated these two cases completely differently, so there was no reason to combine them into a single callback.
* secure_renegotiation isn't a session value anymorelloyd2012-09-141-4/+0
|
* Support both TLS and DTLS in the tls_server example.lloyd2012-09-091-141/+159
| | | | Drop the fairly bogus socket wrapper layer.
* Huge pile of post merge fixups, mtn really fucked that mergelloyd2012-04-251-7/+7
|
* propagate from branch 'net.randombit.botan.tls-state-machine' (head ↵lloyd2012-04-251-23/+43
|\ | | | | | | | | | | a4741cd07f50a9e1b29b0dd97c6fb8697c038ade) to branch 'net.randombit.botan.cxx11' (head 116e5ff139c07000be431e07d3472cc8f3919b91)
| * Various hacks for testing client auth, SRP, etclloyd2012-04-201-1/+9
| |
| * Finish up server side SRP support, a little ugly but it works.lloyd2012-04-061-16/+28
| | | | | | | | | | | | Add SRP hooks in the examples Fix next protocol support in the tls_server example.
* | Fix examples. Use crazy hack of compiling asio tls server using 4.6.0lloyd2012-02-201-7/+7
|/ | | | | | but linking using 4.7.0 - asio seems to have problems with the 4.7.0 libstdc++ in C++11 mode, mostly related to missing noexcept and trying to copy things that are move only.
* Change callback interface to pass the Alert object itself insteadlloyd2012-01-261-3/+3
| | | | | | of just the type code. Implement Alert::type_string
* The credentials manager interface seems a much better place for certlloyd2012-01-231-53/+2
| | | | | | | | | checking, allowed client auth CAs, etc than the policy class. With this change, most users won't ever need to modify the default policy which is likely a good thing. Remove copy and paste of the credentials manager implemenation in the examples.
* Update examples with new ciphersuite string printerlloyd2012-01-231-2/+2
|
* Since this branch is hugely API breaking already, go ahead and putlloyd2012-01-231-8/+8
| | | | | everything into a new namespace (Botan::TLS), removing the TLS_ prefixes on everything.
* Small fixeslloyd2012-01-161-1/+1
|
* Various example updates. Add a new TLS server example that uses asiolloyd2012-01-061-13/+15
|
* Example fixeslloyd2012-01-031-1/+2
|
* Add Credentials_Manager which is an interface to something that knowslloyd2012-01-031-18/+48
| | | | | what certs, keys, etc are available to the app. Needs polishing but it seems like it should be sound.
* Rename the session type to 'TLS_Session'. Split the manager out intolloyd2011-12-301-1/+2
| | | | its own file. Rename tls_state to tls_handshake_state.
* Add a function for getting the version number of an active connection.lloyd2011-12-301-1/+17
| | | | | | | | Add a new callback that is called with the session info when a handshake completes. Currently only called on the server side as the client doesn't have session resumption yet. Rename CipherSuite to TLS_Cipher_Suite.
* Add support for sending server name indicator in client hellolloyd2011-12-291-4/+5
| | | | | | | | Add support for sending and reading the SRP identifier extension. Add some helper classes for managing TLS extensions Add ciphersuite codes for SRP key exchange.
* Just print printablelloyd2011-12-281-2/+0
|
* Working though hacking client verify (server side only). Only supportslloyd2011-12-281-3/+5
| | | | | TLS 1.0/1.1, SSLv3 uses a different hash format. Only RSA certs tested so far.
* Make the server example less fragile, write a class that emulates thelloyd2011-12-271-30/+118
| | | | old blocking interface and use that.
* Initial hooks for session resumptionlloyd2011-12-231-0/+3
|
* Centralize a lot of the handshaking and message parsing in TLS_Channellloyd2011-12-231-15/+34
| | | | Also delete the obsolete/never worked CMS examples
* A few more WinSock fixes for TLS exampleslloyd2011-04-291-2/+2
|
* Calling &str[str.size()] is only valid if str is const; otherwise thelloyd2011-04-291-1/+2
| | | | | | | | | | | | | | results are undefined. This happens to work under GCC and most other compilers, but does not under Visual C++ 2010. This broke hex_encode when encoding an empty input, and this subsequently broke SSL handshaking. 2010 includes a TR1 that works fine for SSL, but it puts the headers in the main header space rather than under tr1/, so account for that. Hack the socket header into working under WinSock Tick version to 1.10.0
* More doc updateslloyd2011-04-081-6/+0
|
* More pubkey doc updateslloyd2011-04-081-0/+109
|
* Convert most of the documentation to reStructured Text, addinglloyd2011-04-041-108/+0
| | | | | | | | | | | | | | | | | | | a makefile to build it with Sphinx (http://sphinx.pocoo.org/). Previously credits.txt listed public domain code sources; instead directly credit the authors in the relevant files and delete that file. Drop the draft FIPS 140 security policy; I can't imagine FIPS 140 validation will ever happen, and if it does, I don't want anything to do with it. Also drop the internals doc, which was so out of date (and incomplete) as to be worthless. Move the tutorials and InSiTo pdfs into old/ for the time being, until anything relevant from them can be filtered out and converted into RST.
* Fix tls_server example compilationlloyd2010-11-301-2/+8
|
* Inherit policy and override check_certlloyd2010-11-291-1/+16
|
* Fix exampleslloyd2010-10-131-1/+3
|
* Cleanups. Name our cert for localhost. Used AutoSeeded_RNG.lloyd2010-04-191-12/+16
| | | | Report SNI request, if any.
* TLS_Server example - more printfs, configurable portlloyd2010-02-171-3/+13
|
* Various minor SSL fixeslloyd2010-02-141-1/+1
|
* Import latest version of Ajisai into src/ssl; once this hits mainlinelloyd2010-01-111-0/+71
I'll officially kill off Ajisai (instead of it just lingering as a zombine as it is currently). Apparently I broke something (or multiple things) during the import process; servers crash and clients gets MAC errors on connect.