Make keymaster compatible with latest BoringSSL.

BoringSSL sometimes needs to make FOO_free functions return have int
return values for OpenSSL compatibility. In particular,
https://boringssl-review.googlesource.com/c/boringssl/+/35644 tweaked
ENGINE_free.

include/keymaster/km_openssl/openssl_utils.h currently requires the
return value to be void. Make the template a bit more flexible to
tolerate return values.

This is needed to unblock updates of external/boringssl.

Test: mmma system/keymaster
Change-Id: I4f3110a60ce772fc4ec4ff12f3b1668bb26ff549
1 file changed