1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/digest/sha2/sha2ossl.c
naruse 937ff7bdeb * ext/digest/sha2/sha2ossl.c: use original SHA384_Final on DragonFly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-07 06:38:36 +00:00

13 lines
292 B
C

#include "defs.h"
#include "sha2ossl.h"
#define SHA_Finish(bit) \
void SHA##bit##_Finish(SHA##bit##_CTX *ctx, char *buf) \
{ SHA##bit##_Final((unsigned char *)buf, ctx);}
#ifndef __DragonFly__
#define SHA384_Final SHA512_Final
#endif
SHA_Finish(256)
SHA_Finish(384)
SHA_Finish(512)