Update SHA1 code to RFC 6234
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>
Tue, 11 Oct 2011 19:06:29 +0000 (19:06 +0000)
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>
Tue, 11 Oct 2011 19:06:29 +0000 (19:06 +0000)
commit1ec8a9d896e9ce2da8ab38d64c2a9b36707145d5
treef92fd2a64be6ff3c038818354f29f106f50975e8
parent067250f74c1e2b869b598f422935445b2459f3c6
Update SHA1 code to RFC 6234

RFC 6234 is an update to RFC 3174 from which the code was originally taken.
It has a slightly better code, and a better phrased license (simple 3-clause
BSD).

* main/sha1.c is sha1.c from RFC 6234 with formatting changes only.
* include/asterisk/sha1.h merges sha.h and sha-private.h from RFC 6234.
* Removed unused include of asterisk/sha1.h from main/channels.c

Review: https://reviewboard.asterisk.org/r/1503/

Merge-From: http://svn.asterisk.org/svn/asterisk/branches/1.8@340263

Merge-From: http://svn.asterisk.org/svn/asterisk/branches/10@340280

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@340283 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/sha1.h
main/channel.c
main/sha1.c