aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_messages.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-04-06 16:43:24 +0000
committerlloyd <[email protected]>2012-04-06 16:43:24 +0000
commite91b91578a483a23bd491149d3dd21079c4a27d1 (patch)
treeedec04f11a61140f1199ab1bb2436e3297bb89ca /src/tls/tls_messages.h
parent45396449cd84326626c09e48af74ccb008a0aefc (diff)
Finish up server side SRP support, a little ugly but it works.
Add SRP hooks in the examples Fix next protocol support in the tls_server example.
Diffstat (limited to 'src/tls/tls_messages.h')
-rw-r--r--src/tls/tls_messages.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tls/tls_messages.h b/src/tls/tls_messages.h
index ff6ebda4d..c8a9382d6 100644
--- a/src/tls/tls_messages.h
+++ b/src/tls/tls_messages.h
@@ -21,6 +21,7 @@
namespace Botan {
class Credentials_Manager;
+class SRP6_Server_Session;
namespace TLS {
@@ -396,6 +397,9 @@ class Server_Key_Exchange : public Handshake_Message
// Only valid for certain kex types
const Private_Key& server_kex_key() const;
+ // Only valid for SRP negotiation
+ SRP6_Server_Session& server_srp_params();
+
Server_Key_Exchange(Record_Writer& writer,
Handshake_State* state,
const Policy& policy,
@@ -408,11 +412,12 @@ class Server_Key_Exchange : public Handshake_Message
const std::string& sig_alg,
Protocol_Version version);
- ~Server_Key_Exchange() { delete m_kex_key; }
+ ~Server_Key_Exchange();
private:
MemoryVector<byte> serialize() const;
Private_Key* m_kex_key;
+ SRP6_Server_Session* m_srp_params;
MemoryVector<byte> m_params;