ima: pass HASH_ALGO__LAST as hash algo in ima_eventdigest_init()
authorRoberto Sassu <roberto.sassu@polito.it>
Fri, 8 Nov 2013 18:21:36 +0000 (19:21 +0100)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Fri, 3 Jan 2014 12:42:59 +0000 (07:42 -0500)
commit712a49bd7d00d567edd5235e6e9034c55052446b
treea6193db0635b8d7bbee756bb3f3d41fd3451bef5
parentc502c78ba7fb5b9cef71e2bd70f12c38ef26e5ab
ima: pass HASH_ALGO__LAST as hash algo in ima_eventdigest_init()

Replace the '-1' value with HASH_ALGO__LAST in ima_eventdigest_init()
as the called function ima_eventdigest_init_common() expects an unsigned
char.

Fix commit:
  4d7aeee ima: define new template ima-ng and template fields d-ng and n-ng

Signed-off-by: Roberto Sassu <roberto.sassu@polito.it>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
security/integrity/ima/ima_template_lib.c