commit 94ef25578c680bc8171b33b5e5b6037f2872abcb from: Omar Polo date: Sat Feb 04 13:54:32 2023 UTC add hash enum and s/sha1/hash in got_object_id commit - 3c23f6cdb61cc63d6fd9ecbcc015cd1347793eb1 commit + 94ef25578c680bc8171b33b5e5b6037f2872abcb blob - 6a161bc20df5aaa7789395593ab2ffc6fbe4b1fb blob + 72acf5a82fd1d870800cbf4318eba1e7adffd15e --- include/got_object.h +++ include/got_object.h @@ -15,9 +15,15 @@ */ #define GOT_OBJECT_ID_HEX_MAXLEN SHA1_DIGEST_STRING_LENGTH + +enum got_hash_algorithm { + GOT_HASH_SHA1, + GOT_HASH_SHA256, +}; struct got_object_id { - u_int8_t sha1[SHA1_DIGEST_LENGTH]; + u_int8_t hash[SHA1_DIGEST_LENGTH]; + enum got_hash_algorithm algo; }; struct got_blob_object;