X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/93a18dd7a6b92922361383a4e6152380da5f3583..94187a80bd60baab4b9c4b949ad820d730578123:/h/oauth.h diff --git a/h/oauth.h b/h/oauth.h index 1ba53149..7aa112c5 100644 --- a/h/oauth.h +++ b/h/oauth.h @@ -128,9 +128,9 @@ mh_oauth_do_xoauth(const char *user, const char *svc, unsigned char **oauth_res, * * Accesses global m_defs via context_find. * - * On error, return FALSE and set an error in ctx; ctx is always allocated. + * On error, return false and set an error in ctx; ctx is always allocated. */ -boolean +bool mh_oauth_new(mh_oauth_ctx **ctx, const char *svc_name); /* @@ -196,15 +196,15 @@ mh_oauth_authorize(const char *code, mh_oauth_ctx *ctx); /* * Refresh access (and maybe refresh) token if refresh token present. * - * On error, return FALSE and leave cred untouched. + * On error, return false and leave cred untouched. */ -boolean +bool mh_oauth_refresh(mh_oauth_cred *cred); /* * Return whether access token is present and not expired at time T. */ -boolean +bool mh_oauth_access_token_valid(time_t t, const mh_oauth_cred *cred) PURE; /* @@ -220,15 +220,15 @@ mh_oauth_cred_free(mh_oauth_cred *cred); * * Never returns NULL. */ -const char * +char * mh_oauth_cred_fn(const char *svc_name); /* * Serialize OAuth tokens to file. * - * On error, return FALSE. + * On error, return false. */ -boolean +bool mh_oauth_cred_save(FILE *fp, mh_oauth_cred *cred, const char *user); /* @@ -257,6 +257,6 @@ mh_oauth_sasl_client_response(size_t *res_len, * Retrieve the various entries for the OAuth mechanism */ -boolean +bool mh_oauth_get_service_info(const char *svc_name, mh_oauth_service_info *svcinfo, char *errbuf, size_t errbuflen);