blob: 7b61fa88c7c8af99411e4b8bb524a3b7dfca574e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
.. _ssl_api:
SSL and TLS
========================================
Botan supports both client and server implementations of the SSL/TLS
protocols, including SSL v3, TLS v1.0, and TLS v1.1. The insecure and
obsolete SSL v2 is not supported.
The implementation uses ``std::tr1::function``, so it may not have
been compiled into the version you are using; you can test for the
feature macro ``BOTAN_HAS_SSL_TLS`` to check.
TLS Clients
----------------------------------------
A simple TLS client:
.. literalinclude:: examples/tls_client.cpp
TLS Servers
----------------------------------------
A simple TLS server
.. literalinclude:: examples/tls_server.cpp
|