diff options
author | Eric Biggers <ebiggers@google.com> | 2020-01-02 20:04:39 -0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-01-09 11:30:58 +0800 |
commit | a24a1fd731274ebbca873000e2c7fbe8224ae4c8 (patch) | |
tree | 1169096d663feefc1dc6f686fe94cfeba753fae6 /include/crypto/algapi.h | |
parent | a39c66cc2f6108c8346dc882bdcf72861aaca956 (diff) | |
download | lwn-a24a1fd731274ebbca873000e2c7fbe8224ae4c8.tar.gz lwn-a24a1fd731274ebbca873000e2c7fbe8224ae4c8.zip |
crypto: algapi - remove crypto_template::{alloc,free}()
Now that all templates provide a ->create() method which creates an
instance, installs a strongly-typed ->free() method directly to it, and
registers it, the older ->alloc() and ->free() methods in
'struct crypto_template' are no longer used. Remove them.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto/algapi.h')
-rw-r--r-- | include/crypto/algapi.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/crypto/algapi.h b/include/crypto/algapi.h index c16c50f8dac1..e115f9215ed5 100644 --- a/include/crypto/algapi.h +++ b/include/crypto/algapi.h @@ -63,8 +63,6 @@ struct crypto_template { struct hlist_head instances; struct module *module; - struct crypto_instance *(*alloc)(struct rtattr **tb); - void (*free)(struct crypto_instance *inst); int (*create)(struct crypto_template *tmpl, struct rtattr **tb); char name[CRYPTO_MAX_ALG_NAME]; |