aboutsummaryrefslogtreecommitdiff
path: root/libbutl/sha256c.c
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-12-09 12:57:02 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-12-09 12:57:02 +0200
commitffc931dfb8829c8ae36b171d47f3230e10b67cea (patch)
treedba7ed1adfcf18bae24c472055c723f5a7208dc9 /libbutl/sha256c.c
parent5335c09efe07f01c64e8b24d9b6e00125f7438fe (diff)
Add support for calculating SHA1 checksums
Diffstat (limited to 'libbutl/sha256c.c')
-rw-r--r--libbutl/sha256c.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbutl/sha256c.c b/libbutl/sha256c.c
index 156751c..44873fb 100644
--- a/libbutl/sha256c.c
+++ b/libbutl/sha256c.c
@@ -123,10 +123,10 @@ be64enc(void *pp, uint64_t u)
p[6] = (u >> 8) & 0xff;
p[7] = u & 0xff;
}
-#endif
+#endif /* __FreeBSD__ */
-/* The rest is the unmodified (except for a few explicit casts to make it
- compilable in C++), latest implementation from FreeBSD. */
+/* The rest is the unmodified (except for a few explicit casts to make
+ compilable in C++) latest implementation from FreeBSD sys/crypto/sha2/. */
#include <string.h>