]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: ssl: Fix CRL check was not enabled when crlfile was specified.
authorEmeric Brun <ebrun@exceliance.fr>
Tue, 2 Oct 2012 13:20:55 +0000 (15:20 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 2 Oct 2012 14:05:51 +0000 (16:05 +0200)
src/ssl_sock.c

index 07be3eaac831011f43603181ebeedd8092e38a31..8b62c0acec9be76d39b506c2f40d21196c85d101 100644 (file)
@@ -519,6 +519,9 @@ int ssl_sock_prepare_ctx(struct bind_conf *bind_conf, SSL_CTX *ctx, struct proxy
                                      curproxy->id, bind_conf->cafile, bind_conf->arg, bind_conf->file, bind_conf->line);
                                cfgerr++;
                        }
+                       else {
+                               X509_STORE_set_flags(store, X509_V_FLAG_CRL_CHECK|X509_V_FLAG_CRL_CHECK_ALL);
+                       }
                }
        }