From a92a41f88f29015f436b00ae32feda3be0840e95 Mon Sep 17 00:00:00 2001 From: SoniEx2 Date: Sat, 29 May 2021 23:36:39 -0300 Subject: Attempt to enforce SRP when SRP is requested --- src/common/server.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/common') 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, -- cgit 1.4.1