fixed invalid method declarations

This commit is contained in:
WolverinDEV 2019-04-07 16:59:49 +02:00
parent b75d831fb7
commit fc8ade72c5
3 changed files with 4 additions and 4 deletions

View File

@ -27,12 +27,12 @@ typedef struct sha512_functions_ {
} sha512_functions;
extern sha512_functions _ed_sha512_functions;
void _ed_sha512_validate() {
inline void _ed_sha512_validate() {
assert(_ed_sha512_functions._ed_sha512_init);
assert(_ed_sha512_functions._ed_sha512_final);
assert(_ed_sha512_functions._ed_sha512_update);
}
int _ed_sha512(const unsigned char *message, size_t message_len, unsigned char *out) {
inline int _ed_sha512(const unsigned char *message, size_t message_len, unsigned char *out) {
_ed_sha512_validate();
int result = 1;

View File

@ -270,7 +270,7 @@ int _ed_sha512(const unsigned char *message, size_t message_len, unsigned char *
return 0;
}
extern sha512_functions _ed_sha512_functions = {
sha512_functions _ed_sha512_functions = {
_ed_sha512_init,
_ed_sha512_final,
_ed_sha512_update

View File

@ -14,7 +14,7 @@ int _ed_sha512_update(sha512_context * md, const unsigned char *in, size_t inlen
return SHA512_Update(md, in, inlen) != 1; /* Returns 0 on success */
}
extern sha512_functions _ed_sha512_functions = {
sha512_functions _ed_sha512_functions = {
_ed_sha512_init,
_ed_sha512_final,
_ed_sha512_update