From 4a5bcd7c299e999771226a4224b2554745767073 Mon Sep 17 00:00:00 2001 From: michael Date: Thu, 16 Jan 2014 19:24:46 +0000 Subject: - Allow private rsa keys larger than 2048 bits. Reported by Zdenek Kaspar. git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2842 82007160-df01-0410-b94d-b575c5fd34c7 --- src/conf_parser.y | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/conf_parser.y b/src/conf_parser.y index c6c438e..e9887f3 100644 --- a/src/conf_parser.y +++ b/src/conf_parser.y @@ -600,13 +600,12 @@ serverinfo_rsa_private_key_file: RSA_PRIVATE_KEY_FILE '=' QSTRING ';' break; } - /* require 2048 bit (256 byte) key */ - if (RSA_size(ServerInfo.rsa_private_key) != 256) + if (RSA_size(ServerInfo.rsa_private_key) < 128) { RSA_free(ServerInfo.rsa_private_key); ServerInfo.rsa_private_key = NULL; - conf_error_report("Not a 2048 bit key, ignoring"); + conf_error_report("Ignoring serverinfo::rsa_private_key_file -- need at least a 1024 bit key size"); } #endif }; -- cgit