diff options
author | Steffen Klassert <steffen.klassert@secunet.com> | 2011-09-27 07:21:26 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2011-10-21 14:24:01 +0200 |
commit | b916cc846ec25296069791c00ad91967bc6b8614 (patch) | |
tree | 1cab6b906de44238198aa09a4f02bd3cb41ed213 /crypto/algapi.c | |
parent | 545b0e6f58db148a550db29b4442dcf78f7237d3 (diff) | |
download | linux-crypto-b916cc846ec25296069791c00ad91967bc6b8614.tar.gz linux-crypto-b916cc846ec25296069791c00ad91967bc6b8614.zip |
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 '')
-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 c3cf1a69..6fd9bcf8 100644 --- a/crypto/algapi.c +++ b/crypto/algapi.c @@ -493,6 +493,7 @@ int crypto_register_instance(struct crypto_template *tmpl, goto err; inst->alg.cra_module = tmpl->module; + inst->alg.cra_flags |= CRYPTO_ALG_INSTANCE; down_write(&crypto_alg_sem); |