Lines Matching refs:buff
41 char buff[8 * 1024], body[1024]; in PetscGoogleDriveRefresh() local
70 …le.com/o/oauth2/token", NULL, "application/x-www-form-urlencoded", body, ssl, buff, sizeof(buff))); in PetscGoogleDriveRefresh()
74 PetscCall(PetscPullJSONValue(buff, "access_token", access_token, tokensize, &found)); in PetscGoogleDriveRefresh()
124 char head[1024], buff[8 * 1024], *body, *title; in PetscGoogleDriveUpload() local
171 …e/v2/files/", head, "multipart/related; boundary=\"foo_bar_baz\"", body, ssl, buff, sizeof(buff))); in PetscGoogleDriveUpload()
175 PetscCall(PetscStrstr(buff, "\"title\"", &title)); in PetscGoogleDriveUpload()
214 char buff[8 * 1024], *ptr, body[1024]; in PetscGoogleDriveAuthorize() local
230 ptr = fgets(buff, 1024, stdin); in PetscGoogleDriveAuthorize()
232 PetscCall(PetscStrlen(buff, &len)); in PetscGoogleDriveAuthorize()
233 buff[len - 1] = 0; /* remove carriage return at end of line */ in PetscGoogleDriveAuthorize()
238 PetscCall(PetscStrlcat(body, buff, sizeof(body))); in PetscGoogleDriveAuthorize()
246 …le.com/o/oauth2/token", NULL, "application/x-www-form-urlencoded", body, ssl, buff, sizeof(buff))); in PetscGoogleDriveAuthorize()
250 PetscCall(PetscPullJSONValue(buff, "access_token", access_token, tokensize, &found)); in PetscGoogleDriveAuthorize()
252 PetscCall(PetscPullJSONValue(buff, "refresh_token", refresh_token, tokensize, &found)); in PetscGoogleDriveAuthorize()