From a3bae55d41f5159df3a0125f02a8fa322e81bbe3 Mon Sep 17 00:00:00 2001 From: Michał Cichoń Date: Tue, 25 Aug 2015 06:45:41 +0200 Subject: libpiano: Abstract out blowfish cipher to PianoCipher_t so different implementations than gcrypt can be used. --- src/libpiano/request.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libpiano/request.c') diff --git a/src/libpiano/request.c b/src/libpiano/request.c index 02b4b43..a97abb5 100644 --- a/src/libpiano/request.c +++ b/src/libpiano/request.c @@ -24,7 +24,7 @@ THE SOFTWARE. #include "../config.h" #include -#include +#include #include #include #include @@ -94,7 +94,7 @@ PianoReturn_t PianoRequest (PianoHandle_t *ph, PianoRequest_t *req, json_object_object_add (j, "partnerAuthToken", json_object_new_string (ph->partner.authToken)); json_object_object_add (j, "syncTime", - json_object_new_int (timestamp)); + json_object_new_int64 (timestamp)); CURL * const curl = curl_easy_init (); urlencAuthToken = curl_easy_escape (curl, @@ -487,7 +487,7 @@ PianoReturn_t PianoRequest (PianoHandle_t *ph, PianoRequest_t *req, json_object_object_add (j, "userAuthToken", json_object_new_string (ph->user.authToken)); json_object_object_add (j, "syncTime", - json_object_new_int (timestamp)); + json_object_new_int64 (timestamp)); } /* json to string */ -- cgit v1.2.3