diff options
author | Steffen Klassert <steffen.klassert@secunet.com> | 2011-09-27 01:21:26 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2011-10-21 08:24:01 -0400 |
commit | 64a947b1337b93061da7c7af1f6ce6b2431b70ae (patch) | |
tree | b6ae6942bdd51bdb3fd74482a63f3859b9f52e98 /crypto | |
parent | 8280daad436edb7dd9e7e06fc13bcecb6b2a885c (diff) |
crypto: Add a flag to identify crypto instances
The upcomming crypto user configuration api needs to identify
crypto instances. This patch adds a flag that is set if the
algorithm is an instance that is build from templates.
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/algapi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/algapi.c b/crypto/algapi.c index c3cf1a69a47a..6fd9bcf876ad 100644 --- a/crypto/algapi.c +++ b/crypto/algapi.c | |||
@@ -493,6 +493,7 @@ int crypto_register_instance(struct crypto_template *tmpl, | |||
493 | goto err; | 493 | goto err; |
494 | 494 | ||
495 | inst->alg.cra_module = tmpl->module; | 495 | inst->alg.cra_module = tmpl->module; |
496 | inst->alg.cra_flags |= CRYPTO_ALG_INSTANCE; | ||
496 | 497 | ||
497 | down_write(&crypto_alg_sem); | 498 | down_write(&crypto_alg_sem); |
498 | 499 | ||