security, crypto: LLVMLinux: Remove VLAIS from ima_crypto.c
authorBehan Webster <[email protected]>
Fri, 4 Apr 2014 21:18:00 +0000 (18:18 -0300)
committerBehan Webster <[email protected]>
Tue, 14 Oct 2014 08:51:24 +0000 (10:51 +0200)
commit357aabed626fe3fc753a99ef1d652f4e2d82ba26
tree15d0a4704557a0178f5b669bbab620c5019236ce
parentea0e0de69fc413aa80dbf1ec1fb9702ea1b6faca
security, crypto: LLVMLinux: Remove VLAIS from ima_crypto.c

Replaced the use of a Variable Length Array In Struct (VLAIS) with a C99
compliant equivalent. This patch allocates the appropriate amount of memory
using a char array using the SHASH_DESC_ON_STACK macro.

The new code can be compiled with both gcc and clang.

Signed-off-by: Behan Webster <[email protected]>
Reviewed-by: Mark Charlebois <[email protected]>
Reviewed-by: Jan-Simon Möller <[email protected]>
Acked-by: Herbert Xu <[email protected]>
Acked-by: Dmitry Kasatkin <[email protected]>
Cc: [email protected]
security/integrity/ima/ima_crypto.c