]> granicus.if.org Git - neomutt/commitdiff
Only enable ssl_client_cert for openssl (spotted by Adeodato).
authorBrendan Cully <brendan@kublai.com>
Fri, 11 Feb 2005 01:19:15 +0000 (01:19 +0000)
committerBrendan Cully <brendan@kublai.com>
Fri, 11 Feb 2005 01:19:15 +0000 (01:19 +0000)
globals.h
init.h

index afced5256c00c3ffa7338c489579b4a020281fa9..62f3deda439a4a3f9e44f7be28ef258d40c21bc4 100644 (file)
--- a/globals.h
+++ b/globals.h
@@ -112,9 +112,11 @@ WHERE char *SpamSep;
 #if defined(USE_SSL) || defined(USE_NSS) || defined(USE_GNUTLS)
 WHERE char *SslCertFile INITVAL (NULL);
 #endif
+#ifdef USE_SSL
+WHERE char *SslClientCert INITVAL (NULL);
+#endif
 #if defined(USE_SSL) || defined(USE_NSS)
 WHERE char *SslEntropyFile INITVAL (NULL);
-WHERE char *SslClientCert INITVAL (NULL);
 #endif
 #ifdef USE_GNUTLS
 WHERE short SslDHPrimeBits;
diff --git a/init.h b/init.h
index fa1f0e0e749c4090ccacae816827e28f35cddf06..d8fec12238d589f0af64dec3ad6faa87c6dab06f 100644 (file)
--- a/init.h
+++ b/init.h
@@ -1813,6 +1813,14 @@ struct option_t MuttVars[] = {
   */
   
 #if defined(USE_SSL)||defined(USE_NSS)||defined(USE_GNUTLS)
+#ifdef USE_SSL
+  { "ssl_client_cert", DT_PATH, R_NONE, UL &SslClientCert, 0 },
+  /*
+  ** .pp
+  ** The file containing a client certificate and its associated private
+  ** key.
+  */
+#endif
 # if defined(USE_SSL)||defined(USE_GNUTLS)
   { "ssl_starttls", DT_QUAD, R_NONE, OPT_SSLSTARTTLS, M_YES },
   /*
@@ -1870,12 +1878,6 @@ struct option_t MuttVars[] = {
   ** This variables specifies whether to attempt to use TLSv1 in the
   ** SSL authentication process.
   */
-  { "ssl_client_cert", DT_PATH, R_NONE, UL &SslClientCert, 0 },
-  /*
-  ** .pp
-  ** The file containing a client certificate and its associated private
-  ** key.
-  */
 #ifdef USE_GNUTLS
   { "ssl_min_dh_prime_bits", DT_NUM, R_NONE, UL &SslDHPrimeBits, 0 },
   /*