summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaquel Medina <raquel.medina@konsulko.com>2019-02-18 16:33:25 +0200
committerraquel medina <raquel.medina@konsulko.com>2019-05-06 10:15:49 +0000
commitc9b5a5ea3a2a485a71fdf176026d5bc7bbf78a31 (patch)
tree8a6c7c27ab9063ee82fe62c682ee60395b146509
parentf122b8434c8776e5a19bfb6beda5db093489272b (diff)
agl-graphapi.forgerocklabs.org's certificate expired on Friday, October 26, 2018; disable certificate checks to allow for user profile data retrieval. Original work from Scott Murray <scott.murray@konsulko.com>. Bug-AGL: SPEC-2158 Change-Id: Idebc7d2afa6ad7b40550bc19b4012ea8b277d126 Signed-off-by: Raquel Medina <raquel.medina@konsulko.com> Signed-off-by: Scott Murray <scott.murray@konsulko.com> (cherry picked from commit 7a98942f2275aef1a704d25f063cc14436ef4f15)
-rw-r--r--src/aia-get.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/aia-get.c b/src/aia-get.c
index 4536e25..8def6ad 100644
--- a/src/aia-get.c
+++ b/src/aia-get.c
@@ -60,6 +60,12 @@ static void perform_query(struct keyrequest *kr)
if (!curl)
kr->callback(kr->closure, 0, "out of memory", 0);
else {
+ /*
+ * FIXME: forgerock's certificate expired on October 26, 2018.
+ * Disable certificate checks until it gets renewed.
+ */
+ curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0);
+
oidc_add_bearer(curl, kr->token);
curl_wrap_do(curl, perform_query_callback, kr);
}