aboutsummaryrefslogtreecommitdiffstats
path: root/src/ssl/tls_server.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-09-17 13:55:23 +0000
committerlloyd <[email protected]>2010-09-17 13:55:23 +0000
commit8fa7d0b4f91eec572d8b2971d87e68741d1cd330 (patch)
tree6caf8dfc00dadc1000c73c3cf875430474153425 /src/ssl/tls_server.h
parentc037226de0af018187d03e7caaf6acb754fe1039 (diff)
Require a TLS_Policy
Diffstat (limited to 'src/ssl/tls_server.h')
-rw-r--r--src/ssl/tls_server.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/ssl/tls_server.h b/src/ssl/tls_server.h
index 13f8f46df..fc6adc9ce 100644
--- a/src/ssl/tls_server.h
+++ b/src/ssl/tls_server.h
@@ -36,11 +36,11 @@ class BOTAN_DLL TLS_Server : public TLS_Connection
// FIXME: support cert chains (!)
// FIXME: support anonymous servers
- TLS_Server(RandomNumberGenerator& rng,
+ TLS_Server(const TLS_Policy& policy,
+ RandomNumberGenerator& rng,
Socket& peer,
const X509_Certificate& cert,
- const Private_Key& cert_key,
- const TLS_Policy* policy = 0);
+ const Private_Key& cert_key);
~TLS_Server();
private:
@@ -52,13 +52,12 @@ class BOTAN_DLL TLS_Server : public TLS_Connection
void process_handshake_msg(Handshake_Type, const MemoryRegion<byte>&);
+ const TLS_Policy& policy;
RandomNumberGenerator& rng;
-
Socket& peer;
Record_Writer writer;
Record_Reader reader;
- const TLS_Policy* policy;
// FIXME: rename to match TLS_Client
std::vector<X509_Certificate> cert_chain, peer_certs;
@@ -67,7 +66,6 @@ class BOTAN_DLL TLS_Server : public TLS_Connection
class Handshake_State* state;
SecureVector<byte> session_id;
SecureQueue read_buf;
- std::string peer_id;
std::string client_requested_hostname;
bool active;
};