]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - keepalived/patches/keepalived-1.2.7-fix-ssl-certificate-load.patch
keepalived: Update to 1.2.7.
[people/amarx/ipfire-3.x.git] / keepalived / patches / keepalived-1.2.7-fix-ssl-certificate-load.patch
CommitLineData
78522c10
MT
1From 3cc70656961f0384b1db030e0697a00af0b30e65 Mon Sep 17 00:00:00 2001
2From: Ryan O'Hara <rohara@redhat.com>
3Date: Mon, 19 Nov 2012 09:51:50 -0600
4Subject: [PATCH 06/10] Load SSL certificate correctly.
5
6This patch fixes a problem where keepalived will attempt to load an
7SSL keyfile as a certificate, resulting in failure to initialize SSL
8context.
9
10Signed-off-by: Ryan O'Hara <rohara@redhat.com>
11---
12 keepalived/check/check_ssl.c | 4 ++--
13 1 files changed, 2 insertions(+), 2 deletions(-)
14
15diff --git a/keepalived/check/check_ssl.c b/keepalived/check/check_ssl.c
16index 618d9a4..574ba30 100644
17--- a/keepalived/check/check_ssl.c
18+++ b/keepalived/check/check_ssl.c
19@@ -86,10 +86,10 @@ build_ssl_ctx(void)
20 }
21
22 /* Load our keys and certificates */
23- if (check_data->ssl->keyfile)
24+ if (check_data->ssl->certfile)
25 if (!
26 (SSL_CTX_use_certificate_chain_file
27- (ssl->ctx, check_data->ssl->keyfile))) {
28+ (ssl->ctx, check_data->ssl->certfile))) {
29 log_message(LOG_INFO,
30 "SSL error : Cant load certificate file...");
31 return 0;
32--
331.7.1
34