hash: add proper const attribute to function arguments
commita3d76e4bbb4d46a824836273384bc1050e4a0841
authorWilliam Smith <wsmith1@mail.ru>
Sun, 13 Jan 2013 03:41:54 +0000 (12 22:41 -0500)
committerWilliam Smith <wsmith1@mail.ru>
Mon, 14 Jan 2013 01:47:30 +0000 (13 20:47 -0500)
treea3d8fac6750982e95009b90e1a9b2d6920e07aef
parent7a454ef4f6642dc63ddc098dda4f17be9be574de
hash: add proper const attribute to function arguments

Add proper const attribute to function arguments in
hash algorithms (md2, md4, md5, sha1, sha2, sha4).

const attribute is added to function arguments and
variables in order to allow compiler checks with
-Wbad-function-cast, -Wcast-qual and
-Wwrite-strings warnings options.
12 files changed:
include/tropicssl/md2.h
include/tropicssl/md4.h
include/tropicssl/md5.h
include/tropicssl/sha1.h
include/tropicssl/sha2.h
include/tropicssl/sha4.h
library/md2.c
library/md4.c
library/md5.c
library/sha1.c
library/sha2.c
library/sha4.c