X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/177f020f122827214159c46dcfe7ded1e3c8d1c3..0509728c8a506f287fa3483d8e8ffaf8fb66d41d:/sbr/oauth.c diff --git a/sbr/oauth.c b/sbr/oauth.c index f286d165..76ff8794 100755 --- a/sbr/oauth.c +++ b/sbr/oauth.c @@ -1,4 +1,6 @@ -/* This code is Copyright (c) 2014, by the authors of nmh. See the +/* oauth.c -- OAuth 2.0 implementation for XOAUTH2 in SMTP and POP3. + * + * This code is Copyright (c) 2014, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. */ @@ -22,6 +24,7 @@ #include #include +#include "lock_file.h" #define JSON_TYPE "application/json" @@ -238,7 +241,7 @@ set_err_http(mh_oauth_ctx *ctx, const struct curl_ctx *curl_ctx) } static char * -make_user_agent() +make_user_agent(void) { const char *curl = curl_version_info(CURLVERSION_NOW)->version; return concat(user_agent, " libcurl/", curl, NULL); @@ -876,7 +879,7 @@ make_query_url(char *s, size_t size, CURL *curl, const char *base_url, ...) } static int -debug_callback(const CURL *handle, curl_infotype type, const char *data, +debug_callback(CURL *handle, curl_infotype type, char *data, size_t size, void *userptr) { FILE *fp = userptr;