summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSoniEx2 <endermoneymod@gmail.com>2021-05-29 23:36:39 -0300
committerSoniEx2 <endermoneymod@gmail.com>2021-05-29 23:36:39 -0300
commita92a41f88f29015f436b00ae32feda3be0840e95 (patch)
tree850902a679c12a95964cb6eb47b6d38e3362a3df
parent390240ac622ab1d81704bad694ba6187738ae9b8 (diff)
Attempt to enforce SRP when SRP is requested feature/tls-srp
-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,