Mercurial > vim
diff src/sha256.c @ 4126:2b340e5c5baa v7.3.816
updated for version 7.3.816
Problem: Can't compute a hash.
Solution: Add the sha256() function. (Tyru, Hirohito Higashi)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 13 Feb 2013 17:35:04 +0100 |
parents | ee138f29259e |
children | 0b6c37dd858d |
line wrap: on
line diff
--- a/src/sha256.c +++ b/src/sha256.c @@ -273,14 +273,13 @@ sha256_finish(ctx, digest) #endif /* FEAT_CRYPT || FEAT_PERSISTENT_UNDO */ #if defined(FEAT_CRYPT) || defined(PROTO) -static char_u *sha256_bytes __ARGS((char_u *buf, int buf_len, char_u *salt, int salt_len)); static unsigned int get_some_time __ARGS((void)); /* * Returns hex digest of "buf[buf_len]" in a static array. * if "salt" is not NULL also do "salt[salt_len]". */ - static char_u * + char_u * sha256_bytes(buf, buf_len, salt, salt_len) char_u *buf; int buf_len;