aboutsummaryrefslogtreecommitdiffstats
path: root/agl-identity-service/src/agl-forgerock.c
diff options
context:
space:
mode:
authorjobol <jose.bollo@iot.bzh>2017-11-09 11:24:03 +0100
committerjobol <jose.bollo@iot.bzh>2017-11-09 11:24:03 +0100
commit5f52a397574ecc6f3af9a5a7f81c0963b978b228 (patch)
tree4f9d80e7cb831c97e260369f7c37320b5961f271 /agl-identity-service/src/agl-forgerock.c
parentc2fa1fba3c986d64d992e4df5a620b865cd19923 (diff)
Make it compiling
Signed-off-by: jobol <jose.bollo@iot.bzh>
Diffstat (limited to 'agl-identity-service/src/agl-forgerock.c')
-rw-r--r--agl-identity-service/src/agl-forgerock.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/agl-identity-service/src/agl-forgerock.c b/agl-identity-service/src/agl-forgerock.c
index 13308ea..9306c7a 100644
--- a/agl-identity-service/src/agl-forgerock.c
+++ b/agl-identity-service/src/agl-forgerock.c
@@ -16,17 +16,8 @@
*/
#define _GNU_SOURCE
-/*
-#include <errno.h>
-#include <stdint.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <string.h>
-#include <fcntl.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-*/
#include <stdio.h>
+#include <string.h>
#include <json-c/json.h>
@@ -161,7 +152,7 @@ void agl_forgerock_download_request(const char *vin, const char *kind, const cha
int rc;
char *url;
- rc = asprintf(&result, "%s?vin=%s&kind=%s&keytoken=%s", endpoint, vin, kind, key);
+ rc = asprintf(&url, "%s?vin=%s&kind=%s&keytoken=%s", endpoint, vin, kind, key);
if (rc >= 0)
aia_get(url, expiration_delay, oidc_name, oidc_name, downloaded, url);
else