summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/common/server.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/server.c b/src/common/server.c
index 3dd92be3..1c8efa70 100644
--- a/src/common/server.c
+++ b/src/common/server.c
@@ -604,6 +604,14 @@ ssl_do_connect (server * serv)
 			goto conn_fail;
 		}
 
+#ifndef OPENSSL_NO_SRP
+		if (serv->use_pake && !SSL_get_srp_g(serv->ssl))
+		{
+			g_snprintf (buf, sizeof (buf), "No SRP");
+			goto conn_fail;
+		}
+#endif
+
 		chiper_info = _SSL_get_cipher_info (serv->ssl);	/* static buffer */
 		g_snprintf (buf, sizeof (buf), "* Cipher info:");
 		EMIT_SIGNAL (XP_TE_SSLMESSAGE, serv->server_session, buf, NULL, NULL, NULL,