Commit Diff


commit - 283e0dd797af94cb97c099ffa83d57b55a595876
commit + 588a8092bc282294ee23585991e81586905a8fd4
blob - 9d58d1d4f3c73ef9a8754f4cbf4e8532acff5a2a
blob + acbfc95511dfa09f3f41ff967758c4aa892e70b3
--- got/got.c
+++ got/got.c
@@ -28,6 +28,8 @@
 #include <limits.h>
 #include <locale.h>
 #include <ctype.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
blob - a7c0b49eb169b3371b17192a5ec228ef57483eb5
blob + 2fc006e5ce237693e0a364ef408bcbdfb751268d
--- gotadmin/gotadmin.c
+++ gotadmin/gotadmin.c
@@ -23,6 +23,8 @@
 #include <errno.h>
 #include <locale.h>
 #include <inttypes.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <signal.h>
blob - c325f57c4de7b7c6a9487f451080651916364add
blob + 38e4349026233f676c860654e1ebed2cc32c13f3
--- gotctl/gotctl.c
+++ gotctl/gotctl.c
@@ -24,6 +24,7 @@
 #include <limits.h>
 #include <locale.h>
 #include <sha1.h>
+#include <sha2.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
blob - bf64d2744e1d5ba3fab4b5543aa89d7eeed41534
blob + dc12f7d7d4e12f45b25c2ea041355a326ba36d91
--- gotd/auth.c
+++ gotd/auth.c
@@ -26,6 +26,7 @@
 #include <pwd.h>
 #include <grp.h>
 #include <sha1.h>
+#include <sha2.h>
 #include <signal.h>
 #include <stdint.h>
 #include <stdio.h>
blob - 00d1d81a42f9598ad0cba57a03f07fb868556714
blob + add224699cba16029f54df09a6eb6251d2024151
--- gotd/gotd.c
+++ gotd/gotd.c
@@ -31,6 +31,7 @@
 #include <pwd.h>
 #include <imsg.h>
 #include <sha1.h>
+#include <sha2.h>
 #include <signal.h>
 #include <siphash.h>
 #include <stdarg.h>
blob - 0700417f4a9557b15e2d4bbbdb112efdb79a21fa
blob + 3813dd6071aae8355cf41ade517cd479db0cd5af
--- gotd/imsg.c
+++ gotd/imsg.c
@@ -24,6 +24,7 @@
 #include <limits.h>
 #include <poll.h>
 #include <sha1.h>
+#include <sha2.h>
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>
blob - caeacc5c09a64de9669eb5370d3ac0cbb3071b45
blob + a0953584fa86b2eef4d45cc9ccb6d5823eb55f00
--- gotd/listen.c
+++ gotd/listen.c
@@ -29,6 +29,7 @@
 #include <imsg.h>
 #include <limits.h>
 #include <sha1.h>
+#include <sha2.h>
 #include <signal.h>
 #include <unistd.h>
 
blob - 0ac72ed607c755f9ef479ef7340a69603da1fba3
blob + 2a7768e3841b5f1a6bedaba38b27170496ecfceb
--- gotd/parse.y
+++ gotd/parse.y
@@ -34,6 +34,7 @@
 #include <imsg.h>
 #include <limits.h>
 #include <sha1.h>
+#include <sha2.h>
 #include <stdarg.h>
 #include <stdlib.h>
 #include <stdio.h>
blob - e78dd4fb4cada73349067798a377d8d17194da2e
blob + e5c21b47893334094185748ac154995dee4065d6
--- gotd/privsep_stub.c
+++ gotd/privsep_stub.c
@@ -21,6 +21,7 @@
 #include <sys/uio.h>
 
 #include <sha1.h>
+#include <sha2.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
blob - de57ba5027a29b8074cadbe8bb9367f848c92623
blob + 72bc2318a2e2469d1d4a9457ed349c23d3702aea
--- gotd/repo_imsg.c
+++ gotd/repo_imsg.c
@@ -21,6 +21,7 @@
 #include <event.h>
 #include <limits.h>
 #include <sha1.h>
+#include <sha2.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <string.h>
blob - 0daab349e7c710cf67f34278732cdcaea2cf66e6
blob + 5c07746639cfa5d1c884730820173d58ce732e99
--- gotd/repo_read.c
+++ gotd/repo_read.c
@@ -25,6 +25,7 @@
 #include <limits.h>
 #include <poll.h>
 #include <sha1.h>
+#include <sha2.h>
 #include <siphash.h>
 #include <stdio.h>
 #include <string.h>
blob - 0fb89fd6fe2e635a7f64f6975e4f362bae0e0721
blob + 6d6724b362817fa71e5534b1f0d9211eaa8bb269
--- gotd/repo_write.c
+++ gotd/repo_write.c
@@ -30,6 +30,7 @@
 #include <limits.h>
 #include <poll.h>
 #include <sha1.h>
+#include <sha2.h>
 #include <unistd.h>
 #include <zlib.h>
 
blob - e56cd47cb6f50b93b2fe70db937b9c3beabcb04f
blob + 5bab9972301d215e1afe68a371dab2c35484b9bd
--- gotd/session.c
+++ gotd/session.c
@@ -25,6 +25,7 @@
 #include <event.h>
 #include <limits.h>
 #include <sha1.h>
+#include <sha2.h>
 #include <signal.h>
 #include <stdint.h>
 #include <stdio.h>
blob - 155e1d060068073688a48f0ea1b8905b0d7bac1c
blob + beb02307a41d585965a6d2853eb38b69adeedf87
--- gotsh/gotsh.c
+++ gotsh/gotsh.c
@@ -23,6 +23,7 @@
 #include <imsg.h>
 #include <limits.h>
 #include <sha1.h>
+#include <sha2.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
blob - 225c2b3594850d1cc45a42f5729a68ea1540829d
blob + cdb4eb8cef80c88090519020c96ce35091a20af8
--- gotwebd/got_operations.c
+++ gotwebd/got_operations.c
@@ -20,6 +20,9 @@
 #include <sys/stat.h>
 
 #include <event.h>
+#include <imsg.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
blob - 7f871577f71bf7ed192f9f4d4775c3309b27e7b0
blob + 160b3b2fadb1f3bd1742bbd99718df14c54ebef5
--- gotwebd/gotweb.c
+++ gotwebd/gotweb.c
@@ -30,6 +30,8 @@
 #include <event.h>
 #include <fcntl.h>
 #include <imsg.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
blob - 9e131f7f8ea2410519cb28093419e4df01e1ddac
blob + bea0461c4b1286b162ce1d279fb93dd847ff4ab5
--- gotwebd/pages.tmpl
+++ gotwebd/pages.tmpl
@@ -26,6 +26,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <imsg.h>
 
 #include "got_error.h"
blob - 531a4c6c7f0f7ee650c3ef2b49aa61e0a2865500
blob + 9929a1aa625fea52c414b294969dc44f263e3738
--- lib/blame.c
+++ lib/blame.c
@@ -20,6 +20,8 @@
 #include <sys/stat.h>
 
 #include <errno.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <string.h>
 #include <stdio.h>
 #include <stdlib.h>
blob - ae0d1c4a107ec6772002d0f5ae5e06b426fe3afe
blob + 2bb3dd52ddb0e8091833861ce2a070085d67fd89
--- lib/commit_graph.c
+++ lib/commit_graph.c
@@ -22,6 +22,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <zlib.h>
 #include <ctype.h>
 
blob - 4ba630b800dab6a323fdb7c5e2d6927c17956784
blob + 2e454602c2119dabd994881cce3b363f4ac0b9ac
--- lib/deflate.c
+++ lib/deflate.c
@@ -20,6 +20,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <zlib.h>
 #include <time.h>
 
blob - 618841b580474c8ab1894240045e221759e59487
blob + e43d98ae41c70e48398afaded344bc66a394b968
--- lib/delta.c
+++ lib/delta.c
@@ -22,6 +22,8 @@
 #include <string.h>
 #include <limits.h>
 #include <zlib.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <time.h>
 #include <zlib.h>
 
blob - 09b40b8dd8fc51e6f52338e23640fd344f9a41ea
blob + 50e94868c22c48a9885de0821e148d12aeb665f3
--- lib/delta_cache.c
+++ lib/delta_cache.c
@@ -19,6 +19,8 @@
 #include <stdlib.h>
 #include <string.h>
 #include <stdint.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <stdio.h>
 #include <zlib.h>
 #include <limits.h>
blob - 6f2dfcfbe30bcc4ee982d27c6380d19f5ac22b3a
blob + 2f6560d88a2f06a6b03052b960f564e427694e9d
--- lib/diff.c
+++ lib/diff.c
@@ -21,6 +21,8 @@
 #include <stdlib.h>
 #include <string.h>
 #include <limits.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <zlib.h>
 
 #include "got_compat.h"
blob - ddbcb7a24e9176cc112a20f881d069c75b749a37
blob + ff8cf0b4e609ae11ccb229f749a19390a8a22563
--- lib/diff3.c
+++ lib/diff3.c
@@ -69,6 +69,8 @@
 
 #include <ctype.h>
 #include <limits.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <stdio.h>
 #include <stdarg.h>
 #include <stdlib.h>
blob - f024469b941b3c0d551b8050cdb33fe296707d8f
blob + 150b93739cdff4e0ec4e0d2e68648cb53fd85d99
--- lib/diffreg.c
+++ lib/diffreg.c
@@ -20,6 +20,8 @@
 #include <sys/queue.h>
 
 #include <errno.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
blob - 65f80e0880b3c1a7d26448fd7d30e83e481613c9
blob + 9b2ba47e9e84878e6eacc2b00b8578c20ca28203
--- lib/error.c
+++ lib/error.c
@@ -22,6 +22,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <zlib.h>
 
 #include "got_compat.h"
blob - b997da2f90d67ea82b16f716c7b3f1d4b5a48023
blob + c01cc8837461eb7b1dfd30772793a0de45a6d5e1
--- lib/fetch.c
+++ lib/fetch.c
@@ -30,6 +30,8 @@
 #include <stdlib.h>
 #include <string.h>
 #include <stdint.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <unistd.h>
 #include <zlib.h>
 #include <ctype.h>
blob - 9ce4aae5c7623e71a333b7d3ad82e754ffc46af3
blob + 2cc134969ac412fe6c39a10554ded433315e8126
--- lib/fileindex.c
+++ lib/fileindex.c
@@ -23,6 +23,9 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sha1.h>
+#include <sha2.h>
+#include <endian.h>
 #include <limits.h>
 #include <unistd.h>
 
blob - 3659cf2de9d905cce373d19b59337a6ce0dd904d
blob + 8ddb2147d7b6d7bd0bdaa4c86fbb9528a9f3a2ba
--- lib/gotconfig.c
+++ lib/gotconfig.c
@@ -25,6 +25,9 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <stdint.h>
+#include <imsg.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <limits.h>
 
 #include "got_compat.h"
blob - 9440011aed7234a7fffaed90fe2fb8b55fb0d2c9
blob + a7430b2862ad5a27a62c256b504986391d92854d
--- lib/inflate.c
+++ lib/inflate.c
@@ -20,6 +20,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <poll.h>
 #include <unistd.h>
 #include <zlib.h>
blob - 076a2ad67006b36618c1b5b08b7f512c5f69d3dc
blob + a546494da113e2d558fc2eb147d3141a079c7785
--- lib/object.c
+++ lib/object.c
@@ -25,6 +25,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <unistd.h>
 #include <zlib.h>
 #include <libgen.h>
blob - b1da1e4401a9bbc8ff1965298c713b5f73d95ba7
blob + 82f79f01406b91db661457f0b87bd9d528f1085d
--- lib/object_cache.c
+++ lib/object_cache.c
@@ -23,6 +23,8 @@
 #include <stdint.h>
 #include <string.h>
 #include <limits.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <zlib.h>
 
 #include "got_error.h"
blob - c253f2858befebc7bcbb97937e35ee98403a4738
blob + be13c8d702b305317bd3e969900e57e10fc8ed19
--- lib/object_create.c
+++ lib/object_create.c
@@ -27,6 +27,8 @@
 #include <stdlib.h>
 #include <string.h>
 #include <stdint.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <unistd.h>
 #include <zlib.h>
 
blob - dc9175ad60883e788dd8423ab2847d17d17539ce
blob + 944f6f3a68d0016b65b2e79f089688fc3c79b774
--- lib/object_idset.c
+++ lib/object_idset.c
@@ -18,6 +18,8 @@
 #include <stdlib.h>
 #include <stdint.h>
 #include <string.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <stdio.h>
 #include <zlib.h>
 #include <limits.h>
blob - 40afcdfffec70644278cf7d34e73724d4932e5ff
blob + 0d4231ebe983b9f0f36e32dc6ea4cfa217100d03
--- lib/object_open_io.c
+++ lib/object_open_io.c
@@ -21,6 +21,7 @@
 #include <errno.h>
 #include <limits.h>
 #include <sha1.h>
+#include <sha2.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
blob - a09a1387ed6a59da493df3eba699bf1438a8006c
blob + be5d923fcb9d1492a8174df7faf40730e0310454
--- lib/object_open_privsep.c
+++ lib/object_open_privsep.c
@@ -27,6 +27,8 @@
 #include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <limits.h>
 #include <unistd.h>
 
blob - 7ddc0d0f970d44918913e45dc16467a1281efd26
blob + 9134c4d89a2ac85bc8f042fcac6c155eb388b42d
--- lib/object_parse.c
+++ lib/object_parse.c
@@ -27,6 +27,8 @@
 #include <stdlib.h>
 #include <string.h>
 #include <stdint.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <zlib.h>
 #include <ctype.h>
 #include <limits.h>
blob - 444fd28789dbadb810a4b07b08868050fcfabe79
blob + 88eac8e049e09940fdf4502093bb94a1dd401155
--- lib/pack.c
+++ lib/pack.c
@@ -29,6 +29,9 @@
 #include <stdlib.h>
 #include <string.h>
 #include <limits.h>
+#include <sha1.h>
+#include <sha2.h>
+#include <endian.h>
 #include <unistd.h>
 #include <zlib.h>
 
blob - 1d2bcd07b13eee0369a1fdd6bcd48e349cd744b2
blob + 0d9ed876952dec05c8f37988659f118f2b0e600b
--- lib/pack_create.c
+++ lib/pack_create.c
@@ -29,6 +29,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <time.h>
 #include <unistd.h>
 #include <limits.h>
blob - f9b0db5b972aba181cf96805d21968bce7c814c6
blob + 71dc7c652b8d8bc52bbbd8f75326fca9344bd271
--- lib/pack_create_io.c
+++ lib/pack_create_io.c
@@ -21,6 +21,7 @@
 #include <sys/uio.h>
 
 #include <sha1.h>
+#include <sha2.h>
 #include <limits.h>
 #include <stdio.h>
 #include <stdint.h>
blob - c142e7072d23a5474652d25759ba3212fcefc072
blob + 0477d48fafab7ef9ac05dbd33e0dbd2db07a5d6c
--- lib/pack_create_privsep.c
+++ lib/pack_create_privsep.c
@@ -19,6 +19,8 @@
 #include <sys/queue.h>
 #include <sys/uio.h>
 
+#include <sha1.h>
+#include <sha2.h>
 #include <limits.h>
 #include <stdio.h>
 #include <stdint.h>
blob - c976951c92cbd2df0f5c45db8df28a086b6de1bd
blob + 109239b2d4894e2c87f0148253ee45502875815c
--- lib/pack_index.c
+++ lib/pack_index.c
@@ -31,6 +31,9 @@
 #include <stdlib.h>
 #include <string.h>
 #include <ctype.h>
+#include <sha1.h>
+#include <sha2.h>
+#include <endian.h>
 #include <fcntl.h>
 #include <unistd.h>
 #include <zlib.h>
blob - 398a62a30ab5ccc3cbc1d92618fb31d5c80dc9bd
blob + 8bce7c79a63eb6eb98f5ff2c4da3480873214091
--- lib/patch.c
+++ lib/patch.c
@@ -29,6 +29,8 @@
 #include <ctype.h>
 #include <errno.h>
 #include <limits.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
blob - a5915a12dc677151a95503eaef04dc123e890fb4
blob + e59c5ab3dda64a73d6bd82c91cafb0cf8961e5ca
--- lib/privsep.c
+++ lib/privsep.c
@@ -29,6 +29,9 @@
 #include <errno.h>
 #include <stdint.h>
 #include <poll.h>
+#include <imsg.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <unistd.h>
 #include <zlib.h>
 
blob - 178085a6d3a9da157f1c058c93758a7f8607f13f
blob + b278171f9c20239bd6c67a41282916f84ff9e937
--- lib/read_gitconfig.c
+++ lib/read_gitconfig.c
@@ -20,6 +20,8 @@
 #include <event.h>
 #include <fcntl.h>
 #include <imsg.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
blob - bb395ed8acf27a029c07482c594674dc90ca0213
blob + d68076529d72aa01f04cfc4391702b31cd971737
--- lib/read_gitconfig_privsep.c
+++ lib/read_gitconfig_privsep.c
@@ -23,6 +23,8 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <limits.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdint.h>
blob - f67367d1512081ce314c3fdd7062701103036d17
blob + 05502a62412786df6c1eb1c76b4411c0072d3054
--- lib/read_gotconfig_privsep.c
+++ lib/read_gotconfig_privsep.c
@@ -26,6 +26,8 @@
 #include <stdio.h>
 #include <stdint.h>
 #include <imsg.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <limits.h>
 
 #include "got_error.h"
blob - db9381bb5a22e7386841403b87c3d2a98dc43ab5
blob + 240489c3fc887c1ce88a8c3855db26b5f2f3e9d0
--- lib/reference.c
+++ lib/reference.c
@@ -21,6 +21,8 @@
 #include <errno.h>
 #include <dirent.h>
 #include <limits.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
blob - 223a1aad55da449f067a61b7dd4dd3d7be9017c2
blob + cb43902e3c3f12ec6557c016120b8f8eb3b84eed
--- lib/repository.c
+++ lib/repository.c
@@ -29,6 +29,8 @@
 #include <dirent.h>
 #include <stdlib.h>
 #include <stdio.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <string.h>
 #include <time.h>
 #include <unistd.h>
blob - 76b856371e7b492ce867b7dc85ea9aad5bf30125
blob + d7c8c157af446b252d5c468bf1973c70397fdff3
--- lib/repository_admin.c
+++ lib/repository_admin.c
@@ -25,6 +25,8 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <stdint.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
blob - 0486692895e4b6b08fffd79bda3f3e48d234eead
blob + 27ef7aeeeadad231b60c84628b00f78b01f736ef
--- lib/send.c
+++ lib/send.c
@@ -31,6 +31,8 @@
 #include <stdlib.h>
 #include <string.h>
 #include <stdint.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <unistd.h>
 #include <zlib.h>
 #include <ctype.h>
blob - 898fa4ab8d658251f4f4153835e83d9a03960ddf
blob + 60dd15ebfc8b426232f914b885a6eee42cb2d796
--- lib/serve.c
+++ lib/serve.c
@@ -23,6 +23,7 @@
 #include <poll.h>
 #include <limits.h>
 #include <sha1.h>
+#include <sha2.h>
 #include <stdio.h>
 #include <stdint.h>
 #include <stdlib.h>
blob - 67cb8d0ec4656cfe59e70cdd326f7c9cbbdafa68
blob + d5f67b96e272e2e65f3e2ec69bf558f0d0aa56de
--- lib/sha1.c
+++ lib/sha1.c
@@ -15,6 +15,8 @@
  */
 
 #include <sys/types.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>
blob - bb6f7b48aba8f212300f99f8f6124870d2f9b8f4
blob + ec1069f20f569d936fc817ec454e7fc6fddfbc56
--- lib/sigs.c
+++ lib/sigs.c
@@ -28,6 +28,8 @@
 #include <string.h>
 #include <err.h>
 #include <assert.h>
+#include <sha1.h>
+#include <sha2.h>
 
 #include "got_error.h"
 #include "got_date.h"
blob - 8438fa2bd487df57620eb38e696505af64782a4d
blob + c6a90ed062ccd606964a33008ecc5f3041cd4842
--- lib/worktree.c
+++ lib/worktree.c
@@ -27,6 +27,8 @@
 #include <fcntl.h>
 #include <errno.h>
 #include <unistd.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <zlib.h>
 #include <fnmatch.h>
 #include <libgen.h>
blob - 6899fcc655eccfe88e1d3e566ff3f224b5cbc71b
blob + ccb532f37fe347bcd809066a0e63064cea7f21d9
--- lib/worktree_open.c
+++ lib/worktree_open.c
@@ -20,6 +20,8 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <limits.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <stddef.h>
 #include <stdio.h>
 #include <stdlib.h>
blob - 58acac3d67d7dfc870a3cb123211735a54f6d1ae
blob + 87bcbeb9778d606478f97973c34c3545f89722ec
--- libexec/got-fetch-pack/got-fetch-pack.c
+++ libexec/got-fetch-pack/got-fetch-pack.c
@@ -28,6 +28,8 @@
 #include <stdlib.h>
 #include <string.h>
 #include <ctype.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <fcntl.h>
 #include <unistd.h>
 #include <zlib.h>
blob - a7606b8b2937a303d4d0f298209c1dabd9bb721b
blob + d9929d3bddef10bb98daaccb83c473c2bdd238bb
--- libexec/got-index-pack/got-index-pack.c
+++ libexec/got-index-pack/got-index-pack.c
@@ -20,6 +20,8 @@
 #include <sys/mman.h>
 #include <sys/uio.h>
 
+#include <sha1.h>
+#include <sha2.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
blob - 278ffbba28800315d824bf942dd2a401bd045cb6
blob + 88d74b28ffbec067325d8e486ff3d2d2ab6c7cd0
--- libexec/got-read-blob/got-read-blob.c
+++ libexec/got-read-blob/got-read-blob.c
@@ -25,6 +25,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <unistd.h>
 #include <zlib.h>
 
blob - 1eaeb35083c3c9cfd8ce9c6e3edfeb75a140046b
blob + 13b6fb33b7a027a67fc0b3d26d0d406dc484cb42
--- libexec/got-read-commit/got-read-commit.c
+++ libexec/got-read-commit/got-read-commit.c
@@ -25,6 +25,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <unistd.h>
 #include <zlib.h>
 
blob - ec661ca8daa84e29923797dbbf72c7809c986bf8
blob + 1bad521d33f94a003e59a57fd16703de41e81398
--- libexec/got-read-gitconfig/got-read-gitconfig.c
+++ libexec/got-read-gitconfig/got-read-gitconfig.c
@@ -25,6 +25,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <unistd.h>
 #include <zlib.h>
 
blob - 4236ba777f0f997b7f5c92ac68e2480a8f3bf64f
blob + b3925fb4c4c7b64666969c2e9547e2ca813132bc
--- libexec/got-read-gotconfig/got-read-gotconfig.c
+++ libexec/got-read-gotconfig/got-read-gotconfig.c
@@ -25,6 +25,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <unistd.h>
 #include <zlib.h>
 
blob - d3b5f4a5b91d1b6a8f9aeacbfec036ca36490d07
blob + a450e945b50a92bc3875f7252f1fc8e3564f9646
--- libexec/got-read-object/got-read-object.c
+++ libexec/got-read-object/got-read-object.c
@@ -25,6 +25,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <unistd.h>
 #include <zlib.h>
 
blob - f62b5b34419a28d58f8666b7c7f128f4fdde0513
blob + 275aa96fd9c5832b2f36bc988b8d0cecbcf0d82d
--- libexec/got-read-pack/got-read-pack.c
+++ libexec/got-read-pack/got-read-pack.c
@@ -28,6 +28,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <unistd.h>
 #include <zlib.h>
 
blob - dcd968bbd26c2c9a00343e0e03dea705f1d2e562
blob + f6d3344da01fc58b0c5ff5c93250a5d9cc7004a3
--- libexec/got-read-patch/got-read-patch.c
+++ libexec/got-read-patch/got-read-patch.c
@@ -42,6 +42,8 @@
 #include <ctype.h>
 #include <limits.h>
 #include <paths.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
blob - e740bc75a28466bbe855254ba72d054c594cf5ae
blob + 1922e7763282b5dc4ba25e0efde728f4041fc1f7
--- libexec/got-read-tag/got-read-tag.c
+++ libexec/got-read-tag/got-read-tag.c
@@ -25,6 +25,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <unistd.h>
 #include <zlib.h>
 
blob - d027736bb60dedd7624176fa26efa4a03149ea17
blob + 3086a3694e4d93b72cc881fd1cbb29f4e355269c
--- libexec/got-read-tree/got-read-tree.c
+++ libexec/got-read-tree/got-read-tree.c
@@ -25,6 +25,8 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <unistd.h>
 #include <zlib.h>
 
blob - a98746344cc5f8e8e258cde72dee8d66b9c1e846
blob + 4e6166391e21ab54e9b5db0fa8fb826ce8298bfa
--- libexec/got-send-pack/got-send-pack.c
+++ libexec/got-send-pack/got-send-pack.c
@@ -29,6 +29,8 @@
 #include <stdlib.h>
 #include <string.h>
 #include <ctype.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <fcntl.h>
 #include <unistd.h>
 #include <zlib.h>
blob - 7da727494b55ea3df7bf21b3c2badfd046c89e6f
blob + e4defb763447ad087297a8dbd741450eb4563f04
--- regress/fetch/fetch_test.c
+++ regress/fetch/fetch_test.c
@@ -23,6 +23,8 @@
 #include <string.h>
 #include <unistd.h>
 #include <err.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <zlib.h>
 #include <time.h>
 
blob - fed4d6abf79dc749b693c464930e61ae3909047f
blob + 686196fc5aecb11d94216d1536ba42fd2acaaf77
--- regress/idset/idset_test.c
+++ regress/idset/idset_test.c
@@ -22,6 +22,8 @@
 #include <stdio.h>
 #include <unistd.h>
 #include <err.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <zlib.h>
 #include <time.h>
 
blob - 538114b0dd798c030f1eb44257fbac707152a44f
blob + 8bbda2f4db3b4497abd83f10b71f1bad31b344d7
--- tog/tog.c
+++ tog/tog.c
@@ -26,6 +26,8 @@
 #include <curses.h>
 #include <panel.h>
 #include <locale.h>
+#include <sha1.h>
+#include <sha2.h>
 #include <signal.h>
 #include <stdlib.h>
 #include <stdarg.h>