From f839a3435d9c0ea66d5d71333799bcf64d03f5e2 Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Sun, 6 Aug 2006 23:12:59 +1000 Subject: [PATCH] --- yaml --- r: 34227 b: refs/heads/master c: f3f632d61ae9af85d436706ee8e33af1a7fb9c28 h: refs/heads/master i: 34225: d94749a6fc10fb36851763fa837fa20748669a7b 34223: 836e559840f7b1ce0f8c06ced296f9abd3142ca0 v: v3 --- [refs] | 2 +- trunk/crypto/api.c | 5 +++-- trunk/include/linux/crypto.h | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 9c27fc79a250..4d6dbc942b31 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 7fed0bf271b374be4c98a5880faed4b1128e78e9 +refs/heads/master: f3f632d61ae9af85d436706ee8e33af1a7fb9c28 diff --git a/trunk/crypto/api.c b/trunk/crypto/api.c index 7e5522cf856e..1e4692a13474 100644 --- a/trunk/crypto/api.c +++ b/trunk/crypto/api.c @@ -355,7 +355,7 @@ struct crypto_tfm *crypto_alloc_tfm(const char *name, u32 flags) do { struct crypto_alg *alg; - alg = crypto_alg_mod_lookup(name, 0, 0); + alg = crypto_alg_mod_lookup(name, 0, CRYPTO_ALG_ASYNC); err = PTR_ERR(alg); if (IS_ERR(alg)) continue; @@ -394,7 +394,8 @@ void crypto_free_tfm(struct crypto_tfm *tfm) int crypto_alg_available(const char *name, u32 flags) { int ret = 0; - struct crypto_alg *alg = crypto_alg_mod_lookup(name, 0, 0); + struct crypto_alg *alg = crypto_alg_mod_lookup(name, 0, + CRYPTO_ALG_ASYNC); if (!IS_ERR(alg)) { crypto_mod_put(alg); diff --git a/trunk/include/linux/crypto.h b/trunk/include/linux/crypto.h index dbdfc7c79367..530dc4bf363c 100644 --- a/trunk/include/linux/crypto.h +++ b/trunk/include/linux/crypto.h @@ -37,6 +37,7 @@ #define CRYPTO_ALG_LARVAL 0x00000010 #define CRYPTO_ALG_DEAD 0x00000020 #define CRYPTO_ALG_DYING 0x00000040 +#define CRYPTO_ALG_ASYNC 0x00000080 /* * Transform masks and values (for crt_flags).