summaryrefslogtreecommitdiff
path: root/ext/digest/md5/md5.h
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-02-24 08:20:50 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-02-24 08:20:50 +0000
commitd9479e72a682af54db9a802b3085670de719a4a8 (patch)
treefe4f820431ed1b67f6758d02b58e0c989d58030c /ext/digest/md5/md5.h
parent018c5191bfc13be1c002f4fff64b572a031a4a7a (diff)
Merge from rough.
- Avoid namespace pollution. (MD5_* -> rb_Digest_MD5_*, etc.) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/digest/md5/md5.h')
-rw-r--r--ext/digest/md5/md5.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/ext/digest/md5/md5.h b/ext/digest/md5/md5.h
index 4b1f00b..fc41380 100644
--- a/ext/digest/md5/md5.h
+++ b/ext/digest/md5/md5.h
@@ -40,7 +40,7 @@
*/
/* $OrigId: md5.h,v 1.2 2001/03/26 08:57:14 matz Exp $ */
-/* $RoughId: md5.h,v 1.2 2001/07/13 19:48:41 knu Exp $ */
+/* $RoughId: md5.h,v 1.3 2002/02/24 08:14:31 knu Exp $ */
/* $Id$ */
#ifndef MD5_INCLUDED
@@ -62,6 +62,14 @@ typedef struct md5_state_s {
uint8_t buffer[64]; /* accumulate block */
} MD5_CTX;
+#ifdef RUBY
+#define MD5_Init rb_Digest_MD5_Init
+#define MD5_Update rb_Digest_MD5_Update
+#define MD5_Final rb_Digest_MD5_Final
+#define MD5_End rb_Digest_MD5_End
+#define MD5_Equal rb_Digest_MD5_Equal
+#endif
+
void MD5_Init _((MD5_CTX *pms));
void MD5_Update _((MD5_CTX *pms, const uint8_t *data, size_t nbytes));
void MD5_Final _((uint8_t *digest, MD5_CTX *pms));