aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/s_kex.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tls/s_kex.cpp')
-rw-r--r--src/tls/s_kex.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/tls/s_kex.cpp b/src/tls/s_kex.cpp
index 71e40f01c..bbad6fd83 100644
--- a/src/tls/s_kex.cpp
+++ b/src/tls/s_kex.cpp
@@ -118,17 +118,6 @@ Server_Key_Exchange::Server_Key_Exchange(const MemoryRegion<byte>& buf,
}
/**
-* Return the public key
-*/
-Public_Key* Server_Key_Exchange::key() const
- {
- if(m_params.size() == 3)
- return new DH_PublicKey(DL_Group(m_params[0], m_params[1]), m_params[2]);
- else
- throw Internal_Error("Server_Key_Exchange::key: No key set");
- }
-
-/**
* Verify a Server Key Exchange message
*/
bool Server_Key_Exchange::verify(const X509_Certificate& cert,