summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/librepo/librepo/0005-Fix-typo-correct-LRO_SSLVERIFYHOST-with-CURLOPT_SSL_.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/librepo/librepo/0005-Fix-typo-correct-LRO_SSLVERIFYHOST-with-CURLOPT_SSL_.patch')
-rw-r--r--meta/recipes-devtools/librepo/librepo/0005-Fix-typo-correct-LRO_SSLVERIFYHOST-with-CURLOPT_SSL_.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-devtools/librepo/librepo/0005-Fix-typo-correct-LRO_SSLVERIFYHOST-with-CURLOPT_SSL_.patch b/meta/recipes-devtools/librepo/librepo/0005-Fix-typo-correct-LRO_SSLVERIFYHOST-with-CURLOPT_SSL_.patch
new file mode 100644
index 0000000000..b0c7d1ca30
--- /dev/null
+++ b/meta/recipes-devtools/librepo/librepo/0005-Fix-typo-correct-LRO_SSLVERIFYHOST-with-CURLOPT_SSL_.patch
@@ -0,0 +1,40 @@
1From a4bbbccce6edc1a2d1bd475506e2975fd7696c88 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Thu, 8 Jun 2017 16:31:30 +0800
4Subject: [PATCH] Fix typo: correct LRO_SSLVERIFYHOST with
5 CURLOPT_SSL_VERIFYHOST
6
7In commit 51d32c6cd88ba0139c32793183fd6a236c1ef456
8---
9Author: Tomas Mlcoch <tmlcoch@redhat.com>
10Date: Mon May 5 14:31:35 2014 +0200
11
12 Add LRO_SSLVERIFYPEER and LRO_SSLVERIFYHOST options (RhBug: 1093014)
13---
14
15It incorrectly setopt CURLOPT_SSL_VERIFYPEER for LRO_SSLVERIFYHOST.
16Use CURLOPT_SSL_VERIFYHOST to correct.
17
18Upstream-Status: Submitted
19
20Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
21---
22 librepo/handle.c | 2 +-
23 1 file changed, 1 insertion(+), 1 deletion(-)
24
25diff --git a/librepo/handle.c b/librepo/handle.c
26index ccea79b..ff39db4 100644
27--- a/librepo/handle.c
28+++ b/librepo/handle.c
29@@ -629,7 +629,7 @@ lr_handle_setopt(LrHandle *handle,
30
31 case LRO_SSLVERIFYHOST:
32 handle->sslverifyhost = va_arg(arg, long) ? 2 : 0;
33- c_rc = curl_easy_setopt(c_h, CURLOPT_SSL_VERIFYPEER, handle->sslverifyhost);
34+ c_rc = curl_easy_setopt(c_h, CURLOPT_SSL_VERIFYHOST, handle->sslverifyhost);
35 break;
36
37 case LRO_SSLCLIENTCERT:
38--
392.7.4
40