From: Alexander Barton Date: Fri, 5 Jan 2024 21:17:12 +0000 (+0100) Subject: S2S-TLS: MAX_CERT_CHAIN_LENGTH is only used by OpenSSL X-Git-Tag: rel-27-rc1~27 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git;a=commitdiff_plain;h=c8589e9890742c377c78595131ef1cdc8d784c66 S2S-TLS: MAX_CERT_CHAIN_LENGTH is only used by OpenSSL --- diff --git a/src/ngircd/conn-ssl.c b/src/ngircd/conn-ssl.c index ae864f50..50116288 100644 --- a/src/ngircd/conn-ssl.c +++ b/src/ngircd/conn-ssl.c @@ -45,6 +45,8 @@ extern struct SSLOptions Conf_SSLOptions; #include #include +#define MAX_CERT_CHAIN_LENGTH 10 /* XXX: do not hardcode */ + static SSL_CTX * ssl_ctx; static DH *dh_params; @@ -52,8 +54,6 @@ static bool ConnSSL_LoadServerKey_openssl PARAMS(( SSL_CTX *c )); static bool ConnSSL_SetVerifyProperties_openssl PARAMS((SSL_CTX * c)); #endif -#define MAX_CERT_CHAIN_LENGTH 10 /* XXX: do not hardcode */ - #ifdef HAVE_LIBGNUTLS #include #include