summaryrefslogtreecommitdiffstats
path: root/include/sha1.h
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2004-05-05 17:09:45 +0000
committermillert <millert@openbsd.org>2004-05-05 17:09:45 +0000
commit687924d3ab2be424f07e59dd8b8d949796d473c2 (patch)
treeadf57ea65d25ed7ccb5fbe166af547b0011536ba /include/sha1.h
parentfix va -> pa decode. 'by all means' deraadt@ (diff)
downloadwireguard-openbsd-687924d3ab2be424f07e59dd8b8d949796d473c2.tar.xz
wireguard-openbsd-687924d3ab2be424f07e59dd8b8d949796d473c2.zip
Make the 2nd arg to SHA1Transform const again and unifdef SHA1HANDSOFF.
It was defined before and there is no need to for this knob...
Diffstat (limited to 'include/sha1.h')
-rw-r--r--include/sha1.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sha1.h b/include/sha1.h
index ab459437474..cb5f6b1ead6 100644
--- a/include/sha1.h
+++ b/include/sha1.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sha1.h,v 1.21 2004/05/03 18:05:08 millert Exp $ */
+/* $OpenBSD: sha1.h,v 1.22 2004/05/05 17:09:45 millert Exp $ */
/*
* SHA-1 in C
@@ -24,7 +24,7 @@ typedef struct {
__BEGIN_DECLS
void SHA1Init(SHA1_CTX *);
void SHA1Pad(SHA1_CTX *);
-void SHA1Transform(u_int32_t [5], u_int8_t [SHA1_BLOCK_LENGTH])
+void SHA1Transform(u_int32_t [5], const u_int8_t [SHA1_BLOCK_LENGTH])
__attribute__((__bounded__(__minbytes__,1,5)))
__attribute__((__bounded__(__minbytes__,2,SHA1_BLOCK_LENGTH)));
void SHA1Update(SHA1_CTX *, const u_int8_t *, size_t)