summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qmail-smtpd.812
-rw-r--r--qmail-smtpd.c12
2 files changed, 0 insertions, 24 deletions
diff --git a/qmail-smtpd.8 b/qmail-smtpd.8
index 5920dd9..849599c 100644
--- a/qmail-smtpd.8
+++ b/qmail-smtpd.8
@@ -124,18 +124,6 @@ environment variable is not set.
124For more information, please have a look at doc/README.qregex. 124For more information, please have a look at doc/README.qregex.
125 125
126.TP 5 126.TP 5
127.I clientca.pem
128A list of Certifying Authority (CA) certificates that are used to verify
129the client-presented certificates during a TLS-encrypted session.
130
131.TP 5
132.I clientcrl.pem
133A list of Certificate Revocation Lists (CRLs). If present it
134should contain the CRLs of the CAs in
135.I clientca.pem
136and client certs will be checked for revocation.
137
138.TP 5
139.I badrcptto 127.I badrcptto
140Unacceptable envelope recipient addresses. 128Unacceptable envelope recipient addresses.
141.B qmail-smtpd 129.B qmail-smtpd
diff --git a/qmail-smtpd.c b/qmail-smtpd.c
index 8ae6af3..b2c0263 100644
--- a/qmail-smtpd.c
+++ b/qmail-smtpd.c
@@ -68,8 +68,6 @@ char *relayclient;
68# include "tls.h" 68# include "tls.h"
69# include "ssl_timeoutio.h" 69# include "ssl_timeoutio.h"
70 70
71# define CLIENTCA "control/clientca.pem"
72# define CLIENTCRL "control/clientcrl.pem"
73# define SERVERCERT "control/servercert.pem" 71# define SERVERCERT "control/servercert.pem"
74 72
75void tls_init(); 73void tls_init();
@@ -1441,16 +1439,6 @@ void tls_init()
1441 1439
1442 if (!SSL_CTX_use_certificate_chain_file(ctx, servercert)) 1440 if (!SSL_CTX_use_certificate_chain_file(ctx, servercert))
1443 { SSL_CTX_free(ctx); tls_err("missing certificate"); return; } 1441 { SSL_CTX_free(ctx); tls_err("missing certificate"); return; }
1444 SSL_CTX_load_verify_locations(ctx, CLIENTCA, NULL);
1445
1446#if OPENSSL_VERSION_NUMBER >= 0x00907000L
1447 /* crl checking */
1448 store = SSL_CTX_get_cert_store(ctx);
1449 if ((lookup = X509_STORE_add_lookup(store, X509_LOOKUP_file())) &&
1450 (X509_load_crl_file(lookup, CLIENTCRL, X509_FILETYPE_PEM) == 1))
1451 X509_STORE_set_flags(store, X509_V_FLAG_CRL_CHECK |
1452 X509_V_FLAG_CRL_CHECK_ALL);
1453#endif
1454 1442
1455 /* set the callback here; SSL_set_verify didn't work before 0.9.6c */ 1443 /* set the callback here; SSL_set_verify didn't work before 0.9.6c */
1456 SSL_CTX_set_verify(ctx, SSL_VERIFY_NONE, verify_cb); 1444 SSL_CTX_set_verify(ctx, SSL_VERIFY_NONE, verify_cb);