X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=http.h;h=4eb4e808e5731a3a9a650ca4c1efb3e471604d05;hb=7a4bb55f3a47756b5cd9ca2d120c7fe119439e81;hp=eebf40688cf6f695d12f9fe78e8e6b99bb44a8c4;hpb=073312b4c7a15d484d2ffdc2eb4a406df9cf9c55;p=thirdparty%2Fgit.git diff --git a/http.h b/http.h index eebf40688c..4eb4e808e5 100644 --- a/http.h +++ b/http.h @@ -223,8 +223,8 @@ struct http_object_request { CURLcode curl_result; char errorstr[CURL_ERROR_SIZE]; long http_code; - unsigned char sha1[20]; - unsigned char real_sha1[20]; + struct object_id oid; + struct object_id real_oid; git_SHA_CTX c; git_zstream stream; int zret; @@ -233,7 +233,7 @@ struct http_object_request { }; extern struct http_object_request *new_http_object_request( - const char *base_url, unsigned char *sha1); + const char *base_url, const struct object_id *oid); extern void process_http_object_request(struct http_object_request *freq); extern int finish_http_object_request(struct http_object_request *freq); extern void abort_http_object_request(struct http_object_request *freq);