about summary refs log tree commit diff stats
path: root/source/http.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-10-15 13:07:39 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-10-15 13:07:39 -0400
commit7a22cab34332707ea2fe5d3e690033c424886c9b (patch)
treeb2ee4fa5d5bd308a4d31c75dc993e789a9a45917 /source/http.h
parent4be9c4dadc54197eedded43825995dec9f524cfc (diff)
downloadgen3uploader-7a22cab34332707ea2fe5d3e690033c424886c9b.tar.gz
gen3uploader-7a22cab34332707ea2fe5d3e690033c424886c9b.tar.bz2
gen3uploader-7a22cab34332707ea2fe5d3e690033c424886c9b.zip
Changed auth password to token
Diffstat (limited to 'source/http.h')
-rw-r--r--source/http.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/http.h b/source/http.h index 9597a1d..ed8c017 100644 --- a/source/http.h +++ b/source/http.h
@@ -24,14 +24,13 @@ typedef enum {
24} http_res; 24} http_res;
25 25
26/** 26/**
27 * Submits a JSON request to a web service. Takes ownership of the cJSON object, 27 * Submits a JSON request to a web service. Takes ownership of the cJSON object.
28 * because it needs to embed authentication data in it.
29 */ 28 */
30int submitToApi( 29int submitToApi(
31 const char* endpoint, 30 const char* endpoint,
32 WOLFSSL_CTX* sslContext, 31 WOLFSSL_CTX* sslContext,
33 cJSON* data, 32 cJSON* data,
34 const char* username, 33 const char* username,
35 const char* password); 34 const char* token);
36 35
37#endif /* end of include guard: HTTP_H_A46C206E */ 36#endif /* end of include guard: HTTP_H_A46C206E */