aboutsummaryrefslogtreecommitdiffstats
path: root/src/aia-get.c
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-02-18 19:34:03 +0200
commit7a98942f2275aef1a704d25f063cc14436ef4f15 (patch)
tree351d3fde27546b08cef09ec334c1e36ea889c473 /src/aia-get.c
parentb2676e6e8aae3c6002e9ed3f2c0fa68176051d96 (diff)
binding: identity: disable endpoint certificate checks
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>
Diffstat (limited to 'src/aia-get.c')
-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);
}