diff options
author | Michal Ludvig <michal@logix.cz> | 2006-07-08 19:02:24 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2006-09-20 21:40:21 -0400 |
commit | b14cdd6704c96474ba5c74b5959487beaa5ee1cd (patch) | |
tree | 9964ad4284280c8064ac8dc6b35d8ef8eaca65f3 | |
parent | b3be9a6d9a78bb820f5242f43b98f38b0ca610a6 (diff) |
[CRYPTO] api: Add missing accessors for new crypto_alg fields
Add missing accessors for cra_driver_name and cra_priority.
Signed-off-by: Michal Ludvig <michal@logix.cz>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r-- | include/linux/crypto.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/crypto.h b/include/linux/crypto.h index 40a6330abc8d..d6e184c876b5 100644 --- a/include/linux/crypto.h +++ b/include/linux/crypto.h | |||
@@ -297,6 +297,16 @@ static inline const char *crypto_tfm_alg_name(struct crypto_tfm *tfm) | |||
297 | return tfm->__crt_alg->cra_name; | 297 | return tfm->__crt_alg->cra_name; |
298 | } | 298 | } |
299 | 299 | ||
300 | static inline const char *crypto_tfm_alg_driver_name(struct crypto_tfm *tfm) | ||
301 | { | ||
302 | return tfm->__crt_alg->cra_driver_name; | ||
303 | } | ||
304 | |||
305 | static inline int crypto_tfm_alg_priority(struct crypto_tfm *tfm) | ||
306 | { | ||
307 | return tfm->__crt_alg->cra_priority; | ||
308 | } | ||
309 | |||
300 | static inline const char *crypto_tfm_alg_modname(struct crypto_tfm *tfm) | 310 | static inline const char *crypto_tfm_alg_modname(struct crypto_tfm *tfm) |
301 | { | 311 | { |
302 | return module_name(tfm->__crt_alg->cra_module); | 312 | return module_name(tfm->__crt_alg->cra_module); |