Lines Matching refs:buff
109 char buff[8 * 1024], body[1024]; in PetscBoxAuthorize() local
125 PetscCall(PetscStrncpy(buff, (const char *)result + 22, sizeof(buff))); in PetscBoxAuthorize()
130 PetscCall(PetscStrlcat(body, buff, sizeof(body))); in PetscBoxAuthorize()
137 ….com/api/oauth2/token", NULL, "application/x-www-form-urlencoded", body, ssl, buff, sizeof(buff))); in PetscBoxAuthorize()
141 PetscCall(PetscPullJSONValue(buff, "access_token", access_token, tokensize, &found)); in PetscBoxAuthorize()
143 PetscCall(PetscPullJSONValue(buff, "refresh_token", refresh_token, tokensize, &found)); in PetscBoxAuthorize()
178 char buff[8 * 1024], body[1024]; in PetscBoxRefresh() local
211 ….com/api/oauth2/token", NULL, "application/x-www-form-urlencoded", body, ssl, buff, sizeof(buff))); in PetscBoxRefresh()
215 PetscCall(PetscPullJSONValue(buff, "access_token", access_token, tokensize, &found)); in PetscBoxRefresh()
217 PetscCall(PetscPullJSONValue(buff, "refresh_token", new_refresh_token, tokensize, &found)); in PetscBoxRefresh()
273 char head[1024], buff[8 * 1024], *body, *title; in PetscBoxUpload() local
320 …e/v2/files/", head, "multipart/related; boundary=\"foo_bar_baz\"", body, ssl, buff, sizeof(buff))); in PetscBoxUpload()
324 PetscCall(PetscStrstr(buff, "\"title\"", &title)); in PetscBoxUpload()