8 #ifndef BOTAN_TLS_SERVER_H__
9 #define BOTAN_TLS_SERVER_H__
11 #include <botan/tls_connection.h>
12 #include <botan/tls_record.h>
13 #include <botan/tls_policy.h>
24 size_t read(
byte buf[],
size_t buf_len);
25 void write(
const byte buf[],
size_t buf_len);
27 std::vector<X509_Certificate> peer_cert_chain()
const;
30 {
return client_requested_hostname; }
33 bool is_closed()
const;
40 std::tr1::function<
void (
const byte[],
size_t)> output_fn,
56 std::tr1::function<size_t (byte[], size_t)> input_fn;
65 std::vector<X509_Certificate> cert_chain, peer_certs;
71 std::string client_requested_hostname;
std::string requested_hostname() const
RandomNumberGenerator * rng