summaryrefslogtreecommitdiff
path: root/net/honeyd/files/patch-compat-sha1.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/honeyd/files/patch-compat-sha1.h')
-rw-r--r--net/honeyd/files/patch-compat-sha1.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/net/honeyd/files/patch-compat-sha1.h b/net/honeyd/files/patch-compat-sha1.h
new file mode 100644
index 000000000000..6dab57bf0bdd
--- /dev/null
+++ b/net/honeyd/files/patch-compat-sha1.h
@@ -0,0 +1,30 @@
+--- compat/sha1.h.orig Thu Apr 14 16:07:26 2005
++++ compat/sha1.h Thu Apr 14 12:52:54 2005
+@@ -18,21 +18,13 @@
+ #include <sys/cdefs.h>
+
+ __BEGIN_DECLS
+-void SHA1Transform(u_int32_t [5], const unsigned char [64])
+- __attribute__((__bounded__(__minbytes__,1,5)))
+- __attribute__((__bounded__(__minbytes__,2,64)));
++void SHA1Transform(u_int32_t [5], const unsigned char [64]);
+ void SHA1Init(SHA1_CTX *);
+-void SHA1Update(SHA1_CTX *, const unsigned char *, unsigned int)
+- __attribute__((__bounded__(__string__,2,3)));
+-void SHA1Final(unsigned char [20], SHA1_CTX *)
+- __attribute__((__bounded__(__minbytes__,1,20)));
+-char *SHA1End(SHA1_CTX *, char *)
+- __attribute__((__bounded__(__minbytes__,2,41)));
+-char *SHA1File(char *, char *)
+- __attribute__((__bounded__(__minbytes__,2,41)));
+-char *SHA1Data(const unsigned char *, size_t, char *)
+- __attribute__((__bounded__(__string__,1,2)))
+- __attribute__((__bounded__(__minbytes__,3,41)));
++void SHA1Update(SHA1_CTX *, const unsigned char *, unsigned int);
++void SHA1Final(unsigned char [20], SHA1_CTX *);
++char *SHA1End(SHA1_CTX *, char *);
++char *SHA1File(char *, char *);
++char *SHA1Data(const unsigned char *, size_t, char *);
+ __END_DECLS
+
+ #define SHA1_DIGESTSIZE 20