]> arthur.barton.de Git - ngircd.git/commitdiff
S2S-TLS: MAX_CERT_CHAIN_LENGTH is only used by OpenSSL
authorAlexander Barton <alex@barton.de>
Fri, 5 Jan 2024 21:17:12 +0000 (22:17 +0100)
committerAlexander Barton <alex@barton.de>
Sat, 23 Mar 2024 19:19:01 +0000 (20:19 +0100)
src/ngircd/conn-ssl.c

index ae864f50852c50db0b5ec1395a5e185060fca938..5011628874a4ee5cad3ba393b002e3fa285232d1 100644 (file)
@@ -45,6 +45,8 @@ extern struct SSLOptions Conf_SSLOptions;
 #include <openssl/dh.h>
 #include <openssl/x509v3.h>
 
+#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 <sys/types.h>
 #include <sys/stat.h>