From eee1e71ccc7a54ee10aad759bfd51656dabf90f1 Mon Sep 17 00:00:00 2001
From: Emmanuel Hocdet <manu@gandi.net>
Date: Tue, 13 Jun 2017 10:44:27 +0200
Subject: [PATCH] CLEANUP: remove useless ssl code from haproxy.c

The commit 872f9c213 ("MEDIUM: ssl: add basic support for OpenSSL crypto
engine") add ssl_free_dh to haproy.c (and dependancy to ssl_sock.h).
It's useless, ssl_*_dh is managed by ssl_sock.c.
---
 src/haproxy.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/haproxy.c b/src/haproxy.c
index d64058d..6f57cee 100644
--- a/src/haproxy.c
+++ b/src/haproxy.c
@@ -109,7 +109,6 @@
 #include <proto/task.h>
 #include <proto/dns.h>
 #include <proto/vars.h>
-#include <proto/ssl_sock.h>
 
 /* list of config files */
 static struct list cfg_cfgfiles = LIST_HEAD_INIT(cfg_cfgfiles);
@@ -2577,9 +2576,6 @@ int main(int argc, char **argv)
 				/* should never get there */
 				exit(EXIT_FAILURE);
 			}
-#if defined(USE_OPENSSL) && !defined(OPENSSL_NO_DH)
-			ssl_free_dh();
-#endif
 			exit(0); /* parent must leave */
 		}
 
-- 
2.1.4

