From 2d31f3fc1b1c88739e5babbd6a9e8cb3b80263de Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 27 Jan 2012 15:38:53 +0000 Subject: Add client-side support for PSK kex. Tested against OpenSSL. --- src/tls/tls_messages.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/tls/tls_messages.h') diff --git a/src/tls/tls_messages.h b/src/tls/tls_messages.h index 7d4905a0e..41ab6ece4 100644 --- a/src/tls/tls_messages.h +++ b/src/tls/tls_messages.h @@ -20,6 +20,8 @@ namespace Botan { +class Credentials_Manager; + namespace TLS { class Record_Writer; @@ -216,6 +218,7 @@ class Client_Key_Exchange : public Handshake_Message Client_Key_Exchange(Record_Writer& output, Handshake_State* state, + Credentials_Manager& creds, const std::vector& peer_certs, RandomNumberGenerator& rng); @@ -368,6 +371,7 @@ class Server_Key_Exchange : public Handshake_Message bool verify(const X509_Certificate& cert, Handshake_State* state) const; + // Only valid for certain kex types const Private_Key& server_kex_key() const; Server_Key_Exchange(Record_Writer& writer, -- cgit v1.2.3