mirror of
https://github.com/ruby/ruby.git
synced 2025-09-18 18:13:58 +02:00

* ext/digest/*/*.[ch]: include ruby.h before digest.h to avoid includeing ext/digest/extconf.h. [Bug #3231] https://msdn.microsoft.com/library/36k2cdd4.aspx * ext/digest/*/extconf.rb: remove ext/digest from include search path to avoid confusion of cl.exe. * ext/digest/*/*.[ch]: explicitly specify def.h's path. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@52739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
13 lines
295 B
C
13 lines
295 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)
|