mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
crypto: Add a report function pointer to crypto_type
We add a report function pointer to struct crypto_type. This function pointer is used from the crypto userspace configuration API to report crypto algorithms to userspace. Signed-off-by: Steffen Klassert <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
parent
a38f7907b9
commit
b6aa63c09b
2 changed files with 7 additions and 0 deletions
|
|
@ -84,6 +84,11 @@ static int crypto_report_one(struct crypto_alg *alg,
|
|||
|
||||
NLA_PUT_U32(skb, CRYPTOCFGA_PRIORITY_VAL, alg->cra_priority);
|
||||
|
||||
if (alg->cra_type && alg->cra_type->report) {
|
||||
if (alg->cra_type->report(skb, alg))
|
||||
goto nla_put_failure;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
nla_put_failure:
|
||||
|
|
|
|||
Loading…
Reference in a new issue