Added required dll export for the SHA512 function table
This commit is contained in:
parent
b4426e07fa
commit
ad72bc7f72
@ -12,6 +12,10 @@ typedef struct sha512_functions_ {
|
||||
int(*_ed_sha512_final)(sha512_context*, unsigned char *);
|
||||
int(*_ed_sha512_update)(sha512_context*, const unsigned char *, size_t);
|
||||
} sha512_functions;
|
||||
|
||||
#ifdef WIN32
|
||||
__declspec(dllexport)
|
||||
#endif
|
||||
extern sha512_functions _ed_sha512_functions;
|
||||
|
||||
inline void _ed_sha512_validate() {
|
||||
|
@ -283,6 +283,9 @@ int __ed_sha512_update(sha512_context *md, const unsigned char *in, size_t inlen
|
||||
return _ed_sha512_update(md->context, in, inlen);
|
||||
}
|
||||
|
||||
#ifdef WIN32
|
||||
__declspec(dllexport)
|
||||
#endif
|
||||
sha512_functions _ed_sha512_functions = {
|
||||
__ed_sha512_init,
|
||||
__ed_sha512_final,
|
||||
|
@ -23,6 +23,10 @@ int _ed_sha512_update(sha512_context* md, const unsigned char *in, size_t inlen)
|
||||
return SHA512_Update(md->context, in, inlen) != 1; /* Returns 0 on success */
|
||||
}
|
||||
|
||||
|
||||
#ifdef WIN32
|
||||
__declspec(dllexport)
|
||||
#endif
|
||||
sha512_functions _ed_sha512_functions = {
|
||||
_ed_sha512_init,
|
||||
_ed_sha512_final,
|
||||
|
Loading…
Reference in New Issue
Block a user