summaryrefslogtreecommitdiff
path: root/ext/digest/md5/md5init.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/digest/md5/md5init.c')
-rw-r--r--ext/digest/md5/md5init.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/digest/md5/md5init.c b/ext/digest/md5/md5init.c
index 1230c17b57..17658f4fce 100644
--- a/ext/digest/md5/md5init.c
+++ b/ext/digest/md5/md5init.c
@@ -8,14 +8,14 @@
#include "md5.h"
#endif
-static algo_t md5 = {
- 1,
+static rb_digest_metadata_t md5 = {
+ RUBY_DIGEST_API_VERSION,
MD5_DIGEST_LENGTH,
MD5_BLOCK_LENGTH,
sizeof(MD5_CTX),
- (hash_init_func_t)MD5_Init,
- (hash_update_func_t)MD5_Update,
- (hash_finish_func_t)MD5_Finish,
+ (rb_digest_hash_init_func_t)MD5_Init,
+ (rb_digest_hash_update_func_t)MD5_Update,
+ (rb_digest_hash_finish_func_t)MD5_Finish,
};
/*